[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/30: gnu: kde-framworks: Fix installation directories.
From: |
Hartmut Goebel |
Subject: |
06/30: gnu: kde-framworks: Fix installation directories. |
Date: |
Fri, 13 Oct 2017 09:29:02 -0400 (EDT) |
htgoebel pushed a commit to branch master
in repository guix.
commit 61cc757d5fdb5a08543796dd7c7e122e7c9d986e
Author: Hartmut Goebel <address@hidden>
Date: Sat Sep 30 17:45:35 2017 +0200
gnu: kde-framworks: Fix installation directories.
After the qtbase installation directories have been changed, kf5's plugins
etc. need to be install into lib/qt5/…, too. We change the global
definitions
in "KDEInstallDirs.cmake", so this changes will apply to all packages
without
these to need to define the paths. THis is okay, since
"KDEInstallDirs.cmake"
defines the directory-layout guix is using.
* gnu/packages/kde-frameworks.scm (extra-cmake-modules)[#:phase
fix-lib-path]:
In modules/KDEInstallDirs.cmake also patch QTPLUGINDIR, QTQUICKIMPORTSDIR,
QMLDIR.
(kwindowsystem)[#:phase check]: Adjust QT_PLUGIN_PATH.
(kfilemetadata)[#:phase check-setup]: dito.
---
gnu/packages/kde-frameworks.scm | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 58bc742..a503226 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -92,7 +92,17 @@
(lambda _
;; Always install into /lib and not into /lib64.
(substitute* "kde-modules/KDEInstallDirs.cmake"
- (("\"lib64\"") "\"lib\""))))
+ (("\"lib64\"") "\"lib\"")
+ ;; TODO: Base the following on values taken from Qt
+ ;; Install plugins into lib/qt5/plugins
+ (("_define_relative\\(QTPLUGINDIR LIBDIR \"plugins\"")
+ "_define_relative(QTPLUGINDIR LIBDIR \"qt5/plugins\"")
+ ;; Install imports into lib/qt5/imports
+ (("_define_relative\\(QTQUICKIMPORTSDIR QTPLUGINDIR
\"imports\"")
+ "_define_relative(QTQUICKIMPORTSDIR LIBDIR \"qt5/imports\"")
+ ;; Install qml-files into lib/qt5/qml
+ (("_define_relative\\(QMLDIR LIBDIR \"qml\"")
+ "_define_relative(QMLDIR LIBDIR \"qt5/qml\""))))
;; install and check phase are swapped to prevent install from failing
;; after testsuire has run
(add-after 'install 'check-post-install
@@ -1042,7 +1052,7 @@ configuration pages, message boxes, and password
requests.")
(begin
(let ((out (assoc-ref outputs "out")))
(setenv "QT_PLUGIN_PATH"
- (string-append out "/lib/plugins:"
+ (string-append out "/lib/qt5/plugins:"
(getenv "QT_PLUGIN_PATH"))))
;; The test suite requires a running X server, setting
;; QT_QPA_PLATFORM=offscreen does not suffice and even make
@@ -1485,7 +1495,7 @@ from DocBook files.")
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(setenv "QT_PLUGIN_PATH"
- (string-append out "/lib/plugins:"
+ (string-append out "/lib/qt5/plugins:"
(getenv "QT_PLUGIN_PATH"))))
#t)))))
(native-inputs
- branch master updated (dad66da -> 109461f), Hartmut Goebel, 2017/10/13
- 02/30: gnu: qt: Fix install paths in submodules., Hartmut Goebel, 2017/10/13
- 09/30: gnu: Update prison to 5.37.0., Hartmut Goebel, 2017/10/13
- 04/30: gnu: qtwebkit: Fix rpath for the qmlwebkit plugins., Hartmut Goebel, 2017/10/13
- 07/30: gnu: grantlee: Enable all tests., Hartmut Goebel, 2017/10/13
- 01/30: gnu: qtbase: Use a more standard directory layout., Hartmut Goebel, 2017/10/13
- 06/30: gnu: kde-framworks: Fix installation directories.,
Hartmut Goebel <=
- 21/30: gnu: kio: Remove unused input., Hartmut Goebel, 2017/10/13
- 16/30: gnu: kdnssd: Enable service discovery on local network via avahi., Hartmut Goebel, 2017/10/13
- 18/30: gnu: bluez-qt: Install udev-rules., Hartmut Goebel, 2017/10/13
- 10/30: gnu: kcoreaddons: Add native-input shared-mime-info and a comment., Hartmut Goebel, 2017/10/13
- 03/30: gnu: qwt: Adjust installation directory layout., Hartmut Goebel, 2017/10/13
- 22/30: gnu: kio: Adopt a patch from Nix., Hartmut Goebel, 2017/10/13
- 26/30: gnu: kglobalaccel: Reduce the number of warnings when configuring., Hartmut Goebel, 2017/10/13
- 11/30: gnu: kconfigwidgets: Add optional native-input kdoctools., Hartmut Goebel, 2017/10/13
- 12/30: gnu: kwallet: Add optional input qgpgme., Hartmut Goebel, 2017/10/13
- 15/30: gnu: phonon: Enable building the Qt Designer plugin., Hartmut Goebel, 2017/10/13