actions.py 556 B

123456789101112131415161718192021222324
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import perlmodules, pisitools, get
  7. def setup():
  8. perlmodules.configure()
  9. pisitools.dosed("Makefile", "^OTHERLDFLAGS.*$", "OTHERLDFLAGS = %s" % get.LDFLAGS())
  10. def build():
  11. perlmodules.make()
  12. def check():
  13. perlmodules.make("test")
  14. def install():
  15. perlmodules.install()
  16. pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "examples")
  17. pisitools.dodoc("Changes")