actions.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # Licensed under the GNU General Public License, version 3.
  3. # See the file http://www.gnu.org/licenses/gpl.txt
  4. from pisi.actionsapi import shelltools
  5. from pisi.actionsapi import pisitools
  6. from pisi.actionsapi import kde5
  7. from pisi.actionsapi import get
  8. from pisi.actionsapi import cmaketools
  9. #shelltools.export("HOME", get.workDIR())
  10. def setup():
  11. shelltools.makedirs("build")
  12. shelltools.cd("build")
  13. cmaketools.configure("-G 'Ninja' \
  14. -DBUILD_TESTING=OFF \
  15. -DENABLE_KFILEMETADATASUPPORT=ON \
  16. -DENABLE_MEDIAPLAYER=ON \
  17. -DENABLE_AKONADICONTACTSUPPORT=ON \
  18. -DENABLE_MYSQLSUPPORT=ON \
  19. -DENABLE_APPSTYLES=ON \
  20. -DENABLE_QWEBENGINE=ON \
  21. -DKDE_INSTALL_LIBDIR=lib \
  22. -DOpenGL_GL_PREFERENCE=GLVND", sourceDir = '..')
  23. def build():
  24. shelltools.cd("build")
  25. shelltools.system("ninja")
  26. def install():
  27. shelltools.cd("build")
  28. shelltools.system("DESTDIR=%s ninja install" %get.installDIR())
  29. shelltools.cd("..")
  30. pisitools.dodoc("COPYING*", "README*", "NEWS")