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