actions.py 861 B

123456789101112131415161718192021222324252627282930
  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.dosed("Makefile.PL", "-Wall", "-Wall -Wno-cpp -Wno-pointer-sign -Wno-pointer-to-int-cast -Wno-discarded-qualifiers -Wno-deprecated-declarations")
  13. perlmodules.configure()
  14. # fix runpath analysis
  15. pisitools.dosed("Makefile","LD_RUN_PATH=\"\$\(LD_RUN_PATH\)\"", "")
  16. def build():
  17. perlmodules.make()
  18. # takes too much time
  19. #def check():
  20. # perlmodules.make("test")
  21. def install():
  22. perlmodules.install()
  23. pisitools.dodoc("Changes", "MANIFEST", "README*")