actions.py 766 B

1234567891011121314151617181920212223242526272829
  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 pisitools
  8. from pisi.actionsapi import perlmodules
  9. WorkDir = "%s-%s" % (get.srcNAME()[5:], get.srcVERSION())
  10. def setup():
  11. # suppress compiler warnings
  12. pisitools.cflags.add("-Wno-implicit-function-declaration -Wno-deprecated-declarations -Wno-cpp")
  13. perlmodules.configure()
  14. # fix runpath analysis
  15. pisitools.dosed("Makefile","LD_RUN_PATH=\"\$\(LD_RUN_PATH\)\"", "")
  16. def build():
  17. perlmodules.make()
  18. def check():
  19. perlmodules.make("test")
  20. def install():
  21. perlmodules.install()
  22. pisitools.dodoc("MANIFEST", "README*")