actions.py 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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/copyleft/gpl.txt.
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. options = "--disable-static"
  12. if get.buildTYPE() == "emul32":
  13. options += " --libdir=/usr/lib32"
  14. autotools.configure(options)
  15. def build():
  16. autotools.make()
  17. def check():
  18. # Needs dejagnu package
  19. autotools.make("check")
  20. def install():
  21. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. if get.buildTYPE() == "emul32":
  23. return
  24. #if get.buildTYPE() == "emul32":
  25. ## Remove duplicated header files
  26. #pisitools.removeDir("/usr/lib32/%s" % get.srcDIR())
  27. ## Fix emul32 includedir
  28. #pisitools.dosym("/usr/lib/%s/include" % get.srcDIR(),
  29. #"/usr/lib32/%s/include" % get.srcDIR())
  30. pisitools.dodoc("ChangeLog*", "LICENSE", "README*")