summaryrefslogtreecommitdiff
blob: 796e7fd6c0859f02e440cf965ee45bd438aee383 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit autotools gnome2

DESCRIPTION="C++ bindings for libgda"
HOMEPAGE="http://gtkmm.sourceforge.net/"
LICENSE="LGPL-2.1 examples? ( GPL-2 )"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="berkdb doc examples"

RDEPEND=">=dev-cpp/glibmm-2.12.8
	>=gnome-extra/libgda-3.99.12[berkdb?]"
DEPEND="${RDEPEND}
	dev-util/pkgconfig
	doc? ( app-doc/doxygen )"

DOCS="AUTHORS ChangeLog NEWS README TODO"

src_prepare() {
	gnome2_src_prepare

	# should be configured via configure switch
	if ! use examples ; then
		sed 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' \
			-i Makefile.in || die "sed Makefile.am failed"
	fi

	epatch "${FILESDIR}/${PV}-bdb_automagic.patch"

	AT_M4DIR="scripts/"
	eautoreconf
}

src_configure() {
	G2CONF="$(use_enable doc reference)"
	gnome2_src_configure
}

src_install() {
	gnome2_src_install
#	use doc && dohtml -r docs/reference/html/*
}