Subject: [PATCH] gnu: kdenlive: Use qt-build-system.

From: Leo Famulari <[email-masked]>
Date: Sun, 1 Dec 2019 16:13:51 -0500

* gnu/packages/kde.scm (kdenlive)[build-system]: Use qt-build-system.
[arguments]: Remove field.
---
 gnu/packages/kde.scm | 27 +--------------------------
 1 file changed, 1 insertion(+), 26 deletions(-)

diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index 014bca0738..fa3733d26f 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -73,7 +73,7 @@
          (sha256
           (base32
            "0ifnaclsz7w08mc485i3j1kkcpd1m8q5qamckrfwc375ac13xf4g"))))
-      (build-system cmake-build-system)
+      (build-system qt-build-system)
       (native-inputs
        `(("extra-cmake-modules" ,extra-cmake-modules)
          ("qttools" ,qttools)))
@@ -101,31 +101,6 @@
          ("kiconthemes" ,kiconthemes)
          ("qtgraphicaleffects" ,qtgraphicaleffects)
          ("kplotting" ,kplotting)))
-      (arguments
-       `(#:phases
-         (modify-phases %standard-phases
-           (add-after 'install 'wrap-executable
-             (lambda* (#:key inputs outputs #:allow-other-keys)
-               (let* ((out (assoc-ref outputs "out"))
-                      (qtquickcontrols (assoc-ref inputs "qtquickcontrols"))
-                      (qtbase (assoc-ref inputs "qtbase"))
-                      (qtdeclarative (assoc-ref inputs "qtdeclarative"))
-                      (frei0r (assoc-ref inputs "frei0r-plugins"))
-                      (qml "/lib/qt5/qml"))
-                 (wrap-program (string-append out "/bin/kdenlive")
-                   `("QT_PLUGIN_PATH" ":" prefix
-                     ,(map (lambda (label)
-                             (string-append (assoc-ref inputs label)
-                                            "/lib/qt5/plugins/"))
-                           '("qtbase" "qtsvg")))
-                   `("FREI0R_PATH" ":" =
-                     (,(string-append frei0r "/lib/frei0r-1/")))
-                   `("QT_QPA_PLATFORM_PLUGIN_PATH" ":" =
-                     (,(string-append qtbase "/lib/qt5/plugins/platforms")))
-                   `("QML2_IMPORT_PATH" ":" prefix
-                     (,(string-append qtquickcontrols qml)
-                      ,(string-append qtdeclarative qml)))))
-               #t)))))
       (home-page "https://kdenlive.org")
       (synopsis "Non-linear video editor")
       (description "Kdenlive is an acronym for KDE Non-Linear Video Editor.
-- 
2.24.0