actions.py 817 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 shelltools
  7. from pisi.actionsapi import cmaketools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. #WorkDir = "lloyd-yajl-f4b2b1a"
  11. def setup():
  12. shelltools.makedirs("build")
  13. shelltools.cd("build")
  14. cmaketools.configure(sourceDir="..")
  15. def build():
  16. shelltools.cd("build")
  17. cmaketools.make()
  18. #def check():
  19. #shelltools.cd("test")
  20. #shelltools.system("./run_tests.sh")
  21. def install():
  22. shelltools.cd("build")
  23. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. pisitools.remove("/usr/lib/*.a")
  25. shelltools.cd("..")
  26. pisitools.dodoc("ChangeLog", "COPYING", "README")