| 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-standard/gnome-themes-standard-3.6.0.1.ebuild,v 1.1 2012/09/25 15:20:05 tetromino Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
GCONF_DEBUG="no"
|
| 7 |
GNOME2_LA_PUNT="yes"
|
| 8 |
|
| 9 |
inherit gnome2
|
| 10 |
|
| 11 |
DESCRIPTION="Adwaita theme for GNOME Shell"
|
| 12 |
HOMEPAGE="http://www.gnome.org/"
|
| 13 |
|
| 14 |
LICENSE="LGPL-2.1+"
|
| 15 |
SLOT="0"
|
| 16 |
IUSE="+gtk3"
|
| 17 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
|
| 18 |
|
| 19 |
COMMON_DEPEND="gnome-base/librsvg:2
|
| 20 |
x11-libs/cairo
|
| 21 |
gtk3? ( >=x11-libs/gtk+-3.5.17:3 )
|
| 22 |
>=x11-themes/gtk-engines-2.15.3:2"
|
| 23 |
DEPEND="${COMMON_DEPEND}
|
| 24 |
>=dev-util/intltool-0.40
|
| 25 |
sys-devel/gettext
|
| 26 |
virtual/pkgconfig"
|
| 27 |
# gnome-themes{,-extras} are OBSOLETE for GNOME 3
|
| 28 |
# http://comments.gmane.org/gmane.comp.gnome.desktop/44130
|
| 29 |
# Depend on gsettings-desktop-schemas-3.4 to make sure 3.2 users don't lose
|
| 30 |
# their default background image
|
| 31 |
RDEPEND="${COMMON_DEPEND}
|
| 32 |
>=gnome-base/gsettings-desktop-schemas-3.4
|
| 33 |
!<x11-themes/gnome-themes-2.32.1-r1"
|
| 34 |
|
| 35 |
pkg_setup() {
|
| 36 |
DOCS="ChangeLog NEWS"
|
| 37 |
# The icon cache needs to be generated in pkg_postinst()
|
| 38 |
G2CONF="${G2CONF}
|
| 39 |
--disable-static
|
| 40 |
--disable-placeholders
|
| 41 |
$(use_enable gtk3 gtk3-engines)
|
| 42 |
GTK_UPDATE_ICON_CACHE=$(type -P true)"
|
| 43 |
}
|
| 44 |
|
| 45 |
src_prepare() {
|
| 46 |
gnome2_src_prepare
|
| 47 |
# Install cursors in the right place
|
| 48 |
sed -e 's:^\(cursordir.*\)icons\(.*\):\1cursors/xorg-x11\2:' \
|
| 49 |
-i themes/Adwaita/cursors/Makefile.am \
|
| 50 |
-i themes/Adwaita/cursors/Makefile.in || die
|
| 51 |
}
|
| 52 |
|
| 53 |
src_install() {
|
| 54 |
gnome2_src_install
|
| 55 |
|
| 56 |
# Make it the default cursor theme
|
| 57 |
cd "${ED}/usr/share/cursors/xorg-x11" || die
|
| 58 |
ln -sfn Adwaita default || die
|
| 59 |
}
|