Lines 1-9
Link Here
|
1 |
# Copyright 1999-2012 Gentoo Foundation |
1 |
# Copyright 1999-2013 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libappindicator/libappindicator-12.10.0.ebuild,v 1.2 2012/07/27 16:34:15 ssuominen Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=5 |
6 |
inherit eutils |
6 |
inherit eutils autotools multilib-minimal |
7 |
|
7 |
|
8 |
AYATANA_VALA_VERSION=0.16 |
8 |
AYATANA_VALA_VERSION=0.16 |
9 |
|
9 |
|
Lines 14-53
Link Here
|
14 |
LICENSE="LGPL-2.1 LGPL-3" |
14 |
LICENSE="LGPL-2.1 LGPL-3" |
15 |
SLOT="3" |
15 |
SLOT="3" |
16 |
KEYWORDS="~amd64 ~x86" |
16 |
KEYWORDS="~amd64 ~x86" |
17 |
IUSE="+introspection" |
17 |
IUSE="+introspection gtk3" |
18 |
|
18 |
|
19 |
RDEPEND=">=dev-libs/dbus-glib-0.98 |
19 |
RDEPEND=">=dev-libs/dbus-glib-0.98 |
20 |
>=dev-libs/glib-2.26 |
20 |
>=dev-libs/glib-2.26 |
21 |
>=dev-libs/libdbusmenu-0.6.2:3[gtk] |
21 |
>=dev-libs/libdbusmenu-0.6.2:3[gtk3=,gtk,abi_x86_32?] |
22 |
>=dev-libs/libindicator-12.10.0:3 |
22 |
>=dev-libs/libindicator-12.10.0:3[gtk3=,abi_x86_32?] |
23 |
>=x11-libs/gtk+-3.2:3 |
23 |
gtk3? ( >=x11-libs/gtk+-3.2:3 ) |
|
|
24 |
!gtk3? ( x11-libs/gtk+:2 ) |
24 |
introspection? ( >=dev-libs/gobject-introspection-1 )" |
25 |
introspection? ( >=dev-libs/gobject-introspection-1 )" |
25 |
DEPEND="${RDEPEND} |
26 |
DEPEND="${RDEPEND} |
26 |
virtual/pkgconfig |
27 |
virtual/pkgconfig |
27 |
introspection? ( dev-lang/vala:${AYATANA_VALA_VERSION}[vapigen] )" |
28 |
introspection? ( dev-lang/vala:${AYATANA_VALA_VERSION}[vapigen] )" |
28 |
|
29 |
|
|
|
30 |
ECONF_SOURCE=${S} |
31 |
|
29 |
src_prepare() { |
32 |
src_prepare() { |
|
|
33 |
epatch ${FILESDIR}/multilib_disable_python.patch |
34 |
sed -i "s/.*python.*/\\\/" bindings/Makefile.am || die not found |
35 |
sed -i "s/ python //" bindings/Makefile.in || die not found |
36 |
eautoreconf |
37 |
|
30 |
# Disable MONO for now because of http://bugs.gentoo.org/382491 |
38 |
# Disable MONO for now because of http://bugs.gentoo.org/382491 |
31 |
sed -i -e '/^MONO_REQUIRED_VERSION/s:=.*:=9999:' configure || die |
39 |
sed -i -e '/^MONO_REQUIRED_VERSION/s:=.*:=9999:' configure || die |
32 |
} |
40 |
} |
33 |
|
41 |
|
34 |
src_configure() { |
42 |
multilib_src_configure() { |
35 |
# http://bugs.gentoo.org/409133 |
43 |
# http://bugs.gentoo.org/409133 |
36 |
export APPINDICATOR_PYTHON_CFLAGS=' ' |
44 |
export APPINDICATOR_PYTHON_CFLAGS=' ' |
37 |
export APPINDICATOR_PYTHON_LIBS=' ' |
45 |
export APPINDICATOR_PYTHON_LIBS=' ' |
38 |
|
46 |
|
39 |
use introspection && export VALAC="$(type -P valac-${AYATANA_VALA_VERSION})" |
47 |
use introspection && export VALAC="$(type -P valac-${AYATANA_VALA_VERSION})" |
40 |
|
48 |
|
|
|
49 |
use gtk3 && GTK_SWITCH="--with-gtk=3" || GTK_SWITCH="--with-gtk=2" |
50 |
|
41 |
econf \ |
51 |
econf \ |
42 |
--disable-silent-rules \ |
52 |
--disable-silent-rules \ |
43 |
--disable-static \ |
53 |
--disable-static \ |
44 |
--with-html-dir=/usr/share/doc/${PF}/html \ |
54 |
--with-html-dir=/usr/share/doc/${PF}/html \ |
45 |
--with-gtk=3 |
55 |
$(use_enable introspection) \ |
|
|
56 |
${GTK_SWITCH} |
46 |
} |
57 |
} |
47 |
|
58 |
|
48 |
src_install() { |
59 |
multilib_src_install() { |
49 |
emake -j1 DESTDIR="${D}" install |
60 |
emake -j1 DESTDIR="${D}" install |
50 |
dodoc AUTHORS ChangeLog |
61 |
} |
51 |
|
62 |
|
|
|
63 |
multilib_src_install_all() { |
64 |
dodoc AUTHORS ChangeLog |
52 |
prune_libtool_files |
65 |
prune_libtool_files |
53 |
} |
66 |
} |