guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/04: gnu: phonon: Install Qt extensions.


From: Ludovic Courtès
Subject: 03/04: gnu: phonon: Install Qt extensions.
Date: Sat, 11 Mar 2017 16:23:43 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 5578c2987e7657fd85fc0fb1c274ad00d4b173e9
Author: Thomas Danckaert <address@hidden>
Date:   Thu Mar 2 09:33:43 2017 +0100

    gnu: phonon: Install Qt extensions.
    
    * gnu/packages/kde-frameworks.scm (phonon)[arguments]: Add
    -DPHONON-INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT configure flag, and patch the
    installation directory.
    
    Signed-off-by: Ludovic Courtès <address@hidden>
---
 gnu/packages/kde-frameworks.scm | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index ba4ead2..240e338 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2016 Efraim Flashner <address@hidden>
 ;;; Copyright © 2016 Hartmut Goebel <address@hidden>
 ;;; Copyright © 2016 David Craven <address@hidden>
+;;; Copyright © 2017 Thomas Danckaert <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -119,7 +120,18 @@ common build settings used in software produced by the KDE 
community.")
     (arguments
      `(#:configure-flags
        '("-DCMAKE_CXX_FLAGS=-fPIC"
-         "-DPHONON_BUILD_PHONON4QT5=ON")))
+         "-DPHONON_BUILD_PHONON4QT5=ON"
+         "-DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON")
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'install 'patch-installdir
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let ((regex (string-append "(INSTALL DESTINATION \")"
+                                         (assoc-ref inputs "qtbase"))))
+               (substitute* "cmake_install.cmake"
+                 ((regex all dest)
+                  (string-append dest (assoc-ref outputs "out")))))
+           #t)))))
     (home-page "https://phonon.kde.org";)
     (synopsis "KDE's multimedia library")
     (description "KDE's multimedia library.")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]