actions.py 960 B

12345678910111213141516171819202122232425262728293031323334353637
  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("AUTOPOINT", "true")
  12. autotools.autoreconf("-vfi")
  13. # For being able to build as root, pff
  14. shelltools.export("FORCE_UNSAFE_CONFIGURE", "1")
  15. autotools.configure("--bindir=/bin \
  16. --libexecdir=/bin \
  17. --disable-rpath \
  18. --enable-nls")
  19. def build():
  20. autotools.make()
  21. # test has a sandbox problem disabled.
  22. #def check():
  23. # autotools.make("check")
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. pisitools.doman("doc/tar.1")
  27. pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README*", "THANKS")