Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/qtpass/
Date: Sun, 19 Jan 2020 23:53:41
Message-Id: 1579477892.5a31e596d93cefb19f61cd7598cff35bf5471556.asturm@gentoo
1 commit: 5a31e596d93cefb19f61cd7598cff35bf5471556
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 15 20:40:15 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 19 23:51:32 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a31e596
7
8 app-admin/qtpass: Prepare for dev-qt/qtgui[xcb -> X]
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-admin/qtpass/qtpass-1.3.2-r1.ebuild | 65 +++++++++++++++++++++++++++++++++
14 1 file changed, 65 insertions(+)
15
16 diff --git a/app-admin/qtpass/qtpass-1.3.2-r1.ebuild b/app-admin/qtpass/qtpass-1.3.2-r1.ebuild
17 new file mode 100644
18 index 00000000000..7ece9838e01
19 --- /dev/null
20 +++ b/app-admin/qtpass/qtpass-1.3.2-r1.ebuild
21 @@ -0,0 +1,65 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit desktop qmake-utils virtualx
28 +
29 +DESCRIPTION="multi-platform GUI for pass, the standard unix password manager"
30 +HOMEPAGE="https://qtpass.org/"
31 +SRC_URI="https://github.com/IJHack/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
32 +
33 +LICENSE="GPL-3"
34 +SLOT="0"
35 +KEYWORDS="~amd64 ~ppc64 ~x86"
36 +IUSE="test"
37 +
38 +RDEPEND="app-admin/pass
39 + dev-qt/qtcore:5
40 + || (
41 + dev-qt/qtgui:5[X(-)]
42 + dev-qt/qtgui:5[xcb(-)]
43 + )
44 + dev-qt/qtnetwork:5
45 + dev-qt/qtwidgets:5
46 + net-misc/x11-ssh-askpass"
47 +DEPEND="${RDEPEND}
48 + dev-qt/qtsvg:5
49 + test? ( dev-qt/qttest:5 )"
50 +BDEPEND="dev-qt/linguist-tools:5"
51 +
52 +RESTRICT="!test? ( test )"
53 +
54 +S="${WORKDIR}/QtPass-${PV}"
55 +
56 +DOCS=( {CHANGELOG,CONTRIBUTING,FAQ,README}.md )
57 +
58 +src_prepare() {
59 + default
60 +
61 + if ! use test ; then
62 + sed -i '/SUBDIRS += src /s/tests //' \
63 + qtpass.pro || die "sed for qtpass.pro failed"
64 + fi
65 +}
66 +
67 +src_configure() {
68 + eqmake5 PREFIX="${D}"/usr
69 +}
70 +
71 +src_test() {
72 + virtx default
73 +}
74 +
75 +src_install() {
76 + default
77 +
78 + insinto /usr/share/qtpass/translations
79 + doins localization/*.qm
80 +
81 + doman qtpass.1
82 + domenu qtpass.desktop
83 + newicon artwork/icon.png qtpass-icon.png
84 + insinto /usr/share/appdata
85 + doins qtpass.appdata.xml
86 +}