actions.py 916 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 pythonmodules
  10. from pisi.actionsapi import get
  11. def setup():
  12. shelltools.makedirs("build")
  13. shelltools.cd("build")
  14. shelltools.system("../configure.py --prefix=/usr \
  15. --with-bzip \
  16. --with-lzma \
  17. --with-zlib \
  18. --with-boost \
  19. --with-sqlite3 \
  20. --with-os-feature=getrandom")
  21. def build():
  22. shelltools.cd("build")
  23. autotools.make()
  24. def check():
  25. shelltools.cd("build")
  26. autotools.make("check")
  27. #pass
  28. def install():
  29. shelltools.cd("build")
  30. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  31. #pisitools.dodoc("COPYING*", "README")