actions.py 824 B

12345678910111213141516171819202122232425262728293031
  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' glob/glob.c")
  12. autotools.configure("--enable-nls \
  13. --program-prefix=g")
  14. def build():
  15. autotools.make()
  16. #def check():
  17. #shelltools.export("LANG", "C")
  18. #autotools.make("check")
  19. def install():
  20. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  21. pisitools.dosym("gmake", "/usr/bin/make")
  22. pisitools.dosym("gmake.1","/usr/share/man/man1/make.1")
  23. pisitools.dodoc("AUTHORS", "NEWS", "README*")