[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/29: gnu: qwt: Adjust installation directory layout.
From: |
Hartmut Goebel |
Subject: |
03/29: gnu: qwt: Adjust installation directory layout. |
Date: |
Fri, 6 Oct 2017 08:15:05 -0400 (EDT) |
htgoebel pushed a commit to branch wip-qt-paths
in repository guix.
commit ab11f2b200b4c5432556fdd7f3c68abe471e9229
Author: 宋文武 <address@hidden>
Date: Thu Sep 7 21:19:54 2017 +0800
gnu: qwt: Adjust installation directory layout.
* gnu/packages/qt.scm (qwt)[arguments]<#:phases>: Modify 'qwtconfig.pri' to
use a directory layout that matching qtbase. Modify 'doc/doc.pro' to remove
the misplaced installation of man pages. Rename phase
'install-documentation'
to 'install-man-pages'.
---
gnu/packages/qt.scm | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 88e0011..f9f1278 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1600,11 +1600,27 @@ securely. It will not store any data unencrypted
unless explicitly requested.")
(modify-phases %standard-phases
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
+ (let* ((out (assoc-ref outputs "out"))
+ (docdir (string-append out "/share/doc/qwt"))
+ (incdir (string-append out "/include/qwt"))
+ (pluginsdir (string-append out "/lib/qt5/plugins/designer"))
+ (featuresdir (string-append out
"/lib/qt5/mkspecs/features")))
(substitute* '("qwtconfig.pri")
- (("/usr/local/qwt-\\$\\$QWT\\_VERSION") out))
+ (("^(\\s*QWT_INSTALL_PREFIX)\\s*=.*" _ x)
+ (format #f "~a = ~a\n" x out))
+ (("^(QWT_INSTALL_DOCS)\\s*=.*" _ x)
+ (format #f "~a = ~a\n" x docdir))
+ (("^(QWT_INSTALL_HEADERS)\\s*=.*" _ x)
+ (format #f "~a = ~a\n" x incdir))
+ (("^(QWT_INSTALL_PLUGINS)\\s*=.*" _ x)
+ (format #f "~a = ~a\n" x pluginsdir))
+ (("^(QWT_INSTALL_FEATURES)\\s*=.*" _ x)
+ (format #f "~a = ~a\n" x featuresdir)))
+ (substitute* '("doc/doc.pro")
+ ;; We'll install them in the 'install-man-pages' phase.
+ (("^unix:doc\\.files.*") ""))
(zero? (system* "qmake")))))
- (add-after 'install 'install-documentation
+ (add-after 'install 'install-man-pages
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(man (string-append out "/share/man")))
- 01/29: gnu: qtbase: Use a more standard directory layout., (continued)
- 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, 2017/10/06
- 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 <=
- 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
- 02/29: gnu: qt: Fix install paths in submodules., Hartmut Goebel, 2017/10/06
- 04/29: gnu: qtwebkit: Fix rpath for the qmlwebkit plugins., Hartmut Goebel, 2017/10/06
- 12/29: gnu: kwallet: Add optional input qgpgme., Hartmut Goebel, 2017/10/06
- 24/29: gnu: sonnet: Reduce the number of warnings when configuring., Hartmut Goebel, 2017/10/06
- 26/29: gnu: kdeclarative: Reduce the number of warnings when configuring., Hartmut Goebel, 2017/10/06