blob: eb9934071c6df1c77f0faec659386130f5fabbd8 (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# Copyright 1999-2011 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-r201.ebuild,v 1.3 2011/11/28 22:39:35 zmedico Exp $
EAPI=4
PYTHON_DEPEND="2:2.7"
inherit autotools eutils python
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="0"
KEYWORDS="~amd64 ~x86"
IUSE="+introspection"
# note: pull in SLOT="3" to install headers and libs (see rm -rf in src_install)
RDEPEND=">=dev-libs/dbus-glib-0.76
>=dev-libs/glib-2.18:2
>=dev-libs/libdbusmenu-0.3.97:0[introspection?]
dev-libs/libxml2:2
dev-python/pygtk:2
>=x11-libs/gtk+-2.12:2
${CATEGORY}/${PN}: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-util/pkgconfig
dev-lang/vala:${PV_vala_version}[vapigen]"
RESTRICT="test" # for -no-mono.patch
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
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
rm -f py-compile
ln -s $(type -P true) py-compile
}
src_configure() {
econf \
--disable-static \
$(use_enable introspection) \
--with-gtk=2
}
src_install() {
emake DESTDIR="${D}" install
find "${ED}"usr -name '*.la' -exec rm -f {} +
# note: purposely not installing documentation and colliding files to
# support SLOT="3"
rm -rf \
"${ED}"usr/include/${PN}-0.6/${PN}* \
"${ED}"usr/share/doc \
"${ED}"usr/share/gir-1.0/Indicate-0.6.gir \
"${ED}"usr/share/gtk-doc \
"${ED}"usr/share/vala/vapi/Indicate-0.6.vapi \
"${ED}"usr/lib*/girepository-1.0/Indicate-0.6.typelib \
"${ED}"usr/lib*/${PN}.so* \
"${ED}"usr/lib*/pkgconfig/indicate-0.6.pc
}
pkg_postinst() {
python_mod_optimize indicate
}
pkg_postrm() {
python_mod_cleanup indicate
}
|