actions.py 857 B

123456789101112131415161718192021222324252627282930313233
  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/copyleft/gpl.txt
  6. from pisi.actionsapi import cmaketools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.makedirs("build")
  12. shelltools.cd("build")
  13. cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
  14. -DWITH_GSSAPI=OFF", sourceDir="..")
  15. def build():
  16. shelltools.cd("build")
  17. cmaketools.make()
  18. #cmaketools.make("doc")
  19. def install():
  20. shelltools.cd("build")
  21. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. #pisitools.doman("doc/man/*/*")
  23. pisitools.dohtml("doc/*")
  24. shelltools.cd("..")
  25. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "INSTALL", "README")