Gentoo Archives: gentoo-commits

From: Ole Reifschneider <tranquility@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: gnome-base/gnome-keyring/
Date: Sat, 26 Mar 2016 22:54:27
Message-Id: 1459027210.16c71e35ff5a2c6ff4404c599d0c07d7d9a1cc5a.tranquility@gentoo
1 commit: 16c71e35ff5a2c6ff4404c599d0c07d7d9a1cc5a
2 Author: Ole Reifschneider <tranquility <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 26 21:20:10 2016 +0000
4 Commit: Ole Reifschneider <tranquility <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 26 21:20:10 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=16c71e35
7
8 gnome-base/gnome-keyring: Bump version to 3.20.0
9
10 Package-Manager: portage-2.2.28
11 Manifest-Sign-Key: 0xE9E568677E8B4D42
12
13 ...ing-9999.ebuild => gnome-keyring-3.20.0.ebuild} | 37 ++++++++++++----------
14 gnome-base/gnome-keyring/gnome-keyring-9999.ebuild | 26 ++++++++++-----
15 2 files changed, 38 insertions(+), 25 deletions(-)
16
17 diff --git a/gnome-base/gnome-keyring/gnome-keyring-9999.ebuild b/gnome-base/gnome-keyring/gnome-keyring-3.20.0.ebuild
18 similarity index 66%
19 copy from gnome-base/gnome-keyring/gnome-keyring-9999.ebuild
20 copy to gnome-base/gnome-keyring/gnome-keyring-3.20.0.ebuild
21 index efe0831..ecbd8d6 100644
22 --- a/gnome-base/gnome-keyring/gnome-keyring-9999.ebuild
23 +++ b/gnome-base/gnome-keyring/gnome-keyring-3.20.0.ebuild
24 @@ -1,4 +1,4 @@
25 -# Copyright 1999-2015 Gentoo Foundation
26 +# Copyright 1999-2016 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 # $Id$
29
30 @@ -8,32 +8,31 @@ GNOME2_LA_PUNT="yes"
31 PYTHON_COMPAT=( python2_7 )
32
33 inherit fcaps gnome2 pam python-any-r1 versionator virtualx
34 -if [[ ${PV} = 9999 ]]; then
35 - inherit gnome2-live
36 -fi
37
38 DESCRIPTION="Password and keyring managing daemon"
39 HOMEPAGE="https://wiki.gnome.org/Projects/GnomeKeyring"
40
41 LICENSE="GPL-2+ LGPL-2+"
42 SLOT="0"
43 -IUSE="+caps debug pam selinux +ssh-agent test"
44 -if [[ ${PV} = 9999 ]]; then
45 - KEYWORDS=""
46 -else
47 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x86-solaris"
48 -fi
49 +IUSE="+caps pam selinux +ssh-agent test"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x86-solaris"
51
52 -RDEPEND="
53 +# Replace gkd gpg-agent with pinentry[gnome-keyring] one, bug #547456
54 +COMMON_DEPEND="
55 >=app-crypt/gcr-3.5.3:=[gtk]
56 >=dev-libs/glib-2.38:2
57 app-misc/ca-certificates
58 >=dev-libs/libgcrypt-1.2.2:0=
59 - >=sys-apps/dbus-1.1.1
60 caps? ( sys-libs/libcap-ng )
61 pam? ( virtual/pam )
62 +
63 + >=app-crypt/gnupg-2.0.28
64 +"
65 +RDEPEND="${COMMON_DEPEND}
66 + app-crypt/pinentry[gnome-keyring]
67 "
68 -DEPEND="${RDEPEND}
69 +DEPEND="${COMMON_DEPEND}
70 + >=app-eselect/eselect-pinentry-0.5
71 app-text/docbook-xml-dtd:4.3
72 dev-libs/libxslt
73 >=dev-util/intltool-0.35
74 @@ -43,11 +42,11 @@ DEPEND="${RDEPEND}
75 "
76
77 pkg_setup() {
78 - python-any-r1_pkg_setup
79 + use test && python-any-r1_pkg_setup
80 }
81
82 src_prepare() {
83 - # Disable stupid CFLAGS
84 + # Disable stupid CFLAGS with debug enabled
85 sed -e 's/CFLAGS="$CFLAGS -g"//' \
86 -e 's/CFLAGS="$CFLAGS -O0"//' \
87 -i configure.ac configure || die
88 @@ -62,8 +61,7 @@ src_configure() {
89 $(use_with pam pam-dir $(getpam_mod_dir)) \
90 $(use_enable selinux) \
91 $(use_enable ssh-agent) \
92 - --enable-doc \
93 - --enable-gpg-agent
94 + --enable-doc
95 }
96
97 src_test() {
98 @@ -79,4 +77,9 @@ pkg_postinst() {
99 # Never install as suid root, this breaks dbus activation, see bug #513870
100 use caps && fcaps -m 755 cap_ipc_lock usr/bin/gnome-keyring-daemon
101 gnome2_pkg_postinst
102 +
103 + if ! [[ $(eselect pinentry show | grep "pinentry-gnome3") ]] ; then
104 + ewarn "Please select pinentry-gnome3 as default pinentry provider:"
105 + ewarn " # eselect pinentry set pinentry-gnome3"
106 + fi
107 }
108
109 diff --git a/gnome-base/gnome-keyring/gnome-keyring-9999.ebuild b/gnome-base/gnome-keyring/gnome-keyring-9999.ebuild
110 index efe0831..11e9a6c 100644
111 --- a/gnome-base/gnome-keyring/gnome-keyring-9999.ebuild
112 +++ b/gnome-base/gnome-keyring/gnome-keyring-9999.ebuild
113 @@ -1,4 +1,4 @@
114 -# Copyright 1999-2015 Gentoo Foundation
115 +# Copyright 1999-2016 Gentoo Foundation
116 # Distributed under the terms of the GNU General Public License v2
117 # $Id$
118
119 @@ -24,16 +24,22 @@ else
120 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x86-solaris"
121 fi
122
123 -RDEPEND="
124 +# Replace gkd gpg-agent with pinentry[gnome-keyring] one, bug #547456
125 +COMMON_DEPEND="
126 >=app-crypt/gcr-3.5.3:=[gtk]
127 >=dev-libs/glib-2.38:2
128 app-misc/ca-certificates
129 >=dev-libs/libgcrypt-1.2.2:0=
130 - >=sys-apps/dbus-1.1.1
131 caps? ( sys-libs/libcap-ng )
132 pam? ( virtual/pam )
133 +
134 + >=app-crypt/gnupg-2.0.28
135 +"
136 +RDEPEND="${COMMON_DEPEND}
137 + app-crypt/pinentry[gnome-keyring]
138 "
139 -DEPEND="${RDEPEND}
140 +DEPEND="${COMMON_DEPEND}
141 + >=app-eselect/eselect-pinentry-0.5
142 app-text/docbook-xml-dtd:4.3
143 dev-libs/libxslt
144 >=dev-util/intltool-0.35
145 @@ -43,11 +49,11 @@ DEPEND="${RDEPEND}
146 "
147
148 pkg_setup() {
149 - python-any-r1_pkg_setup
150 + use test && python-any-r1_pkg_setup
151 }
152
153 src_prepare() {
154 - # Disable stupid CFLAGS
155 + # Disable stupid CFLAGS with debug enabled
156 sed -e 's/CFLAGS="$CFLAGS -g"//' \
157 -e 's/CFLAGS="$CFLAGS -O0"//' \
158 -i configure.ac configure || die
159 @@ -62,8 +68,7 @@ src_configure() {
160 $(use_with pam pam-dir $(getpam_mod_dir)) \
161 $(use_enable selinux) \
162 $(use_enable ssh-agent) \
163 - --enable-doc \
164 - --enable-gpg-agent
165 + --enable-doc
166 }
167
168 src_test() {
169 @@ -79,4 +84,9 @@ pkg_postinst() {
170 # Never install as suid root, this breaks dbus activation, see bug #513870
171 use caps && fcaps -m 755 cap_ipc_lock usr/bin/gnome-keyring-daemon
172 gnome2_pkg_postinst
173 +
174 + if ! [[ $(eselect pinentry show | grep "pinentry-gnome3") ]] ; then
175 + ewarn "Please select pinentry-gnome3 as default pinentry provider:"
176 + ewarn " # eselect pinentry set pinentry-gnome3"
177 + fi
178 }