summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2015-12-30 11:14:51 +0100
committerPacho Ramos <pacho@gentoo.org>2015-12-30 11:23:58 +0100
commit3798ce042bdb630bd61365cda2b3594d2b90ec16 (patch)
tree50f3e173e657804bb265a89c09651c03260d2214
parentblock older versions because of bug #567680 (diff)
downloadgentoo-3798ce042bdb630bd61365cda2b3594d2b90ec16.tar.gz
gentoo-3798ce042bdb630bd61365cda2b3594d2b90ec16.tar.bz2
gentoo-3798ce042bdb630bd61365cda2b3594d2b90ec16.zip
dev-libs/libgdata: Use a separate USE flag for switching gnome-online-accounts support and rename gnome USE to crypto (#566324)
Package-Manager: portage-2.2.26
-rw-r--r--dev-libs/libgdata/libgdata-0.17.4-r1.ebuild64
-rw-r--r--dev-libs/libgdata/metadata.xml3
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-libs/libgdata/libgdata-0.17.4-r1.ebuild b/dev-libs/libgdata/libgdata-0.17.4-r1.ebuild
new file mode 100644
index 00000000000..83115ff987f
--- /dev/null
+++ b/dev-libs/libgdata/libgdata-0.17.4-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="yes"
+VALA_USE_DEPEND="vapigen"
+
+inherit gnome2 vala
+
+DESCRIPTION="GLib-based library for accessing online service APIs using the GData protocol"
+HOMEPAGE="https://wiki.gnome.org/Projects/libgdata"
+
+LICENSE="LGPL-2.1+"
+SLOT="0/22" # subslot = libgdata soname version
+IUSE="+crypt gnome-online-accounts +introspection static-libs test vala"
+REQUIRED_IUSE="
+ gnome-online-accounts? ( crypt )
+ vala? ( introspection )
+"
+
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+# configure checks for gtk:3, but only uses it for demos which are not installed
+RDEPEND="
+ >=dev-libs/glib-2.32:2
+ >=dev-libs/json-glib-0.15
+ >=dev-libs/libxml2-2:2
+ >=net-libs/liboauth-0.9.4
+ >=net-libs/libsoup-2.42.0:2.4[introspection?]
+ >=x11-libs/gdk-pixbuf-2.14:2
+ crypt? ( app-crypt/gcr:= )
+ gnome-online-accounts? ( >=net-libs/gnome-online-accounts-3.8 )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.7:= )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/gtk-doc-am-1.14
+ >=dev-util/intltool-0.40
+ virtual/pkgconfig
+ test? ( >=net-libs/uhttpmock-0.5 )
+ vala? ( $(vala_depend) )
+"
+
+src_prepare() {
+ vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ DOCS="AUTHORS ChangeLog HACKING NEWS README"
+ gnome2_src_configure \
+ $(use_enable crypt gnome) \
+ $(use_enable gnome-online-accounts goa) \
+ $(use_enable introspection) \
+ $(use_enable vala) \
+ $(use_enable static-libs static) \
+ $(use_enable test always-build-tests)
+}
+
+src_test() {
+ unset ORBIT_SOCKETDIR
+ export GSETTINGS_BACKEND="memory" #486412
+ dbus-launch emake check
+}
diff --git a/dev-libs/libgdata/metadata.xml b/dev-libs/libgdata/metadata.xml
index da6fd63d008..6bd7a63fff6 100644
--- a/dev-libs/libgdata/metadata.xml
+++ b/dev-libs/libgdata/metadata.xml
@@ -2,4 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>gnome</herd>
+<use>
+ <flag name="gnome-online-accounts">Enable <pkg>net-libs/gnome-online-accounts</pkg> support</flag>
+</use>
</pkgmetadata>