actions.py 908 B

12345678910111213141516171819202122232425262728293031
  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 inary.actionsapi import cmaketools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. from inary.actionsapi import get
  10. def setup():
  11. shelltools.makedirs("build")
  12. shelltools.cd("build")
  13. cmaketools.configure("PYTHON=/usr/bin/python3 \
  14. -DCMAKE_INSTALL_PREFIX=/usr \
  15. -DFCS_WITH_TEST_SUITE=OFF \
  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. inarytools.dodoc("AUTHORS.asciidoc", "COPYING.asciidoc", "NEWS.asciidoc", "README.asciidoc")