1 |
commit: d0c7885966e6bf4205c0c969318ffaa871f3fb6d |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 13 20:35:09 2017 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 13 20:35:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0c78859 |
7 |
|
8 |
x11-themes/light-themes: Keep vanilla editions untouched |
9 |
|
10 |
Reported by Matija Skala |
11 |
Closes: https://github.com/gentoo/gentoo/pull/3951 |
12 |
|
13 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
14 |
|
15 |
.../light-themes-17.04_p20161205-r1.ebuild | 64 ++++++++++++++++++++++ |
16 |
1 file changed, 64 insertions(+) |
17 |
|
18 |
diff --git a/x11-themes/light-themes/light-themes-17.04_p20161205-r1.ebuild b/x11-themes/light-themes/light-themes-17.04_p20161205-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 0000000000..9c8918e26a |
21 |
--- /dev/null |
22 |
+++ b/x11-themes/light-themes/light-themes-17.04_p20161205-r1.ebuild |
23 |
@@ -0,0 +1,64 @@ |
24 |
+# Copyright 1999-2017 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+# $Id$ |
27 |
+ |
28 |
+EAPI=5 |
29 |
+inherit eutils |
30 |
+ |
31 |
+MY_PN=ubuntu-themes |
32 |
+MY_PV=16.10+17.04.20161205 |
33 |
+ |
34 |
+DESCRIPTION="GTK2/GTK3 Ambiance and Radiance themes from Ubuntu" |
35 |
+HOMEPAGE="https://launchpad.net/light-themes" |
36 |
+SRC_URI=" |
37 |
+ mirror://ubuntu/pool/main/${MY_PN:0:1}/${MY_PN}/${MY_PN}_${MY_PV}.orig.tar.gz |
38 |
+ https://dev.gentoo.org/~pacho/${PN}/Gentoo-Buttons-r1.tar.xz |
39 |
+" |
40 |
+ |
41 |
+LICENSE="CC-BY-SA-3.0 CC-BY-SA-4.0" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+IUSE="gtk3" |
45 |
+ |
46 |
+DEPEND="app-arch/xz-utils" |
47 |
+RDEPEND=" |
48 |
+ x11-themes/gtk-engines-murrine |
49 |
+ gtk3? ( x11-themes/gtk-engines-unico ) |
50 |
+" |
51 |
+ |
52 |
+S="${WORKDIR}" |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ cp -RL Ambiance/ Ambiance-Gentoo || die |
56 |
+ cp -RL Radiance/ Radiance-Gentoo || die |
57 |
+ sed -i -e 's/Ambiance/Ambiance-Gentoo/g' Ambiance-Gentoo/index.theme \ |
58 |
+ Ambiance-Gentoo/metacity-1/metacity-theme-1.xml || die |
59 |
+ sed -i -e 's/Radiance/Radiance-Gentoo/g' Radiance-Gentoo/index.theme \ |
60 |
+ Radiance-Gentoo/metacity-1/metacity-theme-1.xml || die |
61 |
+ sed -i -e 's/nselected_bg_color:#f07746/nselected_bg_color:#755fbb/g' \ |
62 |
+ Ambiance-Gentoo/gtk-2.0/gtkrc Ambiance-Gentoo/gtk-3.*/settings.ini \ |
63 |
+ Radiance-Gentoo/gtk-2.0/gtkrc Radiance-Gentoo/gtk-3.*/settings.ini || die |
64 |
+ sed -i -e 's/selected_bg_color #f07746/selected_bg_color #755fbb/g' \ |
65 |
+ Ambiance-Gentoo/gtk-3.*/gtk-main.css \ |
66 |
+ Radiance-Gentoo/gtk-3.*/gtk-main.css || die |
67 |
+ |
68 |
+ cp -f "${WORKDIR}"/Gentoo-Buttons/*.png "${S}"/Ambiance-Gentoo/metacity-1/. || die |
69 |
+ cp -f "${WORKDIR}"/Gentoo-Buttons/*.png "${S}"/Radiance-Gentoo/metacity-1/. || die |
70 |
+ cp -f "${WORKDIR}"/Gentoo-Buttons/assets/*.png "${S}"/Ambiance-Gentoo/gtk-3.0/assets/. || die |
71 |
+ cp -f "${WORKDIR}"/Gentoo-Buttons/assets/*.png "${S}"/Ambiance-Gentoo/gtk-3.20/assets/. || die |
72 |
+ cp -f "${WORKDIR}"/Gentoo-Buttons/assets/*.png "${S}"/Radiance-Gentoo/gtk-3.0/assets/. || die |
73 |
+ cp -f "${WORKDIR}"/Gentoo-Buttons/assets/*.png "${S}"/Radiance-Gentoo/gtk-3.20/assets/. || die |
74 |
+} |
75 |
+ |
76 |
+src_compile() { |
77 |
+ : |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ insinto /usr/share/themes |
82 |
+ doins -r Radiance* Ambiance* |
83 |
+ |
84 |
+ use gtk3 || { |
85 |
+ rm -R "${D}"/usr/share/themes/*/gtk-3.0 || die |
86 |
+ } |
87 |
+} |