actions.py 916 B

123456789101112131415161718192021222324252627282930313233343536
  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/licenses/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. perlmodules.configure()
  12. # suppress warning messages
  13. pisitools.dosed("Makefile", "CCFLAGS = ", "CCFLAGS = -Wno-stringop-overflow -Wno-incompatible-pointer-types ")
  14. # fix unused direct dependency analysis
  15. pisitools.dosed("Makefile","LDDLFLAGS =","LDDLFLAGS = -Wl,-O1,--as-needed")
  16. # fix runpath analysis
  17. pisitools.dosed("Makefile","LD_RUN_PATH=\"\$\(LD_RUN_PATH\)\"", "")
  18. def build():
  19. perlmodules.make()
  20. def check():
  21. perlmodules.make("test")
  22. def install():
  23. perlmodules.install()
  24. pisitools.dodoc("README", "LICENSE", "Changes")