[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/29: gnu: kde-framworks: Fix installation directories.
From: |
Hartmut Goebel |
Subject: |
06/29: gnu: kde-framworks: Fix installation directories. |
Date: |
Fri, 6 Oct 2017 08:15:06 -0400 (EDT) |
htgoebel pushed a commit to branch wip-qt-paths
in repository guix.
commit 75b7efe2f52151707d8fdff1d50fa64391164dec
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 wip-qt-paths created (now e788290), Hartmut Goebel, 2017/10/06
- 01/29: gnu: qtbase: Use a more standard directory layout., Hartmut Goebel, 2017/10/06
- 09/29: gnu: Update prison to 5.37.0., Hartmut Goebel, 2017/10/06
- 10/29: gnu: kcoreaddons: Add native-input shared-mime-info and a comment., Hartmut Goebel, 2017/10/06
- 07/29: gnu: grantlee: Enable all tests., Hartmut Goebel, 2017/10/06
- 08/29: gnu: qtkeychain: Reduce the number of warnings when configuring., Hartmut Goebel, 2017/10/06
- 06/29: gnu: kde-framworks: Fix installation directories.,
Hartmut Goebel <=
- 13/29: gnu: kdesignerplugin: Add optional inputs., Hartmut Goebel, 2017/10/06
- 14/29: gnu: phonon: Enable building the Qt Designer plugin., Hartmut Goebel, 2017/10/06
- 11/29: gnu: kconfigwidgets: Add optional native-input kdoctools., Hartmut Goebel, 2017/10/06
- 20/29: gnu: kio: Remove unused input., Hartmut Goebel, 2017/10/06
- 03/29: gnu: qwt: Adjust installation directory layout., Hartmut Goebel, 2017/10/06
- 19/29: gnu: kparts: Make tests pass again., Hartmut Goebel, 2017/10/06
- 23/29: gnu: kidletime: Enable fallback mode to X-Screensaver based poller., Hartmut Goebel, 2017/10/06
- 27/29: gnu: Add kdewebkit., Hartmut Goebel, 2017/10/06
- 28/29: gnu: ktexteditor: Symlink some files referred to by different names., Hartmut Goebel, 2017/10/06
- 16/29: gnu: kfilemetadata: Enable support for PDF files and audio files., Hartmut Goebel, 2017/10/06