From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: [PATCH 1/2] gnu: Add qtkeychain. Date: Sun, 8 Nov 2015 08:17:57 +0200 Message-ID: <20151108081757.6915e2d3@debian-netbook> References: <1446497399-30726-1-git-send-email-efraim@flashner.co.il> <1446497399-30726-2-git-send-email-efraim@flashner.co.il> <87d1vocf05.fsf@gnu.org> <20151107203145.75002d7c@debian-netbook> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/gjCMe_0NrJp8RFYIPcXP_l."; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvJIn-0003FY-3X for guix-devel@gnu.org; Sun, 08 Nov 2015 01:18:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvJIi-00068Z-Gg for guix-devel@gnu.org; Sun, 08 Nov 2015 01:18:09 -0500 In-Reply-To: <20151107203145.75002d7c@debian-netbook> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?UTF-8?B?Q291cnTDqHM=?= Cc: guix-devel@gnu.org --Sig_/gjCMe_0NrJp8RFYIPcXP_l. Content-Type: multipart/mixed; boundary="MP_/xvf/s6deYiSUWdS1O7KQwBk" --MP_/xvf/s6deYiSUWdS1O7KQwBk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sat, 7 Nov 2015 20:31:45 +0200 Efraim Flashner wrote: > On Thu, 05 Nov 2015 22:28:42 +0100 > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: >=20 > > Efraim Flashner skribis: > > =20 > > > * gnu/packages/qt.scm (qtkeychain): New variable. =20 > >=20 > > [...] > > =20 > > > + (modify-phases > > > + %standard-phases =20 > >=20 > > =E2=80=98%standard-phases=E2=80=99 goes on the previous line. > > =20 > > > + (add-before > > > + 'configure 'set-qt-trans-dir > > > + (lambda _ > > > + (substitute* "CMakeLists.txt" > > > + (("\\$\\{qt_translations_dir\\}") > > > + "${CMAKE_INSTALL_PREFIX}/share/qtkeychain/translatio= ns"))))))) =20 > >=20 > > Is Qt able to find translations installed there? Is some environment > > variable needed to tell it where to look for them? =20 >=20 > I don't really know. Without this it tries to install them to /gnu/store/= ...qt5/translations, so I tried to make a directory that would make sense. = In this patch I've changed it to just /translations, but I still didn't see= it in .guix-profile/share/{de,ro}/LC_MESSAGES/, so I don't really know wha= t to do with it. > > =20 -- > > Thanks, > > Ludo=E2=80=99. =20 >=20 I took a look at Nix's qtkeychain package and I saw they put the translatio= ns in /share/qt/translations so I changed the output (again) to there, and when I installed it, there it was in .guix-profile/share/qt/translations, so I think we may actually be at the right point with it. I don't know what the difference is between /share/qt/translations and /share/$lang/LC_MESSAGES. I installed qt and didn't see any difference. I could change the output so th= at it lands in LC_MESSAGES, but that seems even messier than the other options since it has to be filtered by language. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --MP_/xvf/s6deYiSUWdS1O7KQwBk Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0001-gnu-Add-qtkeychain.patch =46rom f4ae6cc0036556d1c205e8dbce658fd47f81b7fd Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 16 Sep 2015 15:24:27 +0300 Subject: [PATCH 1/2] gnu: Add qtkeychain. * gnu/packages/qt.scm (qtkeychain): New variable. --- gnu/packages/qt.scm | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 9813f5b..242c21a 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -2,6 +2,7 @@ ;;; Copyright =C2=A9 2013, 2014, 2015 Andreas Enge ;;; Copyright =C2=A9 2015 Sou Bunnbu ;;; Copyright =C2=A9 2015 Ludovic Court=C3=A8s +;;; Copyright =C2=A9 2015 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; @@ -19,10 +20,11 @@ ;;; along with GNU Guix. If not, see . =20 (define-module (gnu packages qt) - #:use-module ((guix licenses) #:select (gpl2 gpl3 lgpl2.1 x11-style)) + #:use-module ((guix licenses) #:select (bsd-3 gpl2 gpl3 lgpl2.1 x11-styl= e)) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build utils) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix packages) #:use-module (guix utils) @@ -518,3 +520,35 @@ contain over 620 classes.") ("qt" ,qt-4))) (inputs `(("python" ,python-2))))) + +(define-public qtkeychain + (package + (name "qtkeychain") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/frankosterfeld/qtkeychain/" + "archive/v" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "055mkd4pz6cyff4cw0784wjc1w92m8x223sxi96ph15fr3lplbg6")))) + (build-system cmake-build-system) + (inputs + `(("qt", qt))) + (arguments + `(#:tests? #f ; No tests included + #:phases + (modify-phases %standard-phases + (add-before + 'configure 'set-qt-trans-dir + (lambda _ + (substitute* "CMakeLists.txt" + (("\\$\\{qt_translations_dir\\}") + "${CMAKE_INSTALL_PREFIX}/share/qt/translations"))))))) + (home-page "https://github.com/frankosterfeld/qtkeychain") + (synopsis "Qt API to store passwords") + (description + "QtKeychain is a Qt library to store passwords and other secret data +securely. It will not store any data unencrypted unless explicitly reques= ted.") + (license bsd-3))) --=20 2.6.2 --MP_/xvf/s6deYiSUWdS1O7KQwBk-- --Sig_/gjCMe_0NrJp8RFYIPcXP_l. Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJWPukVAAoJEPTB05F+rO6ThDAQAKIoITEqwxFlUE9mSR7a7bbd +O81phuwDhqt/5X28qRZ4cJdv1gvmUCFSVEmF383ig8p8ue1K8Xtl6aKRXHMX8Xh dSSpOGqEVJfkCovtjoMmlE4gJmqZQPPPl6bOQwwSXo1I8/4UwWOQ20kf4Z04e/Zp BkvQVnSHCV8wB4RlEvfoA8SmZj3lxoF5FSuyac0xmYXa/tBfupmJX6CwTz/lQ975 XJNwbiWIasebDP5l4EPyuxECWOHl24LdrkiG6aDWZbkuG8sgNSJmfics2+ny+IQA fj/sIQcpwI3yN0w54bgmo/eZj0QuBYp910rq6Ruy6fpOWhdR1UQ0tWFbKxyO8UG1 +c0GwxZDkH7BSIPaYR5tP0czTWvlJy5n83NkQXdPDEHkDvbFCFlfXZzZQkbZqiW/ O2m7RW4CaHyv3rCcSHsrPz8tIzNnGBeceQAyWnKJYdovQWszG3Z/QkFeuk498kvw BluJrUaAEgYoFhzanJSOhQDb7j9uYEWGwCYRFlkwDqdO2dwXAP9GQcHSwrImeUSn tdq6xzK1w3gN0yXapmIWc2BugLxz0G+RjLzxyJeKr9n0NupvnOl3YeAH6X6ncYw+ Wcnl3fPdkkZ/t1sRj4ngxssNH1X12DtoWhIoFG4DYcMpdeSJsDCJuSqr0g+Zsn56 fYLscrBUuE/3ZY2Ss+Ai =gOv5 -----END PGP SIGNATURE----- --Sig_/gjCMe_0NrJp8RFYIPcXP_l.--