actions.py 871 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env 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 get
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import cmaketools
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. shelltools.makedirs("build")
  12. shelltools.cd("build")
  13. cmaketools.configure("-DFCS_WITH_TEST_SUITE=OFF \
  14. -DCMAKE_INSTALL_PREFIX=/usr \
  15. -DCMAKE_SKIP_BUILD_RPATH=ON \
  16. -DBUILD_STATIC_LIBRARY=OFF", sourceDir="..")
  17. def build():
  18. shelltools.cd("build")
  19. cmaketools.make()
  20. def install():
  21. shelltools.cd("build")
  22. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. shelltools.cd("..")
  24. pisitools.dodoc("COPYING.asciidoc", "README.asciidoc")