GNU bug report logs - #42928
[PATCH 0/2] gnu: qttools: Install additional files.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Timotej Lazar <timotej.lazar@HIDDEN>; Keywords: patch; dated Wed, 19 Aug 2020 11:51:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 42928 <at> debbugs.gnu.org:


Received: (at 42928) by debbugs.gnu.org; 19 Aug 2020 11:54:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 19 07:54:28 2020
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>
To: 42928 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: qttools: Install man pages.
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-Debbugs-Envelope-To: 42928
Cc: Timotej Lazar <timotej.lazar@HIDDEN>
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





Information forwarded to guix-patches@HIDDEN:
bug#42928; Package guix-patches. Full text available.

Message received at 42928 <at> debbugs.gnu.org:


Received: (at 42928) by debbugs.gnu.org; 19 Aug 2020 11:54:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 19 07:54:24 2020
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>
To: 42928 <at> debbugs.gnu.org
Subject: [PATCH 1/2] gnu: qttools: Install desktop files and icons.
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-Debbugs-Envelope-To: 42928
Cc: Timotej Lazar <timotej.lazar@HIDDEN>
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





Information forwarded to guix-patches@HIDDEN:
bug#42928; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Aug 2020 11:50:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 19 07:50:44 2020
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>
To: guix-patches@HIDDEN
Subject: [PATCH 0/2] gnu: qttools: Install additional files.
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-Debbugs-Envelope-To: submit
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




Acknowledgement sent to Timotej Lazar <timotej.lazar@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#42928; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 19 Aug 2020 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.