blob: 56fffef902a488fae19250f615c7e8fab11fc0d8 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libchamplain/libchamplain-0.12.1.ebuild,v 1.2 2012/02/04 22:44:28 tetromino Exp $
EAPI="4"
GCONF_DEBUG="no"
GNOME2_LA_PUNT="yes"
inherit autotools eutils gnome2
DESCRIPTION="Clutter based world map renderer"
HOMEPAGE="http://blog.pierlux.com/projects/libchamplain/en/"
LICENSE="LGPL-2"
SLOT="0.12"
KEYWORDS="~amd64 ~x86"
IUSE="debug doc +gtk +introspection vala"
REQUIRED_USE="vala? ( introspection )"
RDEPEND="
>=dev-libs/glib-2.16:2
>=x11-libs/cairo-1.4
>=media-libs/clutter-1.2:1.0[introspection?]
>=media-libs/memphis-0.2.1:0.2[introspection?]
>=net-libs/libsoup-gnome-2.4.1:2.4
dev-db/sqlite:3
gtk? (
>=x11-libs/gtk+-2.90:3[introspection?]
>=media-libs/clutter-gtk-0.90:1.0 )
introspection? ( >=dev-libs/gobject-introspection-0.6.3 )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
doc? ( >=dev-util/gtk-doc-1.9 )
vala? ( >=dev-lang/vala-0.14.2-r1:0.14[vapigen] )"
# segfaults with vala:0.12
# vala-0.14.2-r1 required for bug #402013
pkg_setup() {
DOCS="AUTHORS ChangeLog NEWS README"
# Vala demos are only built, so just disable them
G2CONF="${G2CONF}
--disable-maintainer-mode
--disable-static
--disable-maemo
--disable-vala-demos
--enable-memphis
VAPIGEN=$(type -p vapigen-0.14)
$(use_enable debug)
$(use_enable gtk)
$(use_enable introspection)
$(use_enable vala)"
}
src_prepare() {
# bug #402013, https://bugzilla.gnome.org/show_bug.cgi?id=669378
epatch "${FILESDIR}/${P}-vala-cogl-pango-1.0.patch"
# Fix documentation slotability
sed -e "s/^DOC_MODULE.*/DOC_MODULE = ${PN}-${SLOT}/" \
-i docs/reference/Makefile.{am,in} || die "sed (1) failed"
sed -e "s/^DOC_MODULE.*/DOC_MODULE = ${PN}-gtk-${SLOT}/" \
-i docs/reference-gtk/Makefile.{am,in} || die "sed (2) failed"
mv "${S}"/docs/reference/${PN}{,-${SLOT}}-docs.sgml || die "mv (1) failed"
mv "${S}"/docs/reference-gtk/${PN}-gtk{,-${SLOT}}-docs.sgml || die "mv (2) failed"
eautoreconf
gnome2_src_prepare
}
|