commit:     e55880f1e37744047db33ae63c314a46e46ec3fd
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 15 20:10:41 2019 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Fri Nov 15 20:10:41 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e55880f1

gnome-extra/gnome-shell-extension-dash-to-panel: Bump to v26, add branding and 
defaults

Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 .../gnome-shell-extension-dash-to-panel/Manifest   |  2 +
 ...shell-extension-dash-to-panel-26-branding.patch | 11 ++++
 ...-shell-extension-dash-to-panel-26-opacity.patch | 11 ++++
 .../gnome-shell-extension-dash-to-panel-26.ebuild  | 74 ++++++++++++++++++++++
 4 files changed, 98 insertions(+)

diff --git a/gnome-extra/gnome-shell-extension-dash-to-panel/Manifest 
b/gnome-extra/gnome-shell-extension-dash-to-panel/Manifest
index 95155856a37..0373f7d717f 100644
--- a/gnome-extra/gnome-shell-extension-dash-to-panel/Manifest
+++ b/gnome-extra/gnome-shell-extension-dash-to-panel/Manifest
@@ -1,2 +1,4 @@
 DIST gnome-shell-extension-dash-to-panel-23.tar.gz 21075058 BLAKE2B 
66a48a2ca1379fb423fbd55e68b13dc8e649aceb89676d80893b56e6bda860937946bc981bca110634c975c8712378e5dbdc67f5749a4f5aa70622b75304b71b
 SHA512 
0f8ea1b5b92213046195e88cd6433f15cf05d73712c88def4ffcfe43e75e8fad11df5a25a2b4e2ace9ac0e4b56c151e20931cfa233c39589ee33d1fec1a8499a
 DIST gnome-shell-extension-dash-to-panel-25.tar.gz 21097782 BLAKE2B 
25061645ecfe073b3891a974c765a98df295daa01a82cac53318b505bea99296ceddac91898fdae7fe1e01f8042d665f39d5c600544fcc69b9911a7078ed3de6
 SHA512 
7675fa8f1d73981fcb1e7347d0664851bf7ebb0b467093b1a166470b91890623ae617ba6399e8f367c56e84d293625cf75aca2b8f17ac21fbd96243a22e216c7
+DIST gnome-shell-extension-dash-to-panel-26.tar.gz 21100594 BLAKE2B 
da90d4f496e10c14c554edb74065c95bf211f6778c097e3b81d863a46d0d3477f281cebac72f334b461f28b998284a861363b27d6c17ef5b1d47947a1f44bf01
 SHA512 
45bc148d2419db5943d0c2170ea3739a36c5a928c39d070501c5dfbec3910ba08058af1926c42f75d6b3e5918d8c30aef4f38db0af14115c11027520fa582a2f
+DIST tango-gentoo-v1.1.tar.gz 29322 BLAKE2B 
83fa2bf37727e60851dd679054fe1b153ebfea58c9a9a40f891f7d68d3b047b02e8effa1d1b4e08d64500a2072ce7200f159c92a352da7124de27e1b05bb6027
 SHA512 
87d47ddab68361db6d99866c51705dcb3e198f8345a1096859acf2c6cca5099dd23c7fb30d124f52c4933ea38fd45fadffbbe6ecbdfa84f5b60938a4824f9045

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
new file mode 100644
index 00000000000..fde8e190eab
--- /dev/null
+++ 
b/gnome-extra/gnome-shell-extension-dash-to-panel/files/gnome-shell-extension-dash-to-panel-26-branding.patch
@@ -0,0 +1,11 @@
+--- a/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml~    
2019-11-15 20:43:03.000000000 +0100
++++ b/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml     
2019-11-15 21:01:39.754116059 +0100
+@@ -352,7 +352,7 @@
+       <description>Show appplications button in the dash</description>
+     </key>
+     <key type="s" name="show-apps-icon-file">
+-      <default>""</default>
++      
<default>"/usr/share/gnome-shell/extensions/dash-to-pa...@jderose9.github.com/img/gentoo.svg"</default>
+       <summary>Custom Show Applications icon</summary>
+       <description>Customize the Show Applications icon</description>
+     </key>

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
new file mode 100644
index 00000000000..013d5d81813
--- /dev/null
+++ 
b/gnome-extra/gnome-shell-extension-dash-to-panel/files/gnome-shell-extension-dash-to-panel-26-opacity.patch
@@ -0,0 +1,11 @@
+--- a/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml.old 
2019-11-15 20:38:17.244421281 +0100
++++ b/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml     
2019-11-15 20:43:03.570757200 +0100
+@@ -222,7 +222,7 @@
+       <description>Custom background color for the panel</description>
+     </key>
+     <key type="b" name="trans-use-custom-opacity">
+-      <default>false</default>
++      <default>true</default>
+       <summary>Custom background color</summary>
+       <description>Replace current theme background color for the 
panel</description>
+     </key>

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
new file mode 100644
index 00000000000..48736876ea0
--- /dev/null
+++ 
b/gnome-extra/gnome-shell-extension-dash-to-panel/gnome-shell-extension-dash-to-panel-26.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit gnome2-utils
+
+MY_PN="${PN/gnome-shell-extension-/}"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="An icon taskbar for the Gnome Shell"
+HOMEPAGE="https://github.com/home-sweet-gnome/dash-to-panel";
+SRC_URI="
+       https://github.com/home-sweet-gnome/${MY_PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz
+       branding? ( 
https://www.mail-archive.com/tango-artists@lists.freedesktop.org/msg00043/tango-gentoo-v1.1.tar.gz
 )
+"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="branding"
+
+COMMON_DEPEND="dev-libs/glib:2"
+RDEPEND="${COMMON_DEPEND}
+       app-eselect/eselect-gnome-shell-extensions
+       >=gnome-base/gnome-shell-3.18.0
+"
+DEPEND="${COMMON_DEPEND}"
+BDEPEND="
+       dev-util/intltool
+       sys-devel/gettext
+"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+       # Enable by default custom opacity to get panel slightly transparent
+       # as was done in older Gnome versions
+       "${FILESDIR}"/${PN}-26-opacity.patch
+)
+
+src_prepare() {
+       default
+
+       # Set correct version
+       export VERSION="${PV}"
+
+       # Don't install README and COPYING in unwanted locations
+       sed -i -e 's/COPYING//g' -e 's/README.md//g' Makefile || die
+
+       # Provide fancy Gentoo icon when requested
+       use branding && eapply "${FILESDIR}"/${PN}-26-branding.patch
+}
+
+src_install() {
+       default
+       if use branding; then
+               insinto 
/usr/share/gnome-shell/extensions/dash-to-pa...@jderose9.github.com/img
+               doins "${WORKDIR}/tango-gentoo-v1.1/scalable/gentoo.svg"
+       fi
+}
+
+pkg_preinst() {
+       gnome2_schemas_savelist
+}
+
+pkg_postinst() {
+       gnome2_schemas_update
+       ebegin "Updating list of installed extensions"
+       eselect gnome-shell-extensions update
+       eend $?
+}
+
+pkg_postrm() {
+       gnome2_schemas_update
+}

Reply via email to