actions.py 934 B

123456789101112131415161718192021222324252627282930313233
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.export("ac_cv_libsigsegv", "no")
  12. shelltools.export("AUTOPOINT", "true")
  13. autotools.configure("--with-libsigsegv-prefix=no \
  14. --enable-switch \
  15. --enable-nls")
  16. def build():
  17. autotools.make()
  18. #def check():
  19. # autotools.make("-j1 check diffout")
  20. def install():
  21. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. # Remove versioned binaries
  23. pisitools.remove("/usr/bin/*-%s" % get.srcVERSION())
  24. pisitools.dosym("gawk.1", "/usr/share/man/man1/awk.1")
  25. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README")