actions.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import shelltools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. shelltools.export('HOME', get.workDIR())
  10. def setup():
  11. autotools.configure("--prefix=/usr \
  12. --sysconfdir=/etc \
  13. --disable-static \
  14. --enable-pdf \
  15. --enable-tiff \
  16. --enable-djvu \
  17. --enable-dvi \
  18. --enable-t1lib \
  19. --disable-nautilus \
  20. --enable-comics \
  21. --disable-scrollkeeper \
  22. --disable-schemas-compile \
  23. --enable-introspection")
  24. #--enable-nautilus \
  25. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  26. def build():
  27. autotools.make()
  28. def install():
  29. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  30. pisitools.dodoc("AUTHORS", "ChangeLog", "README", "COPYING", "TODO")