actions.py 1000 B

1234567891011121314151617181920212223242526272829303132
  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 autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. shelltools.export("PYTHON", "/usr/bin/python3")
  12. shelltools.system("sed -i 's/\$(PERL5_SCRIPT/-I. &/' Examples/Makefile.in")
  13. shelltools.system("sed -i 's/\$command 2/-I. &/' Examples/test-suite/perl5/run-perl-test.pl")
  14. autotools.configure("--without-clisp \
  15. --with-python3 \
  16. --without-maximum-compile-warnings")
  17. #autotools.configure("--prefix=/usr")
  18. def build():
  19. autotools.make()
  20. # too much dependency to test
  21. #def check():
  22. # shelltools.system("make check || warning 'Tests failed'")
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. pisitools.dodoc("LICENSE*", "README")