actions.py 669 B

123456789101112131415161718192021222324252627
  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 perlmodules
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. #WorkDir = "%s-%s" % (get.srcNAME()[5:], get.srcVERSION())
  10. def setup():
  11. # suppress compiler warnings
  12. pisitools.dosed("Makefile.PL", "-Wno-comment", "-Wno-comment -Wno-cast-function-type")
  13. perlmodules.configure()
  14. def build():
  15. perlmodules.make()
  16. def check():
  17. perlmodules.make("test")
  18. def install():
  19. perlmodules.install()
  20. pisitools.dodoc("LICENSE", "MANIFEST", "README*")