1 |
commit: e55880f1e37744047db33ae63c314a46e46ec3fd |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 15 20:10:41 2019 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 15 20:10:41 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e55880f1 |
7 |
|
8 |
gnome-extra/gnome-shell-extension-dash-to-panel: Bump to v26, add branding and defaults |
9 |
|
10 |
Package-Manager: Portage-2.3.79, Repoman-2.3.18 |
11 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
12 |
|
13 |
.../gnome-shell-extension-dash-to-panel/Manifest | 2 + |
14 |
...shell-extension-dash-to-panel-26-branding.patch | 11 ++++ |
15 |
...-shell-extension-dash-to-panel-26-opacity.patch | 11 ++++ |
16 |
.../gnome-shell-extension-dash-to-panel-26.ebuild | 74 ++++++++++++++++++++++ |
17 |
4 files changed, 98 insertions(+) |
18 |
|
19 |
diff --git a/gnome-extra/gnome-shell-extension-dash-to-panel/Manifest b/gnome-extra/gnome-shell-extension-dash-to-panel/Manifest |
20 |
index 95155856a37..0373f7d717f 100644 |
21 |
--- a/gnome-extra/gnome-shell-extension-dash-to-panel/Manifest |
22 |
+++ b/gnome-extra/gnome-shell-extension-dash-to-panel/Manifest |
23 |
@@ -1,2 +1,4 @@ |
24 |
DIST gnome-shell-extension-dash-to-panel-23.tar.gz 21075058 BLAKE2B 66a48a2ca1379fb423fbd55e68b13dc8e649aceb89676d80893b56e6bda860937946bc981bca110634c975c8712378e5dbdc67f5749a4f5aa70622b75304b71b SHA512 0f8ea1b5b92213046195e88cd6433f15cf05d73712c88def4ffcfe43e75e8fad11df5a25a2b4e2ace9ac0e4b56c151e20931cfa233c39589ee33d1fec1a8499a |
25 |
DIST gnome-shell-extension-dash-to-panel-25.tar.gz 21097782 BLAKE2B 25061645ecfe073b3891a974c765a98df295daa01a82cac53318b505bea99296ceddac91898fdae7fe1e01f8042d665f39d5c600544fcc69b9911a7078ed3de6 SHA512 7675fa8f1d73981fcb1e7347d0664851bf7ebb0b467093b1a166470b91890623ae617ba6399e8f367c56e84d293625cf75aca2b8f17ac21fbd96243a22e216c7 |
26 |
+DIST gnome-shell-extension-dash-to-panel-26.tar.gz 21100594 BLAKE2B da90d4f496e10c14c554edb74065c95bf211f6778c097e3b81d863a46d0d3477f281cebac72f334b461f28b998284a861363b27d6c17ef5b1d47947a1f44bf01 SHA512 45bc148d2419db5943d0c2170ea3739a36c5a928c39d070501c5dfbec3910ba08058af1926c42f75d6b3e5918d8c30aef4f38db0af14115c11027520fa582a2f |
27 |
+DIST tango-gentoo-v1.1.tar.gz 29322 BLAKE2B 83fa2bf37727e60851dd679054fe1b153ebfea58c9a9a40f891f7d68d3b047b02e8effa1d1b4e08d64500a2072ce7200f159c92a352da7124de27e1b05bb6027 SHA512 87d47ddab68361db6d99866c51705dcb3e198f8345a1096859acf2c6cca5099dd23c7fb30d124f52c4933ea38fd45fadffbbe6ecbdfa84f5b60938a4824f9045 |
28 |
|
29 |
diff --git a/gnome-extra/gnome-shell-extension-dash-to-panel/files/gnome-shell-extension-dash-to-panel-26-branding.patch b/gnome-extra/gnome-shell-extension-dash-to-panel/files/gnome-shell-extension-dash-to-panel-26-branding.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..fde8e190eab |
32 |
--- /dev/null |
33 |
+++ b/gnome-extra/gnome-shell-extension-dash-to-panel/files/gnome-shell-extension-dash-to-panel-26-branding.patch |
34 |
@@ -0,0 +1,11 @@ |
35 |
+--- a/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml~ 2019-11-15 20:43:03.000000000 +0100 |
36 |
++++ b/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml 2019-11-15 21:01:39.754116059 +0100 |
37 |
+@@ -352,7 +352,7 @@ |
38 |
+ <description>Show appplications button in the dash</description> |
39 |
+ </key> |
40 |
+ <key type="s" name="show-apps-icon-file"> |
41 |
+- <default>""</default> |
42 |
++ <default>"/usr/share/gnome-shell/extensions/dash-to-panel@×××××××××××××××.com/img/gentoo.svg"</default> |
43 |
+ <summary>Custom Show Applications icon</summary> |
44 |
+ <description>Customize the Show Applications icon</description> |
45 |
+ </key> |
46 |
|
47 |
diff --git a/gnome-extra/gnome-shell-extension-dash-to-panel/files/gnome-shell-extension-dash-to-panel-26-opacity.patch b/gnome-extra/gnome-shell-extension-dash-to-panel/files/gnome-shell-extension-dash-to-panel-26-opacity.patch |
48 |
new file mode 100644 |
49 |
index 00000000000..013d5d81813 |
50 |
--- /dev/null |
51 |
+++ b/gnome-extra/gnome-shell-extension-dash-to-panel/files/gnome-shell-extension-dash-to-panel-26-opacity.patch |
52 |
@@ -0,0 +1,11 @@ |
53 |
+--- a/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml.old 2019-11-15 20:38:17.244421281 +0100 |
54 |
++++ b/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml 2019-11-15 20:43:03.570757200 +0100 |
55 |
+@@ -222,7 +222,7 @@ |
56 |
+ <description>Custom background color for the panel</description> |
57 |
+ </key> |
58 |
+ <key type="b" name="trans-use-custom-opacity"> |
59 |
+- <default>false</default> |
60 |
++ <default>true</default> |
61 |
+ <summary>Custom background color</summary> |
62 |
+ <description>Replace current theme background color for the panel</description> |
63 |
+ </key> |
64 |
|
65 |
diff --git a/gnome-extra/gnome-shell-extension-dash-to-panel/gnome-shell-extension-dash-to-panel-26.ebuild b/gnome-extra/gnome-shell-extension-dash-to-panel/gnome-shell-extension-dash-to-panel-26.ebuild |
66 |
new file mode 100644 |
67 |
index 00000000000..48736876ea0 |
68 |
--- /dev/null |
69 |
+++ b/gnome-extra/gnome-shell-extension-dash-to-panel/gnome-shell-extension-dash-to-panel-26.ebuild |
70 |
@@ -0,0 +1,74 @@ |
71 |
+# Copyright 1999-2019 Gentoo Authors |
72 |
+# Distributed under the terms of the GNU General Public License v2 |
73 |
+ |
74 |
+EAPI=7 |
75 |
+inherit gnome2-utils |
76 |
+ |
77 |
+MY_PN="${PN/gnome-shell-extension-/}" |
78 |
+MY_P="${MY_PN}-${PV}" |
79 |
+DESCRIPTION="An icon taskbar for the Gnome Shell" |
80 |
+HOMEPAGE="https://github.com/home-sweet-gnome/dash-to-panel" |
81 |
+SRC_URI=" |
82 |
+ https://github.com/home-sweet-gnome/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
83 |
+ branding? ( https://www.mail-archive.com/tango-artists@×××××××××××××××××.org/msg00043/tango-gentoo-v1.1.tar.gz ) |
84 |
+" |
85 |
+ |
86 |
+LICENSE="GPL-2+" |
87 |
+SLOT="0" |
88 |
+KEYWORDS="~amd64 ~x86" |
89 |
+IUSE="branding" |
90 |
+ |
91 |
+COMMON_DEPEND="dev-libs/glib:2" |
92 |
+RDEPEND="${COMMON_DEPEND} |
93 |
+ app-eselect/eselect-gnome-shell-extensions |
94 |
+ >=gnome-base/gnome-shell-3.18.0 |
95 |
+" |
96 |
+DEPEND="${COMMON_DEPEND}" |
97 |
+BDEPEND=" |
98 |
+ dev-util/intltool |
99 |
+ sys-devel/gettext |
100 |
+" |
101 |
+ |
102 |
+S="${WORKDIR}/${MY_P}" |
103 |
+ |
104 |
+PATCHES=( |
105 |
+ # Enable by default custom opacity to get panel slightly transparent |
106 |
+ # as was done in older Gnome versions |
107 |
+ "${FILESDIR}"/${PN}-26-opacity.patch |
108 |
+) |
109 |
+ |
110 |
+src_prepare() { |
111 |
+ default |
112 |
+ |
113 |
+ # Set correct version |
114 |
+ export VERSION="${PV}" |
115 |
+ |
116 |
+ # Don't install README and COPYING in unwanted locations |
117 |
+ sed -i -e 's/COPYING//g' -e 's/README.md//g' Makefile || die |
118 |
+ |
119 |
+ # Provide fancy Gentoo icon when requested |
120 |
+ use branding && eapply "${FILESDIR}"/${PN}-26-branding.patch |
121 |
+} |
122 |
+ |
123 |
+src_install() { |
124 |
+ default |
125 |
+ if use branding; then |
126 |
+ insinto /usr/share/gnome-shell/extensions/dash-to-panel@×××××××××××××××.com/img |
127 |
+ doins "${WORKDIR}/tango-gentoo-v1.1/scalable/gentoo.svg" |
128 |
+ fi |
129 |
+} |
130 |
+ |
131 |
+pkg_preinst() { |
132 |
+ gnome2_schemas_savelist |
133 |
+} |
134 |
+ |
135 |
+pkg_postinst() { |
136 |
+ gnome2_schemas_update |
137 |
+ ebegin "Updating list of installed extensions" |
138 |
+ eselect gnome-shell-extensions update |
139 |
+ eend $? |
140 |
+} |
141 |
+ |
142 |
+pkg_postrm() { |
143 |
+ gnome2_schemas_update |
144 |
+} |