From 2e3d50b7026c7fefddbd87c09fd614d5c6076ef8 Mon Sep 17 00:00:00 2001 From: Idris Kalp Date: Sat, 13 Mar 2021 01:42:57 +0300 Subject: [PATCH] digikam switch to ninja --- desktop/kde/graphics/digikam/actions.py | 25 +++++++++++++++---------- desktop/kde/graphics/digikam/pspec.xml | 3 ++- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/desktop/kde/graphics/digikam/actions.py b/desktop/kde/graphics/digikam/actions.py index db52af29ca..44a0fe5755 100644 --- a/desktop/kde/graphics/digikam/actions.py +++ b/desktop/kde/graphics/digikam/actions.py @@ -11,20 +11,25 @@ from pisi.actionsapi import cmaketools #shelltools.export("HOME", get.workDIR()) def setup(): - kde5.configure("-DBUILD_TESTING=OFF \ - -DENABLE_KFILEMETADATASUPPORT=ON \ - -DENABLE_MEDIAPLAYER=ON \ - -DENABLE_AKONADICONTACTSUPPORT=ON \ - -DENABLE_MYSQLSUPPORT=ON \ - -DENABLE_APPSTYLES=ON \ - -DENABLE_QWEBENGINE=ON \ - -DOpenGL_GL_PREFERENCE=GLVND") + shelltools.makedirs("build") + shelltools.cd("build") + cmaketools.configure("-G 'Ninja' \ + -DBUILD_TESTING=OFF \ + -DENABLE_KFILEMETADATASUPPORT=ON \ + -DENABLE_MEDIAPLAYER=ON \ + -DENABLE_AKONADICONTACTSUPPORT=ON \ + -DENABLE_MYSQLSUPPORT=ON \ + -DENABLE_APPSTYLES=ON \ + -DENABLE_QWEBENGINE=ON \ + -DOpenGL_GL_PREFERENCE=GLVND" \ + sourceDir = '..') def build(): - kde5.make() + shelltools.cd("build") + shelltools.system("ninja") def install(): - kde5.install() + shelltools.system("DESTDIR=%s ninja install" %get.installDIR()) pisitools.dodoc("COPYING", "COPYING-CMAKE-SCRIPTS", "README*", "NEWS") diff --git a/desktop/kde/graphics/digikam/pspec.xml b/desktop/kde/graphics/digikam/pspec.xml index a37cfe7558..305fd5f745 100644 --- a/desktop/kde/graphics/digikam/pspec.xml +++ b/desktop/kde/graphics/digikam/pspec.xml @@ -98,7 +98,8 @@ kcontacts-devel qt5-webengine-devel imagemagick-devel - x265-devel + x265-devel + ninja