| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/x11-themes/gnome-themes/gnome-themes-2.32.1.ebuild,v 1.7 2011/03/22 19:53:43 ranger Exp $
|
| 4 |
|
| 5 |
EAPI="3"
|
| 6 |
GCONF_DEBUG="no"
|
| 7 |
|
| 8 |
inherit eutils gnome2
|
| 9 |
|
| 10 |
DESCRIPTION="A set of GNOME themes, with sets for users with limited or low vision"
|
| 11 |
HOMEPAGE="http://www.gnome.org/"
|
| 12 |
|
| 13 |
LICENSE="LGPL-2.1"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="alpha amd64 arm ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
|
| 16 |
IUSE="accessibility"
|
| 17 |
|
| 18 |
RDEPEND=">=x11-libs/gtk+-2:2
|
| 19 |
>=x11-themes/gtk-engines-2.15.3:2"
|
| 20 |
DEPEND="${RDEPEND}
|
| 21 |
>=x11-misc/icon-naming-utils-0.8.7
|
| 22 |
virtual/pkgconfig
|
| 23 |
>=dev-util/intltool-0.35
|
| 24 |
sys-devel/gettext"
|
| 25 |
# For problems related with dev-perl/XML-LibXML please see bug 266136
|
| 26 |
|
| 27 |
# This ebuild does not install any binaries
|
| 28 |
RESTRICT="binchecks strip"
|
| 29 |
|
| 30 |
pkg_setup() {
|
| 31 |
G2CONF="${G2CONF}
|
| 32 |
$(use_enable accessibility all-themes)
|
| 33 |
--disable-test-themes
|
| 34 |
--enable-icon-mapping"
|
| 35 |
DOCS="AUTHORS ChangeLog NEWS README"
|
| 36 |
}
|
| 37 |
|
| 38 |
src_prepare() {
|
| 39 |
gnome2_src_prepare
|
| 40 |
|
| 41 |
# Fix bashisms, bug #256337
|
| 42 |
epatch "${FILESDIR}/${PN}-2.24.3-bashism.patch"
|
| 43 |
|
| 44 |
# Do not build/install accessibility themes, bug #274515
|
| 45 |
if ! use accessibility; then
|
| 46 |
sed 's:HighContrast.*\\:\\:g' -i \
|
| 47 |
desktop-themes/Makefile.am desktop-themes/Makefile.in \
|
| 48 |
gtk-themes/Makefile.am gtk-themes/Makefile.in \
|
| 49 |
icon-themes/Makefile.am icon-themes/Makefile.in \
|
| 50 |
|| die "sed failed"
|
| 51 |
fi
|
| 52 |
|
| 53 |
# Fix intltoolize broken file, see upstream #577133
|
| 54 |
sed "s:'\^\$\$lang\$\$':\^\$\$lang\$\$:g" -i po/Makefile.in.in \
|
| 55 |
|| die "intltool rules fix failed"
|
| 56 |
}
|