gnome-base/gnome-keyring: bump to 3.34.0
authorMart Raudsepp <leio@gentoo.org>
Tue, 17 Mar 2020 21:23:16 +0000 (23:23 +0200)
committerMart Raudsepp <leio@gentoo.org>
Tue, 17 Mar 2020 21:31:53 +0000 (23:31 +0200)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
gnome-base/gnome-keyring/Manifest
gnome-base/gnome-keyring/gnome-keyring-3.34.0.ebuild [new file with mode: 0644]

index b9ce1c4118af0d68d13d0f2f5c0fac091d9302f9..813d010c437ecefdfcc9b725ff4d62893fa5f6a9 100644 (file)
@@ -1 +1,2 @@
 DIST gnome-keyring-3.31.91.tar.xz 1365052 BLAKE2B fed6ac7bb5a509e268180d047cd5df1564d5a90672f5240fa98773f43d9ca7eb63c598d81c4a9de8e988ee5886679bceeb4be1c43acce876680aeb3df4385856 SHA512 c66ad13fd84764f01e75de2d6142ecb42954d6111f86738c27e7b5b94e702be2af5af7f83ba4e4b9aae58cfa04f3973e272c8177179d1f8a54f63c037aea0210
+DIST gnome-keyring-3.34.0.tar.xz 1333768 BLAKE2B 0237eb7ac0b7146d096c58cac4c788a92680f1a6dd321949f295935bde206263e5ee1762c9d393dfbc10322d018e835333c823d11e8af5dc01434555886626dd SHA512 09f84bdf5ea415a55baf6a57dba2889cdf592005d273335029107ea3f83152447b3263cd190810930aae41af22dd508e765e649da3c8a9afa127db1d298bb72a
diff --git a/gnome-base/gnome-keyring/gnome-keyring-3.34.0.ebuild b/gnome-base/gnome-keyring/gnome-keyring-3.34.0.ebuild
new file mode 100644 (file)
index 0000000..650e6ad
--- /dev/null
@@ -0,0 +1,79 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python2_7 )
+
+inherit fcaps gnome2 pam python-any-r1 virtualx
+
+DESCRIPTION="Password and keyring managing daemon"
+HOMEPAGE="https://wiki.gnome.org/Projects/GnomeKeyring"
+
+LICENSE="GPL-2+ LGPL-2+"
+SLOT="0"
+IUSE="+caps pam selinux +ssh-agent test"
+RESTRICT="!test? ( test )"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
+
+# Replace gkd gpg-agent with pinentry[gnome-keyring] one, bug #547456
+RDEPEND="
+       >=app-crypt/gcr-3.27.90:=[gtk]
+       >=dev-libs/glib-2.44:2
+       app-misc/ca-certificates
+       >=dev-libs/libgcrypt-1.2.2:0=
+       caps? ( sys-libs/libcap-ng )
+       pam? ( sys-libs/pam )
+       selinux? ( sec-policy/selinux-gnome )
+       >=app-crypt/gnupg-2.0.28:=
+       ssh-agent? ( net-misc/openssh )
+"
+DEPEND="${RDEPEND}
+       >=app-eselect/eselect-pinentry-0.5
+       app-text/docbook-xml-dtd:4.3
+       dev-libs/libxslt
+       >=sys-devel/gettext-0.19.8
+       virtual/pkgconfig
+       test? ( ${PYTHON_DEPS} )
+"
+PDEPEND="app-crypt/pinentry[gnome-keyring]" #570512
+
+pkg_setup() {
+       use test && python-any-r1_pkg_setup
+}
+
+src_prepare() {
+       # Disable stupid CFLAGS with debug enabled
+       sed -e 's/CFLAGS="$CFLAGS -g"//' \
+               -e 's/CFLAGS="$CFLAGS -O0"//' \
+               -i configure.ac configure || die
+
+       gnome2_src_prepare
+}
+
+src_configure() {
+       gnome2_src_configure \
+               $(use_with caps libcap-ng) \
+               $(use_enable pam) \
+               $(use_with pam pam-dir $(getpam_mod_dir)) \
+               $(use_enable selinux) \
+               $(use_enable ssh-agent) \
+               --enable-doc
+}
+
+src_test() {
+        "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/schema" || die
+        GSETTINGS_SCHEMA_DIR="${S}/schema" virtx emake check
+}
+
+pkg_postinst() {
+       # cap_ipc_lock only needed if building --with-libcap-ng
+       # Never install as suid root, this breaks dbus activation, see bug #513870
+       use caps && fcaps -m 755 cap_ipc_lock usr/bin/gnome-keyring-daemon
+       gnome2_pkg_postinst
+
+       if ! [[ $(eselect pinentry show | grep "pinentry-gnome3") ]] ; then
+               ewarn "Please select pinentry-gnome3 as default pinentry provider:"
+               ewarn " # eselect pinentry set pinentry-gnome3"
+       fi
+}