Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-base/gnome-keyring/
Date: Sun, 29 May 2016 12:47:55
Message-Id: 1464526023.6ecfa99c1db1fedcda42da22cd738cd1aa959df2.pacho@gentoo
1 commit: 6ecfa99c1db1fedcda42da22cd738cd1aa959df2
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 29 12:47:03 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun May 29 12:47:03 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ecfa99c
7
8 gnome-base/gnome-keyring: Pull pinentry in PDEPEND (#570512)
9
10 Package-Manager: portage-2.3.0_rc1
11
12 .../gnome-keyring/gnome-keyring-3.18.3-r1.ebuild | 82 ++++++++++++++++++++++
13 1 file changed, 82 insertions(+)
14
15 diff --git a/gnome-base/gnome-keyring/gnome-keyring-3.18.3-r1.ebuild b/gnome-base/gnome-keyring/gnome-keyring-3.18.3-r1.ebuild
16 new file mode 100644
17 index 0000000..1a27a97
18 --- /dev/null
19 +++ b/gnome-base/gnome-keyring/gnome-keyring-3.18.3-r1.ebuild
20 @@ -0,0 +1,82 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI="5"
26 +GCONF_DEBUG="yes" # Not gnome macro but similar
27 +GNOME2_LA_PUNT="yes"
28 +PYTHON_COMPAT=( python2_7 )
29 +
30 +inherit fcaps gnome2 pam python-any-r1 versionator virtualx
31 +
32 +DESCRIPTION="Password and keyring managing daemon"
33 +HOMEPAGE="https://wiki.gnome.org/Projects/GnomeKeyring"
34 +
35 +LICENSE="GPL-2+ LGPL-2+"
36 +SLOT="0"
37 +IUSE="+caps pam selinux +ssh-agent test"
38 +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"
39 +
40 +# Replace gkd gpg-agent with pinentry[gnome-keyring] one, bug #547456
41 +RDEPEND="
42 + >=app-crypt/gcr-3.5.3:=[gtk]
43 + >=dev-libs/glib-2.38:2
44 + app-misc/ca-certificates
45 + >=dev-libs/libgcrypt-1.2.2:0=
46 + caps? ( sys-libs/libcap-ng )
47 + pam? ( virtual/pam )
48 + >=app-crypt/gnupg-2.0.28:=
49 +"
50 +DEPEND="${RDEPEND}
51 + >=app-eselect/eselect-pinentry-0.5
52 + app-text/docbook-xml-dtd:4.3
53 + dev-libs/libxslt
54 + >=dev-util/intltool-0.35
55 + sys-devel/gettext
56 + virtual/pkgconfig
57 + test? ( ${PYTHON_DEPS} )
58 +"
59 +PDEPEND="app-crypt/pinentry[gnome-keyring]" #570512
60 +
61 +pkg_setup() {
62 + use test && python-any-r1_pkg_setup
63 +}
64 +
65 +src_prepare() {
66 + # Disable stupid CFLAGS with debug enabled
67 + sed -e 's/CFLAGS="$CFLAGS -g"//' \
68 + -e 's/CFLAGS="$CFLAGS -O0"//' \
69 + -i configure.ac configure || die
70 +
71 + gnome2_src_prepare
72 +}
73 +
74 +src_configure() {
75 + gnome2_src_configure \
76 + $(use_with caps libcap-ng) \
77 + $(use_enable pam) \
78 + $(use_with pam pam-dir $(getpam_mod_dir)) \
79 + $(use_enable selinux) \
80 + $(use_enable ssh-agent) \
81 + --enable-doc
82 +}
83 +
84 +src_test() {
85 + # FIXME: this should be handled at eclass level
86 + "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/schema" || die
87 +
88 + unset DBUS_SESSION_BUS_ADDRESS
89 + GSETTINGS_SCHEMA_DIR="${S}/schema" Xemake check
90 +}
91 +
92 +pkg_postinst() {
93 + # cap_ipc_lock only needed if building --with-libcap-ng
94 + # Never install as suid root, this breaks dbus activation, see bug #513870
95 + use caps && fcaps -m 755 cap_ipc_lock usr/bin/gnome-keyring-daemon
96 + gnome2_pkg_postinst
97 +
98 + if ! [[ $(eselect pinentry show | grep "pinentry-gnome3") ]] ; then
99 + ewarn "Please select pinentry-gnome3 as default pinentry provider:"
100 + ewarn " # eselect pinentry set pinentry-gnome3"
101 + fi
102 +}