X-Loop: help-debbugs@HIDDEN
Subject: [bug#42928] [PATCH 0/2] gnu: qttools: Install additional files.
Resent-From: Timotej Lazar <timotej.lazar@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Wed, 19 Aug 2020 11:51:01 +0000
Resent-Message-ID: <handler.42928.B.15978378441917 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 42928
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 42928 <at> debbugs.gnu.org
X-Debbugs-Original-To: guix-patches@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.15978378441917
(code B ref -1); Wed, 19 Aug 2020 11:51:01 +0000
Received: (at submit) by debbugs.gnu.org; 19 Aug 2020 11:50:44 +0000
Received: from localhost ([127.0.0.1]:38325 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1k8Mc8-0000Ur-FJ
for submit <at> debbugs.gnu.org; Wed, 19 Aug 2020 07:50:44 -0400
Received: from lists.gnu.org ([209.51.188.17]:37516)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <timotej.lazar@HIDDEN>) id 1k8Mc6-0000Uj-K1
for submit <at> debbugs.gnu.org; Wed, 19 Aug 2020 07:50:43 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:57856)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <timotej.lazar@HIDDEN>)
id 1k8Mc6-00007T-5c
for guix-patches@HIDDEN; Wed, 19 Aug 2020 07:50:42 -0400
Received: from araneo.si ([2001:15c0:2110:3400::2]:59354)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <timotej.lazar@HIDDEN>)
id 1k8Mc4-0004Da-9i
for guix-patches@HIDDEN; Wed, 19 Aug 2020 07:50:41 -0400
Received: from araneo.si (localhost.lan [127.0.0.1])
by araneo.si (OpenSMTPD) with ESMTP id b91b6eba
for <guix-patches@HIDDEN>; Wed, 19 Aug 2020 11:50:35 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to
:subject:date:message-id:mime-version:content-type; s=20180623;
bh=PIzPwIRGSgXAs35qiPHsvP6g2oY=; b=xvO7fhJ4PXQn+OkCqQJTK711ByGs
2zgY3Uo2LqFfMFT1RDivIfIUz9vDO4w/GDvmiZxqRPrP1ojtcc9IuTPgbGVo9jO8
HOUlkmJVJ6jqr94RadX3BWUTquoqm3irmNrXc+urpZAYSvcRbYMfn0MzARUBnbPN
0hXp01CN5vedwOPm7aR1svAPeqZ9mxDEfnIi7Ma6wZI2P1CDRyERIThbinGOdkA4
QTHdhHbbMFP5yNE1tyz6bDSyVs4jncHAFkRgJwCdslrN+JtuirT/dkuBFe2HnAWg
iIPlrjnQW4FaGkwWBrl3QBuPQQVQREwn+6+XhdHzrcZm2lVNpc5rNbCAOQ==
Received: by araneo.si (OpenSMTPD) with ESMTPSA id 8c8f8b70
(TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <guix-patches@HIDDEN>;
Wed, 19 Aug 2020 11:50:35 +0000 (UTC)
From: Timotej Lazar <timotej.lazar@HIDDEN>
Date: Wed, 19 Aug 2020 13:50:34 +0200
Message-ID: <87zh6qn9bp.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2001:15c0:2110:3400::2;
envelope-from=timotej.lazar@HIDDEN; helo=araneo.si
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
That's all we know.
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001,
SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)
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
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Timotej Lazar <timotej.lazar@HIDDEN> Subject: bug#42928: Acknowledgement ([PATCH 0/2] gnu: qttools: Install additional files.) Message-ID: <handler.42928.B.15978378441917.ack <at> debbugs.gnu.org> References: <87zh6qn9bp.fsf@HIDDEN> X-Gnu-PR-Message: ack 42928 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 42928 <at> debbugs.gnu.org Date: Wed, 19 Aug 2020 11:51:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): guix-patches@HIDDEN If you wish to submit further information on this problem, please send it to 42928 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 42928: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D42928 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN
Subject: [bug#42928] [PATCH 1/2] gnu: qttools: Install desktop files and icons.
References: <87zh6qn9bp.fsf@HIDDEN>
In-Reply-To: <87zh6qn9bp.fsf@HIDDEN>
Resent-From: Timotej Lazar <timotej.lazar@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Wed, 19 Aug 2020 11:55:01 +0000
Resent-Message-ID: <handler.42928.B42928.15978380642303 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 42928
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 42928 <at> debbugs.gnu.org
Cc: Timotej Lazar <timotej.lazar@HIDDEN>
Received: via spool by 42928-submit <at> debbugs.gnu.org id=B42928.15978380642303
(code B ref 42928); Wed, 19 Aug 2020 11:55:01 +0000
Received: (at 42928) by debbugs.gnu.org; 19 Aug 2020 11:54:24 +0000
Received: from localhost ([127.0.0.1]:38345 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1k8Mff-0000b5-Sg
for submit <at> debbugs.gnu.org; Wed, 19 Aug 2020 07:54:24 -0400
Received: from araneo.si ([90.157.193.204]:35690)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <timotej.lazar@HIDDEN>) id 1k8Mfd-0000aw-Ul
for 42928 <at> debbugs.gnu.org; Wed, 19 Aug 2020 07:54:22 -0400
Received: from araneo.si (localhost.lan [127.0.0.1])
by araneo.si (OpenSMTPD) with ESMTP id 44b907ee
for <42928 <at> debbugs.gnu.org>; Wed, 19 Aug 2020 11:54:20 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to:cc
:subject:date:message-id:mime-version:content-transfer-encoding;
s=20180623; bh=SbKgmRIjeWYELnpb94fwZywxUMU=; b=qljAE0Ff1+sf3+XA
7cenfjqkv8rgyD+hciJ02wfQkBAzkkBI1NEgLCrP3fLvQjNx0ctKtIXrLJ1xTDhW
9+L41HXyglTW48lD6/AI/XChgEqLC2wmJXpY/ZKPQvbEIarzisuPTy8fwi09FQOa
uvN9zF7VpzDosEaSBFAK66RAu2sSiOxmIqsDiYhHrIZvhI4FZpYbJhaaZMz8a8UA
nvK6+z7aTy/mg0MIKhHdEpgW5GDoSgVZn5k5pePULshC/Z6heQDrlut3720Ub+W/
DHtu0hwyLQPsshTpeS+2GYnnCRz0K5sn52vcIkbosmorRaY7W3Q71brreKUu+n1d
4hOhyA==
Received: by araneo.si (OpenSMTPD) with ESMTPSA id 4b6a6952
(TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO);
Wed, 19 Aug 2020 11:54:20 +0000 (UTC)
From: Timotej Lazar <timotej.lazar@HIDDEN>
Date: Wed, 19 Aug 2020 13:53:17 +0200
Message-Id: <20200819115318.5655-1-timotej.lazar@HIDDEN>
X-Mailer: git-send-email 2.28.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
* 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
X-Loop: help-debbugs@HIDDEN
Subject: [bug#42928] [PATCH 2/2] gnu: qttools: Install man pages.
Resent-From: Timotej Lazar <timotej.lazar@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Wed, 19 Aug 2020 11:55:02 +0000
Resent-Message-ID: <handler.42928.B42928.15978380682320 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 42928
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 42928 <at> debbugs.gnu.org
Cc: Timotej Lazar <timotej.lazar@HIDDEN>
Received: via spool by 42928-submit <at> debbugs.gnu.org id=B42928.15978380682320
(code B ref 42928); Wed, 19 Aug 2020 11:55:02 +0000
Received: (at 42928) by debbugs.gnu.org; 19 Aug 2020 11:54:28 +0000
Received: from localhost ([127.0.0.1]:38349 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1k8Mfk-0000bL-6p
for submit <at> debbugs.gnu.org; Wed, 19 Aug 2020 07:54:28 -0400
Received: from araneo.si ([90.157.193.204]:35690)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <timotej.lazar@HIDDEN>) id 1k8Mfi-0000aw-63
for 42928 <at> debbugs.gnu.org; Wed, 19 Aug 2020 07:54:26 -0400
Received: from araneo.si (localhost.lan [127.0.0.1])
by araneo.si (OpenSMTPD) with ESMTP id 9475ed32
for <42928 <at> debbugs.gnu.org>; Wed, 19 Aug 2020 11:54:24 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to:cc
:subject:date:message-id:in-reply-to:references:mime-version
:content-transfer-encoding; s=20180623; bh=c2LJppLct2PdgRqsZY5/1
H9x1IY=; b=PL3j6nypfH3qq0AK9qoHcLMZGS6kxcxBEJZ+T++QgvE2EN/9OfRe0
E/k4h8J+p+06LIveag8o6DPOwGFV7uDbYRQPzOYcUAwcvo+cv+5N+Pb1z4jowSwA
7AgcrSbBKIhNm5EezmqiG6f/Yrw39p7+6Do1n1ZQDjULVftqOTL7R3HhZqMVNDld
+9XDyBJd4sinQ50B8eu0l3k38YqlAF6NJIZlGo+j0zI00/mFL9GHAtI0vq1Ehw8W
NCjsm2GncKjWjMvEKxF/OwBjw9twT2Gh/Ew9ioyYKbHOqJzBwkASFV1kTYxooWTv
BdfK1zqDU/huYJniWENaNHErBupT5IusA==
Received: by araneo.si (OpenSMTPD) with ESMTPSA id f3f5e344
(TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO);
Wed, 19 Aug 2020 11:54:23 +0000 (UTC)
From: Timotej Lazar <timotej.lazar@HIDDEN>
Date: Wed, 19 Aug 2020 13:53:18 +0200
Message-Id: <20200819115318.5655-2-timotej.lazar@HIDDEN>
X-Mailer: git-send-email 2.28.0
In-Reply-To: <20200819115318.5655-1-timotej.lazar@HIDDEN>
References: <20200819115318.5655-1-timotej.lazar@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
* 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
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.