# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libgdata/libgdata-0.8.1-r2.ebuild,v 1.4 2012/03/22 05:27:19 tetromino Exp $ EAPI="3" GCONF_DEBUG="yes" inherit autotools eutils gnome2 DESCRIPTION="GLib-based library for accessing online service APIs using the GData protocol" HOMEPAGE="http://live.gnome.org/libgdata" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ppc64 ~sparc ~x86" IUSE="doc gnome +introspection" # gtk+ is needed for gdk RDEPEND=">=dev-libs/glib-2.19:2 || ( >=x11-libs/gdk-pixbuf-2.14:2 >=x11-libs/gtk+-2.14:2 ) app-misc/ca-certificates >=dev-libs/libxml2-2:2 >=net-libs/libsoup-2.26.1:2.4[introspection?] gnome? ( >=net-libs/libsoup-gnome-2.26.1:2.4[introspection?] ) introspection? ( >=dev-libs/gobject-introspection-0.9.7 )" DEPEND="${RDEPEND} >=dev-util/intltool-0.40 gnome-base/gnome-common doc? ( >=dev-util/gtk-doc-1.14 )" # eautoreconf requires gnome-base/gnome-common pkg_setup() { DOCS="AUTHORS ChangeLog HACKING NEWS README" G2CONF="${G2CONF} --disable-static --with-ca-certs=${EPREFIX}/etc/ssl/certs/ca-certificates.crt $(use_enable gnome) $(use_enable introspection)" } src_prepare() { # Allow Google Contacts' user defined fields to have empty names, upstream bug #648058 epatch "${FILESDIR}/${P}-empty-names.patch" # Fix building with gobject-introspection-1.30; fixed in 0.10.x epatch "${FILESDIR}/${P}-gdata-symbols.patch" # Fix MITM attack, bug #408245 epatch "${FILESDIR}/${P}-validate-ssl.patch" AT_M4DIR=. eautoreconf gnome2_src_prepare # Disable tests requiring network access, bug #307725 sed -e '/^TEST_PROGS = / s:\(.*\):TEST_PROGS = general perf\nOLD_\1:' \ -i gdata/tests/Makefile.in || die "network test disable failed" } src_test() { unset ORBIT_SOCKETDIR unset DBUS_SESSION_BUS_ADDRESS dbus-launch emake check || die "emake check failed" } pkg_preinst() { gnome2_pkg_preinst preserve_old_lib /usr/$(get_libdir)/libgdata.so.7 } pkg_postinst() { gnome2_pkg_postinst preserve_old_lib_notify /usr/$(get_libdir)/libgdata.so.7 }