actions.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. autotools.configure("--prefix=/usr \
  12. --sysconfdir=/etc \
  13. --localstatedir=/var \
  14. --libexecdir=/usr/lib \
  15. --disable-static \
  16. --disable-rpath \
  17. --enable-caja \
  18. --enable-pdf \
  19. --enable-tiff \
  20. --enable-djvu \
  21. --enable-dvi \
  22. --enable-xps \
  23. --enable-t1lib \
  24. --enable-comics \
  25. --enable-pixbuf \
  26. --enable-impress \
  27. --enable-introspection \
  28. --disable-schemas-compile")
  29. # for fix unused dependency
  30. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  31. def build():
  32. autotools.make()
  33. def install():
  34. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  35. pisitools.dodoc("README*", "NEWS", "AUTHORS", "COPYING")