You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/gnome-base/dconf/dconf-0.5.1-r2.ebuild

55 lines
1.4 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-base/dconf/dconf-0.5.1-r2.ebuild,v 1.8 2011/10/29 17:00:16 tetromino Exp $
EAPI=3
GCONF_DEBUG="no"
inherit autotools eutils gnome2
DESCRIPTION="Simple low-level configuration system"
HOMEPAGE="http://live.gnome.org/dconf"
SRC_URI="${SRC_URI} mirror://gentoo/introspection.m4.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sh sparc x86"
IUSE="doc +introspection vala"
RDEPEND=">=dev-libs/glib-2.25.16
>=dev-libs/libgee-0.5.1:0
>=dev-libs/libxml2-2.7.7
x11-libs/gtk+:2
introspection? ( >=dev-libs/gobject-introspection-0.9.3 )
vala? ( >=dev-lang/vala-0.9.5:0.10 )"
DEPEND="${RDEPEND}
dev-util/gtk-doc-am
doc? ( >=dev-util/gtk-doc-1.15 )"
# eautoreconf requires gtk-doc-am
pkg_setup() {
G2CONF="${G2CONF}
$(use_enable introspection)
$(use_enable vala)
VALAC=$(type -p valac-0.10)"
}
src_prepare() {
gnome2_src_prepare
# Fix vala automagic support, upstream bug #634171
epatch "${FILESDIR}/${P}-automagic-vala.patch"
mv "${WORKDIR}"/introspection.m4 . || die
mkdir -p m4 || die
AT_M4DIR="." eautoreconf
}
src_install() {
gnome2_src_install
# Needed as we default to gconf backend when dconf is not installed
echo 'GSETTINGS_BACKEND="dconf"' >> 51dconf
doenvd 51dconf || die "doenv failed"
}