diff options
Diffstat (limited to 'x11-themes/light-themes/light-themes-0.1.93-r2.ebuild')
-rw-r--r-- | x11-themes/light-themes/light-themes-0.1.93-r2.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/x11-themes/light-themes/light-themes-0.1.93-r2.ebuild b/x11-themes/light-themes/light-themes-0.1.93-r2.ebuild new file mode 100644 index 000000000000..011fda0b0b1a --- /dev/null +++ b/x11-themes/light-themes/light-themes-0.1.93-r2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-themes/light-themes/light-themes-0.1.93-r2.ebuild,v 1.1 2013/05/11 08:51:24 pacho Exp $ + +EAPI=5 +inherit eutils + +DESCRIPTION="GTK2/GTK3 Ambiance and Radiance themes from Ubuntu" +HOMEPAGE="https://launchpad.net/light-themes" +SRC_URI="mirror://ubuntu/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gtk3" + +DEPEND="" +RDEPEND="x11-themes/gtk-engines-murrine + gtk3? ( x11-themes/gtk-engines-unico )" + +src_prepare() { + # Apply upstream fixes for gtk+-3.8 compat, bug #469062 + # upstream: https://bugs.launchpad.net/ubuntu-themes/+bug/1130183 + epatch "${FILESDIR}/${P}-gtk3.8-1.patch" + epatch "${FILESDIR}/${P}-gtk3.8-2.patch" + epatch "${FILESDIR}/${P}-gtk3.8-3.patch" + + cp -r Ambiance/ Ambiance-Gentoo || die + cp -r Radiance/ Radiance-Gentoo || die + sed -i -e 's/Ambiance/Ambiance-Gentoo/g' Ambiance-Gentoo/index.theme \ + Ambiance-Gentoo/metacity-1/metacity-theme-1.xml || die + sed -i -e 's/Radiance/Radiance-Gentoo/g' Radiance-Gentoo/index.theme \ + Radiance-Gentoo/metacity-1/metacity-theme-1.xml || die + sed -i -e 's/nselected_bg_color:#f07746/nselected_bg_color:#755fbb/g' \ + Ambiance-Gentoo/gtk-2.0/gtkrc Ambiance-Gentoo/gtk-3.0/settings.ini \ + Radiance-Gentoo/gtk-2.0/gtkrc Radiance-Gentoo/gtk-3.0/settings.ini || die + sed -i -e 's/selected_bg_color #f07746/selected_bg_color #755fbb/g' \ + Ambiance-Gentoo/gtk-3.0/gtk-main.css Radiance-Gentoo/gtk-3.0/gtk-main.css || die +} + +src_install() { + insinto /usr/share/themes + doins -r Radiance* Ambiance* + + use gtk3 || { + rm -R "${D}"/usr/share/themes/*/gtk-3.0 || die + } +} |