actions.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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 shelltools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. pisitools.ldflags.add("-lgs")
  12. shelltools.makedirs("build")
  13. shelltools.cd("build")
  14. cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib \
  15. -DDONT_INSTALL_GCONF_SCHEMAS=1 \
  16. -DCMAKE_BUILD_TYPE=Release \
  17. -DBINARY_PACKAGE_BUILD=1 \
  18. -DBUILD_USERMANUAL=False \
  19. -DUSE_LIBSECRET=On \
  20. -DUSE_OPENJPEG=On \
  21. -DUSE_COLORD=On \
  22. -DBUILD_USERMANUAL=0", sourceDir="..")
  23. def build():
  24. shelltools.cd("build")
  25. cmaketools.make()
  26. def install():
  27. shelltools.cd("build")
  28. cmaketools.install()