/[gentoo-x86]/x11-themes/light-themes/light-themes-15.04_p20150410.ebuild
Gentoo

Contents of /x11-themes/light-themes/light-themes-15.04_p20150410.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Jun 26 09:24:36 2015 UTC (5 years ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #551814

(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-themes/light-themes/light-themes-15.04_p20150410.ebuild,v 1.2 2015/06/21 14:09:45 zlogene Exp $
4
5 EAPI=5
6 inherit eutils
7
8 MY_PN=ubuntu-themes
9 MY_PV=14.04+15.04.20150410
10
11 DESCRIPTION="GTK2/GTK3 Ambiance and Radiance themes from Ubuntu"
12 HOMEPAGE="https://launchpad.net/light-themes"
13 SRC_URI="
14 mirror://ubuntu/pool/main/${MY_PN:0:1}/${MY_PN}/${MY_PN}_${MY_PV}.orig.tar.gz
15 http://dev.gentoo.org/~pacho/${PN}/Gentoo-Buttons-r1.tar.xz
16 "
17
18 LICENSE="CC-BY-SA-3.0 CC-BY-SA-4.0"
19 SLOT="0"
20 KEYWORDS="amd64 x86"
21 IUSE="gtk3"
22
23 DEPEND="app-arch/xz-utils"
24 RDEPEND="
25 x11-themes/gtk-engines-murrine
26 gtk3? ( x11-themes/gtk-engines-unico )
27 "
28
29 S="${WORKDIR}"/${MY_PN}-${MY_PV}
30
31 src_prepare() {
32 cp -r Ambiance/ Ambiance-Gentoo || die
33 cp -r Radiance/ Radiance-Gentoo || die
34 sed -i -e 's/Ambiance/Ambiance-Gentoo/g' Ambiance-Gentoo/index.theme \
35 Ambiance-Gentoo/metacity-1/metacity-theme-1.xml || die
36 sed -i -e 's/Radiance/Radiance-Gentoo/g' Radiance-Gentoo/index.theme \
37 Radiance-Gentoo/metacity-1/metacity-theme-1.xml || die
38 sed -i -e 's/nselected_bg_color:#f07746/nselected_bg_color:#755fbb/g' \
39 Ambiance-Gentoo/gtk-2.0/gtkrc Ambiance-Gentoo/gtk-3.0/settings.ini \
40 Radiance-Gentoo/gtk-2.0/gtkrc Radiance-Gentoo/gtk-3.0/settings.ini || die
41 sed -i -e 's/selected_bg_color #f07746/selected_bg_color #755fbb/g' \
42 Ambiance-Gentoo/gtk-3.0/gtk-main.css \
43 Radiance-Gentoo/gtk-3.0/gtk-main.css || die
44
45 cp -f "${WORKDIR}"/Gentoo-Buttons/*.png "${S}"/Ambiance-Gentoo/metacity-1/. || die
46 cp -f "${WORKDIR}"/Gentoo-Buttons/*.png "${S}"/Radiance-Gentoo/metacity-1/. || die
47 cp -f "${WORKDIR}"/Gentoo-Buttons/assets/*.png "${S}"/Ambiance-Gentoo/gtk-3.0/assets/. || die
48 cp -f "${WORKDIR}"/Gentoo-Buttons/assets/*.png "${S}"/Radiance-Gentoo/gtk-3.0/assets/. || die
49 }
50
51 src_compile() {
52 :
53 }
54
55 src_install() {
56 insinto /usr/share/themes
57 doins -r Radiance* Ambiance*
58
59 use gtk3 || {
60 rm -R "${D}"/usr/share/themes/*/gtk-3.0 || die
61 }
62 }

  ViewVC Help
Powered by ViewVC 1.1.20