blob: 5b7d3d648869b5f42ae9bd74d0f341723b0340b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
GCONF_DEBUG="yes"
GNOME2_LA_PUNT="yes"
VALA_MIN_API_VERSION="0.16"
VALA_USE_DEPEND="vapigen"
PYTHON_COMPAT=( python{2_6,2_7} )
inherit gnome2 python-any-r1 vala
if [[ ${PV} = 9999 ]]; then
inherit gnome2-live
fi
DESCRIPTION="Compatibility library for accessing secrets"
HOMEPAGE="https://wiki.gnome.org/Projects/GnomeKeyring"
LICENSE="LGPL-2+ GPL-2+" # tests are GPL-2
SLOT="0"
IUSE="debug +introspection test vala"
REQUIRED_USE="vala? ( introspection )"
if [[ ${PV} = 9999 ]]; then
IUSE="${IUSE} doc"
KEYWORDS=""
else
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris"
fi
RDEPEND="
>=dev-libs/glib-2.16.0:2
>=dev-libs/libgcrypt-1.2.2:0=
>=sys-apps/dbus-1
>=gnome-base/gnome-keyring-3.1.92
introspection? ( >=dev-libs/gobject-introspection-1.30.0 )
"
DEPEND="${RDEPEND}
dev-util/gtk-doc-am
>=dev-util/intltool-0.35
sys-devel/gettext
virtual/pkgconfig
test? ( ${PYTHON_DEPS} )
vala? ( $(vala_depend) )
"
if [[ ${PV} = 9999 ]]; then
DEPEND="${DEPEND}
doc? ( >=dev-util/gtk-doc-1.9 )"
fi
src_prepare() {
use vala && vala_src_prepare
gnome2_src_prepare
# FIXME: Remove silly CFLAGS, report upstream
sed -e 's:CFLAGS="$CFLAGS -g:CFLAGS="$CFLAGS:' \
-e 's:CFLAGS="$CFLAGS -O0:CFLAGS="$CFLAGS:' \
-i configure.ac configure || die "sed failed"
}
src_configure() {
gnome2_src_configure $(use_enable vala)
}
src_test() {
unset DBUS_SESSION_BUS_ADDRESS
dbus-launch emake check || die "tests failed"
}
|