blob: b9b1fabc8de7f977ff2621e2f91d0978c7eb6cc9 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-utils/gnome-utils-3.2.1.ebuild,v 1.6 2012/05/05 02:22:41 tetromino Exp $
EAPI="4"
GCONF_DEBUG="yes"
GNOME2_LA_PUNT="yes"
inherit autotools eutils gnome2
DESCRIPTION="Utilities for the Gnome desktop"
HOMEPAGE="http://www.gnome.org/"
LICENSE="GPL-2"
SLOT="0"
IUSE="doc ipv6 test"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux"
# libcanberra 0.26-r2 is needed for gtk+:3 fixes
COMMON_DEPEND=">=dev-libs/glib-2.29.14:2
>=x11-libs/gtk+-3.0.3:3
>=gnome-base/gconf-2:2
>=gnome-base/gsettings-desktop-schemas-0.1.0
>=gnome-base/libgtop-2.12:2
>=media-libs/libcanberra-0.26-r2[gtk3]
x11-libs/libXext
x11-libs/libX11"
DEPEND="${COMMON_DEPEND}
x11-proto/xextproto
app-text/scrollkeeper
>=dev-util/intltool-0.40
virtual/pkgconfig
doc? ( >=dev-util/gtk-doc-1.10 )
dev-util/gtk-doc-am
gnome-base/gnome-common"
# eautoreconf needs dev-util/gtk-doc-am, gnome-base/gnome-common
# file collisions with g-c-c
# nautilus is used via dbus
RDEPEND="${COMMON_DEPEND}
>=gnome-base/nautilus-3.0.0
!<gnome-base/gnome-control-center-2.90"
pkg_setup() {
if ! use debug; then
G2CONF="${G2CONF} --enable-debug=minimum"
fi
G2CONF="${G2CONF}
$(use_enable ipv6)
--enable-zlib
--disable-static
--disable-schemas-install
--disable-schemas-compile
--disable-scrollkeeper"
DOCS="AUTHORS ChangeLog NEWS README THANKS"
}
src_prepare() {
# Fix missing freetype2 headers/libs with gtk+-3.4, bug #411939
epatch "${FILESDIR}/${PN}-3.2.1-glib-2.32-gtk-3.4.patch"
eautoreconf
# Remove idiotic -D.*DISABLE_DEPRECATED cflags
# This method is kinda prone to breakage. Recheck carefully with next bump.
# bug 339074
LC_ALL=C find . -iname 'Makefile.am' -exec \
sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + || die "sed 1 failed"
# Do Makefile.in after Makefile.am to avoid automake maintainer-mode
LC_ALL=C find . -iname 'Makefile.in' -exec \
sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + || die "sed 2 failed"
if ! use test ; then
sed -e 's/ tests//' -i logview/Makefile.{am,in} || die "sed 3 failed"
fi
gnome2_src_prepare
}
|