GNU bug report logs -
#42928
[PATCH 0/2] gnu: qttools: Install additional files.
Previous Next
To reply to this bug, email your comments to 42928 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#42928
; Package
guix-patches
.
(Wed, 19 Aug 2020 11:51:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Timotej Lazar <timotej.lazar <at> araneo.si>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 19 Aug 2020 11:51:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
this installs desktop files and manpages for Qt utilities.
Thanks!
Timotej Lazar (2):
gnu: qttools: Install desktop files and icons.
gnu: qttools: Install man pages.
gnu/packages/qt.scm | 70 ++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 69 insertions(+), 1 deletion(-)
--
2.28.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42928
; Package
guix-patches
.
(Wed, 19 Aug 2020 11:55:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 42928 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/qt.scm (qttools)[phases]: Add 'install-desktop-files.
---
gnu/packages/qt.scm | 62 ++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 61 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index ee903ecae9..4ca9786d8b 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1185,7 +1185,67 @@ positioning and geolocation plugins.")))
"1iakl3hlyg51ri1czmis8mmb257b0y1zk2a2knybd3mq69wczc2v"))))
(arguments
(substitute-keyword-arguments (package-arguments qtsvg)
- ((#:tests? _ #f) #f))) ; TODO: Enable the tests
+ ((#:tests? _ #f) #f) ; TODO: Enable the tests
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'install 'install-desktop-files
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (apps (string-append out "/share/applications"))
+ (icons (string-append out "/share/icons/hicolor")))
+ ;; Install icons.
+ (with-directory-excursion "src"
+ (for-each
+ (lambda (icon)
+ ;; Get name and size from the slightly inconsistent filenames.
+ (let* ((parts (string-split (basename icon ".png") #\-))
+ (name (car parts))
+ (size (if (> (length parts) 1) (cadr parts) "32"))
+ (dest (string-append icons "/" size "x" size "/apps")))
+ (mkdir-p dest)
+ (copy-file icon (string-append dest "/" name ".png"))))
+ '("assistant/assistant/images/assistant.png"
+ "assistant/assistant/images/assistant-128.png"
+ "designer/src/designer/images/designer.png"
+ "linguist/linguist/images/icons/linguist-16-32.png"
+ "linguist/linguist/images/icons/linguist-32-32.png"
+ "linguist/linguist/images/icons/linguist-48-32.png"
+ "linguist/linguist/images/icons/linguist-64-32.png"
+ "linguist/linguist/images/icons/linguist-128-32.png"
+ "qdbus/qdbusviewer/images/qdbusviewer.png"
+ "qdbus/qdbusviewer/images/qdbusviewer-128.png")))
+ ;; Install desktop files.
+ (make-desktop-entry-file
+ (string-append apps "/assistant.desktop")
+ #:name "Qt Assistant"
+ #:comment "Browse Qt documentation and examples"
+ #:exec "assistant"
+ #:icon "assistant"
+ #:categories '("Qt" "Development" "Documentation"))
+ (make-desktop-entry-file
+ (string-append apps "/designer.desktop")
+ #:name "Qt Designer"
+ #:comment "Design GUIs for Qt applications"
+ #:exec "designer"
+ #:icon "designer"
+ #:categories '("Qt" "Development" "GUIDesigner")
+ #:mime-type '("application/x-designer"))
+ (make-desktop-entry-file
+ (string-append apps "/linguist.desktop")
+ #:name "Qt Linguist"
+ #:comment "Translate Qt applications"
+ #:exec "linguist"
+ #:icon "linguist"
+ #:categories '("Qt" "Development" "Translation")
+ #:mime-type '("application/x-linguist"))
+ (make-desktop-entry-file
+ (string-append apps "/qdbusviewer.desktop")
+ #:name "Qt D-Bus viewer"
+ #:comment "Browse D-Bus objects and messages"
+ #:exec "qdbusviewer"
+ #:icon "qdbusviewer"
+ #:categories '("Qt" "Development")))
+ #t))))))
(native-inputs
`(("perl" ,perl)
("qtdeclarative" ,qtdeclarative)
--
2.28.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42928
; Package
guix-patches
.
(Wed, 19 Aug 2020 11:55:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 42928 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/qt.scm (qttools)[phases]: Add 'install-man-pages.
---
gnu/packages/qt.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 4ca9786d8b..a3ffb7e79d 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -1188,7 +1188,15 @@ positioning and geolocation plugins.")))
((#:tests? _ #f) #f) ; TODO: Enable the tests
((#:phases phases)
`(modify-phases ,phases
- (add-after 'install 'install-desktop-files
+ (add-after 'install 'install-man-pages
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (man (string-append out "/share/man/man1")))
+ (with-directory-excursion "src/linguist"
+ (install-file "lrelease/lrelease.1" man)
+ (install-file "lupdate/lupdate.1" man)))
+ #t))
+ (add-after 'install-man-pages 'install-desktop-files
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(apps (string-append out "/share/applications"))
--
2.28.0
This bug report was last modified 4 years and 298 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.