actions.py 986 B

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 get
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. bindir = "/usr/bin32" if get.buildTYPE() == "emul32" else "/usr/bin"
  10. def setup():
  11. options = " --enable-shared \
  12. --bindir=%s \
  13. " % ( bindir)
  14. if get.buildTYPE() == "emul32":
  15. options += " --libdir=/usr/lib32 \
  16. "
  17. autotools.autoreconf("-fiv")
  18. autotools.configure(options)
  19. def build():
  20. autotools.make("-j1")
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. if get.buildTYPE() == "emul32":
  24. pisitools.removeDir("/usr/bin32")
  25. return
  26. #pisitools.remove("/usr/lib/*.a")
  27. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "README", "nettle.pdf")