Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/libsecret/
Date: Fri, 18 Jan 2019 16:30:43
Message-Id: 1547828992.e66093dc211047bc13b7f91b2ad16a580a965bf1.leio@gentoo
1 commit: e66093dc211047bc13b7f91b2ad16a580a965bf1
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 18 16:29:52 2019 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 18 16:29:52 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e66093dc
7
8 app-crypt/libsecret: bump to 0.18.7
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 app-crypt/libsecret/Manifest | 1 +
14 app-crypt/libsecret/libsecret-0.18.7.ebuild | 93 +++++++++++++++++++++++++++++
15 2 files changed, 94 insertions(+)
16
17 diff --git a/app-crypt/libsecret/Manifest b/app-crypt/libsecret/Manifest
18 index 7d66a1d856b..9ca94283cdf 100644
19 --- a/app-crypt/libsecret/Manifest
20 +++ b/app-crypt/libsecret/Manifest
21 @@ -1 +1,2 @@
22 DIST libsecret-0.18.6.tar.xz 487836 BLAKE2B d38a41743142d33e634d77bbf55ccab044def9658b3f50bd3f8cec9be6372ad1a56dcc4de58126cba1246c16da2863c003bf14ea6c8a90d8667658cf492f4b9a SHA512 4997519762f1470cfc0a4b3a791362d030af3c9b6ce6f58f8f8073b3a8adeea9b8caacedc884163997081dc39f395f9172330dbb41fed45d6c43ac5809de48e3
23 +DIST libsecret-0.18.7.tar.xz 508392 BLAKE2B 9774df97c2abb362940c3b373e381afb82ee6af3866cdc18ad52159e824dd9097739d4900eb2dffe117e5b28e2057d0db0cadc3b02e063112309b63fd4d1b870 SHA512 a8890ec52dcfba585fd665ee89e81f4a1d6a04b67bcf4f3422f27973a4ef6fc1281bf54e92160d39dd696ae08a633bab5fe25c1124baf32eb5b414e98ddfa084
24
25 diff --git a/app-crypt/libsecret/libsecret-0.18.7.ebuild b/app-crypt/libsecret/libsecret-0.18.7.ebuild
26 new file mode 100644
27 index 00000000000..c56261e9fbf
28 --- /dev/null
29 +++ b/app-crypt/libsecret/libsecret-0.18.7.ebuild
30 @@ -0,0 +1,93 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +PYTHON_COMPAT=( python3_{4,5,6} )
36 +VALA_USE_DEPEND=vapigen
37 +
38 +inherit gnome2 multilib-minimal python-any-r1 vala virtualx
39 +
40 +DESCRIPTION="GObject library for accessing the freedesktop.org Secret Service API"
41 +HOMEPAGE="https://wiki.gnome.org/Projects/Libsecret"
42 +
43 +LICENSE="LGPL-2.1+ Apache-2.0" # Apache-2.0 license is used for tests only
44 +SLOT="0"
45 +
46 +IUSE="+crypt +introspection test vala"
47 +# Tests fail with USE=-introspection, https://bugs.gentoo.org/655482
48 +REQUIRED_USE="test? ( introspection )
49 + vala? ( introspection )"
50 +
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
52 +
53 +RDEPEND="
54 + >=dev-libs/glib-2.38:2[${MULTILIB_USEDEP}]
55 + crypt? ( >=dev-libs/libgcrypt-1.2.2:0=[${MULTILIB_USEDEP}] )
56 + introspection? ( >=dev-libs/gobject-introspection-1.29:= )
57 +"
58 +PDEPEND=">=gnome-base/gnome-keyring-3
59 +"
60 +# PDEPEND to avoid circular dep (bug #547456)
61 +# gnome-keyring needed at runtime as explained at https://bugs.gentoo.org/475182#c2
62 +# Add ksecrets to PDEPEND when it's added to portage
63 +DEPEND="${RDEPEND}
64 + dev-libs/libxslt
65 + dev-util/gdbus-codegen
66 + >=dev-util/gtk-doc-am-1.9
67 + >=sys-devel/gettext-0.19.8
68 + virtual/pkgconfig[${MULTILIB_USEDEP}]
69 + test? (
70 + $(python_gen_any_dep '
71 + dev-python/mock[${PYTHON_USEDEP}]
72 + dev-python/dbus-python[${PYTHON_USEDEP}]
73 + introspection? ( dev-python/pygobject:3[${PYTHON_USEDEP}] )')
74 + introspection? ( >=dev-libs/gjs-1.32 )
75 + )
76 + vala? ( $(vala_depend) )
77 +"
78 +
79 +python_check_deps() {
80 + if use introspection; then
81 + has_version --host-root "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return
82 + fi
83 + has_version --host-root "dev-python/mock[${PYTHON_USEDEP}]" &&
84 + has_version --host-root "dev-python/dbus-python[${PYTHON_USEDEP}]"
85 +}
86 +
87 +pkg_setup() {
88 + use test && python-any-r1_pkg_setup
89 +}
90 +
91 +src_prepare() {
92 + use vala && vala_src_prepare
93 + gnome2_src_prepare
94 +
95 + # Drop unwanted CFLAGS modifications
96 + sed -e 's/CFLAGS="$CFLAGS -\(g\|O0\|O2\)"//' -i configure || die
97 +}
98 +
99 +multilib_src_configure() {
100 + local ECONF_SOURCE=${S}
101 + gnome2_src_configure \
102 + --enable-manpages \
103 + --disable-strict \
104 + --disable-coverage \
105 + --disable-static \
106 + $(use_enable crypt gcrypt) \
107 + $(multilib_native_use_enable introspection) \
108 + $(multilib_native_use_enable vala) \
109 + LIBGCRYPT_CONFIG="${EPREFIX}/usr/bin/${CHOST}-libgcrypt-config"
110 +
111 + if multilib_is_native_abi; then
112 + ln -s "${S}"/docs/reference/libsecret/html docs/reference/libsecret/html || die
113 + fi
114 +}
115 +
116 +multilib_src_test() {
117 + # tests fail without gobject-introspection
118 + multilib_is_native_abi && virtx emake check
119 +}
120 +
121 +multilib_src_install() {
122 + gnome2_src_install
123 +}