actions.py 845 B

1234567891011121314151617181920212223242526272829303132333435
  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 pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. # Fixup version
  12. shelltools.echo(".version", get.srcVERSION().split("_")[0])
  13. # Disable emacs scripts
  14. shelltools.export("EMACS", "no")
  15. autotools.configure()
  16. def build():
  17. autotools.make()
  18. # takes too long, do it by hand
  19. #def check():
  20. #autotools.make("check")
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. # binutils installs this infopage
  24. pisitools.remove("/usr/share/info/standards.info")
  25. pisitools.dodoc("AUTHORS", "BUGS", "ChangeLog*", "NEWS", "README")