actions.py 797 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/licenses/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import get
  9. from pisi.actionsapi import pisitools
  10. def setup():
  11. #shelltools.system("sed -i '211,217 d; 219,229 d; 232 d' lib/glob.c")
  12. autotools.configure("--enable-nls --program-prefix=g")
  13. def build():
  14. autotools.make()
  15. #def check():
  16. #shelltools.export("LANG", "C")
  17. #autotools.make("check")
  18. def install():
  19. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  20. pisitools.dosym("gmake", "/usr/bin/make")
  21. pisitools.dosym("gmake.1","/usr/share/man/man1/make.1")
  22. pisitools.dodoc("AUTHORS", "NEWS", "README*")