actions.py 880 B

1234567891011121314151617181920212223242526272829303132333435
  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. autotools.configure("--disable-static")
  12. def build():
  13. autotools.make()
  14. def check():
  15. # Needs dejagnu package
  16. autotools.make("check")
  17. def install():
  18. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  19. if get.buildTYPE() == "emul32":
  20. # Remove duplicated header files
  21. pisitools.removeDir("/usr/lib32/%s" % get.srcDIR())
  22. # Fix emul32 includedir
  23. pisitools.dosym("/usr/lib/%s/include" % get.srcDIR(),
  24. "/usr/lib32/%s/include" % get.srcDIR())
  25. pisitools.dodoc("ChangeLog*", "LICENSE", "README*")