actions.py 1.0 KB

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 pisitools
  7. from pisi.actionsapi import cmaketools
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import get
  10. from pisi.actionsapi import shelltools
  11. def setup():
  12. shelltools.makedirs("build")
  13. shelltools.cd("build")
  14. cmaketools.configure("-DUSE_QT=0 \
  15. -DCMAKE_INSTALL_PREFIX=/usr \
  16. -DPYLIB_INSTALL_DIR=lib/python2.7/site-packages \
  17. -DUSE_OCIO= OFF \
  18. -DUSE_OPENSSL:BOOL=TRUE \
  19. -DSTOP_ON_WARNING:BOOL=FALSE \
  20. -DOIIO_BUILD_TESTS=OFF", sourceDir="..")
  21. def build():
  22. shelltools.cd("build")
  23. cmaketools.make()
  24. def install():
  25. shelltools.cd("build")
  26. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. #pisitools.dodoc("CREDITS", "LICENSE", "README.*")