blob: 5799ac27a9ead98874bde91122e9e23ad3f279b7 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libindicate/libindicate-0.6.1-r300.ebuild,v 1.4 2012/05/04 13:12:52 johu Exp $
EAPI=4
inherit autotools eutils
PV_vala_version=0.14
DESCRIPTION="A library to raise flags on DBus for other components of the desktop to pick up and visualize"
HOMEPAGE="http://launchpad.net/libindicate"
SRC_URI="http://launchpad.net/${PN}/${PV%.*}/${PV}/+download/${P}.tar.gz"
LICENSE="LGPL-2.1 LGPL-3"
SLOT="3"
KEYWORDS="~amd64 ~x86"
IUSE="+introspection"
RDEPEND=">=dev-libs/dbus-glib-0.76
>=dev-libs/glib-2.18:2
>=dev-libs/libdbusmenu-0.3.97:3[introspection?]
dev-libs/libxml2:2
x11-libs/gtk+:3
introspection? ( dev-libs/gobject-introspection )
!<${CATEGORY}/${PN}-0.6.1-r201"
DEPEND="${RDEPEND}
gnome-base/gnome-common
app-text/gnome-doc-utils
dev-util/gtk-doc-am
dev-lang/vala:${PV_vala_version}[vapigen]
virtual/pkgconfig"
RESTRICT="test" # for -no-mono.patch
DOCS=( AUTHORS ChangeLog )
src_prepare() {
epatch "${FILESDIR}"/${P}-no-mono.patch
sed -i -e 's:-Werror::' {examples,libindicate,libindicate-gtk}/Makefile.{am,in} || die
# for slotted dev-lang/vala
sed -i -e "s:vapigen:vapigen-${PV_vala_version}:" configure.ac || die
eautoreconf
}
src_configure() {
# note: --disable-python to avoid automagic gtk+-2.0 usage
econf \
--docdir=/usr/share/doc/${PF} \
--disable-static \
$(use_enable introspection) \
--disable-python \
--with-gtk=3 \
--with-html-dir=/usr/share/doc/${PF}
}
src_install() {
default
find "${ED}"usr -name '*.la' -exec rm -f {} +
}
|