actions.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. from pisi.actionsapi import cmaketools
  10. from pisi.actionsapi import shelltools
  11. def setup():
  12. shelltools.makedirs("build")
  13. shelltools.cd("build")
  14. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  15. -DCMAKE_BUILD_TYPE=Release \
  16. -DBUILD_TESTS=OFF \
  17. -DQCA_INSTALL_IN_QT_PREFIX=ON \
  18. -DQCA_MAN_INSTALL_DIR=/usr/share/man \
  19. -DOPENSSL_INCLUDE_DIR=/usr/include/openssl \
  20. -DOPENSSL_SSL_LIBRARY=/usr/lib/libssl.so \
  21. -DQCA_SUFFIX=qt5 \
  22. -DOPENSSL_CRYPTO_LIBRARY=/usr/lib/libcrypto.so", sourceDir="..")
  23. def build():
  24. shelltools.cd("build")
  25. cmaketools.make()
  26. def install():
  27. shelltools.cd("build")
  28. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  29. shelltools.cd("..")
  30. pisitools.dodoc("README", "TODO", "COPYING")
  31. #pisitools.domove("/usr/share/qt5/man/man1/qcatool-qt5.1", "/usr/share/man/man1/qcatool-qt5.1")
  32. #pisitools.removeDir("/usr/share/qt5")