actions.py 1010 B

123456789101112131415161718192021222324252627282930313233343536
  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. import os
  11. slshdoc = "/%s/slsh" % get.docDIR()
  12. slangdoc = "/%s/slang/" % get.docDIR()
  13. def setup():
  14. autotools.configure("--prefix=/usr \
  15. --without-onig \
  16. --sysconfdir=/etc")
  17. def build():
  18. autotools.make("-j1 install_doc_dir=/%s/%s all" % (get.docDIR(), get.installDIR()))
  19. def check():
  20. #autotools.make("check")
  21. pass
  22. def install():
  23. autotools.rawInstall("DESTDIR=%s INST_LIB_DIR=%s/usr/lib" % (get.installDIR(),get.installDIR()))
  24. pisitools.domove("%s/*" % slshdoc, "%s/" % slangdoc)
  25. pisitools.domove("%s/v2/*" % slangdoc, "%s/" % slangdoc)
  26. pisitools.removeDir("%s/v2" % slangdoc)
  27. pisitools.removeDir("%s" % slshdoc)