Line 0
Link Here
|
0 |
- |
1 |
# Copyright 1999-2019 Gentoo Authors |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=6 |
5 |
VALA_USE_DEPEND="vapigen" |
6 |
GNOME2_EAUTORECONF="yes" |
7 |
|
8 |
inherit gnome2 vala |
9 |
|
10 |
DESCRIPTION="GLib-based library for accessing online service APIs using the GData protocol" |
11 |
HOMEPAGE="https://wiki.gnome.org/Projects/libgdata" |
12 |
|
13 |
LICENSE="LGPL-2.1+" |
14 |
SLOT="0/22" # subslot = libgdata soname version |
15 |
|
16 |
IUSE="+crypt gnome-online-accounts +introspection static-libs test vala" |
17 |
REQUIRED_USE=" |
18 |
gnome-online-accounts? ( crypt ) |
19 |
vala? ( introspection ) |
20 |
" |
21 |
|
22 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
23 |
|
24 |
RDEPEND=" |
25 |
>=dev-libs/glib-2.44.0:2 |
26 |
>=dev-libs/json-glib-0.15[introspection?] |
27 |
>=dev-libs/libxml2-2:2 |
28 |
>=net-libs/liboauth-0.9.4 |
29 |
>=net-libs/libsoup-2.55.90:2.4[introspection?] |
30 |
>=x11-libs/gdk-pixbuf-2.14:2 |
31 |
crypt? ( app-crypt/gcr:= ) |
32 |
gnome-online-accounts? ( >=net-libs/gnome-online-accounts-3.8:=[introspection?,vala?] ) |
33 |
introspection? ( >=dev-libs/gobject-introspection-0.9.7:= ) |
34 |
" |
35 |
DEPEND="${RDEPEND} |
36 |
dev-util/glib-utils |
37 |
>=dev-util/gtk-doc-am-1.25 |
38 |
>=dev-util/intltool-0.40 |
39 |
sys-devel/autoconf-archive |
40 |
virtual/pkgconfig |
41 |
test? ( >=net-libs/uhttpmock-0.5 ) |
42 |
vala? ( $(vala_depend) ) |
43 |
" |
44 |
# eautoreconf needs autoconf-archive |
45 |
|
46 |
PATCHES=( |
47 |
"${FILESDIR}"/${PN}-0.17.8-disable-demos.patch |
48 |
"${FILESDIR}"/${PN}-0.17.9-fix-make-breakage.patch |
49 |
) |
50 |
|
51 |
src_prepare() { |
52 |
use vala && vala_src_prepare |
53 |
gnome2_src_prepare |
54 |
} |
55 |
|
56 |
src_configure() { |
57 |
gnome2_src_configure \ |
58 |
--disable-build-demos \ |
59 |
$(use_enable crypt gnome) \ |
60 |
$(use_enable gnome-online-accounts goa) \ |
61 |
$(use_enable introspection) \ |
62 |
$(use_enable vala) \ |
63 |
$(use_enable static-libs static) \ |
64 |
$(use_enable test always-build-tests) |
65 |
} |
66 |
|
67 |
src_test() { |
68 |
unset ORBIT_SOCKETDIR |
69 |
dbus-run-session emake check |
70 |
} |