blob: cb4081057a4fcc757ccfbef9968a80de1d68beb4 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libdbusmenu/libdbusmenu-12.10.2-r1.ebuild,v 1.1 2015/04/05 16:09:44 mgorny Exp $
EAPI=5
VALA_MIN_API_VERSION=0.16
VALA_USE_DEPEND=vapigen
PYTHON_COMPAT=( python{2_6,2_7} )
inherit eutils flag-o-matic python-single-r1 vala
DESCRIPTION="Library to pass menu structure across DBus"
HOMEPAGE="http://launchpad.net/dbusmenu"
SRC_URI="http://launchpad.net/${PN/lib}/${PV%.*}/${PV}/+download/${P}.tar.gz"
LICENSE="LGPL-2.1 LGPL-3"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE="debug gtk3 +introspection"
RDEPEND="
>=dev-libs/dbus-glib-0.100
>=dev-libs/json-glib-0.13.4
>=dev-libs/glib-2.32
dev-libs/libxml2
gtk3? ( >=x11-libs/gtk+-3.2:3[introspection?] )
introspection? ( >=dev-libs/gobject-introspection-1 )
!<${CATEGORY}/${PN}-0.5.1-r200"
DEPEND="${RDEPEND}
app-text/gnome-doc-utils
dev-util/intltool
virtual/pkgconfig
introspection? ( $(vala_depend) )"
src_prepare() {
if use introspection; then
vala_src_prepare
export VALA_API_GEN="${VAPIGEN}"
fi
python_fix_shebang tools
}
src_configure() {
append-flags -Wno-error #414323
# dumper extra tool is only for GTK+-2.x, tests use valgrind which is stupid
econf \
--docdir=/usr/share/doc/${PF} \
--disable-static \
--disable-silent-rules \
--disable-scrollkeeper \
$(use_enable gtk3 gtk) \
--disable-dumper \
$(use_enable introspection) \
$(use_enable introspection vala) \
$(use_enable debug massivedebugging) \
--with-html-dir=/usr/share/doc/${PF}/html \
--with-gtk=3
}
src_test() { :; } #440192
src_install() {
emake -j1 DESTDIR="${D}" install
einstalldocs
local a b
for a in ${PN}-{glib,gtk}; do
b=/usr/share/doc/${PF}/html/${a}
[[ -d ${ED}/${b} ]] && dosym ${b} /usr/share/gtk-doc/html/${a}
done
prune_libtool_files
}
|