gnu: phonon: Use gexp.

* gnu/packages/kde-frameworks.scm (phonon): Use gexp.

Signed-off-by: Marius Bakke <marius@gnu.org>
This commit is contained in:
Petr Hodina 2022-09-28 08:40:00 +02:00 committed by Marius Bakke
parent d92e4f59bb
commit f487618b13
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -231,18 +231,18 @@ (define-public phonon
(inputs (inputs
(list qtbase-5)) (list qtbase-5))
(arguments (arguments
`(#:configure-flags (list #:configure-flags
'("-DCMAKE_CXX_FLAGS=-fPIC" #~'("-DCMAKE_CXX_FLAGS=-fPIC"
"-DPHONON_BUILD_PHONON4QT5=ON") "-DPHONON_BUILD_PHONON4QT5=ON")
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-before 'install 'patch-installdir (add-before 'install 'patch-installdir
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let ((regex (string-append "(INSTALL DESTINATION \")" (let ((regex (string-append "(INSTALL DESTINATION \")"
(assoc-ref inputs "qtbase")))) #$(this-package-input "qtbase"))))
(substitute* "cmake_install.cmake" (substitute* "cmake_install.cmake"
((regex all dest) ((regex all dest)
(string-append dest (assoc-ref outputs "out")))))))))) (string-append dest #$output)))))))))
(home-page "https://community.kde.org/Phonon") (home-page "https://community.kde.org/Phonon")
(synopsis "KDE's multimedia library") (synopsis "KDE's multimedia library")
(description "KDE's multimedia library.") (description "KDE's multimedia library.")