Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-base/libgnome-keyring/
Date: Sun, 04 Jun 2017 19:22:19
Message-Id: 1496604127.7574a657220c77ad6095b229d2f5bed6422e9940.mgorny@gentoo
1 commit: 7574a657220c77ad6095b229d2f5bed6422e9940
2 Author: Karol Grudziński <krlgrudzinski+gentoo <AT> gmail <DOT> com>
3 AuthorDate: Sun May 21 18:26:43 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 4 19:22:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7574a657
7
8 gnome-base/libgnome-keyring: Add multilib support
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 .../libgnome-keyring-3.12.0-r1.ebuild | 64 ++++++++++++++++++++++
13 1 file changed, 64 insertions(+)
14
15 diff --git a/gnome-base/libgnome-keyring/libgnome-keyring-3.12.0-r1.ebuild b/gnome-base/libgnome-keyring/libgnome-keyring-3.12.0-r1.ebuild
16 new file mode 100644
17 index 00000000000..4ed645886e6
18 --- /dev/null
19 +++ b/gnome-base/libgnome-keyring/libgnome-keyring-3.12.0-r1.ebuild
20 @@ -0,0 +1,64 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI="5"
25 +GCONF_DEBUG="yes"
26 +GNOME2_LA_PUNT="yes"
27 +VALA_MIN_API_VERSION="0.16"
28 +VALA_USE_DEPEND="vapigen"
29 +PYTHON_COMPAT=( python2_7 )
30 +
31 +inherit gnome2 python-any-r1 vala multilib-minimal
32 +
33 +DESCRIPTION="Compatibility library for accessing secrets"
34 +HOMEPAGE="https://wiki.gnome.org/Projects/GnomeKeyring"
35 +
36 +LICENSE="LGPL-2+ GPL-2+" # tests are GPL-2
37 +SLOT="0"
38 +IUSE="debug +introspection test vala"
39 +REQUIRED_USE="vala? ( introspection )"
40 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~mips ~sh ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris"
41 +
42 +RDEPEND="
43 + >=dev-libs/glib-2.16.0:2[${MULTILIB_USEDEP}]
44 + >=dev-libs/libgcrypt-1.2.2:0=[${MULTILIB_USEDEP}]
45 + >=sys-apps/dbus-1[${MULTILIB_USEDEP}]
46 + >=gnome-base/gnome-keyring-3.1.92
47 + introspection? ( >=dev-libs/gobject-introspection-1.30.0 )
48 +"
49 +DEPEND="${RDEPEND}
50 + dev-util/gtk-doc-am
51 + >=dev-util/intltool-0.35
52 + sys-devel/gettext
53 + virtual/pkgconfig
54 + test? ( ${PYTHON_DEPS} )
55 + vala? ( $(vala_depend) )
56 +"
57 +
58 +src_prepare() {
59 + use vala && vala_src_prepare
60 + gnome2_src_prepare
61 +
62 + # FIXME: Remove silly CFLAGS, report upstream
63 + sed -e 's:CFLAGS="$CFLAGS -g:CFLAGS="$CFLAGS:' \
64 + -e 's:CFLAGS="$CFLAGS -O0:CFLAGS="$CFLAGS:' \
65 + -i configure.ac configure || die "sed failed"
66 +}
67 +
68 +multilib_src_configure() {
69 + ECONF_SOURCE="${S}" gnome2_src_configure \
70 + $(multilib_native_use_enable vala)
71 +
72 + if multilib_is_native_abi; then
73 + ln -s "${S}"/docs/reference/gnome-keyring/html docs/reference/gnome-keyring/html || die
74 + fi
75 +}
76 +
77 +multilib_src_install() {
78 + gnome2_src_install
79 +}
80 +
81 +multilib_src_test() {
82 + unset DBUS_SESSION_BUS_ADDRESS
83 + dbus-launch emake check || die "tests failed"
84 +}