Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-shell-extension-alphabetical-grid/
Date: Sat, 29 Jan 2022 10:42:55
Message-Id: 1643452965.9d6571412d01b724b9cafe4c23c1738a8dfbd8ed.pacho@gentoo
1 commit: 9d6571412d01b724b9cafe4c23c1738a8dfbd8ed
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 29 10:10:14 2022 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 29 10:42:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d657141
7
8 gnome-extra/gnome-shell-extension-alphabetical-grid: add gnome-shell-extension-alphabetical-grid
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
12
13 .../Manifest | 1 +
14 ...e-shell-extension-alphabetical-grid-17.0.ebuild | 55 ++++++++++++++++++++++
15 .../metadata.xml | 8 ++++
16 3 files changed, 64 insertions(+)
17
18 diff --git a/gnome-extra/gnome-shell-extension-alphabetical-grid/Manifest b/gnome-extra/gnome-shell-extension-alphabetical-grid/Manifest
19 new file mode 100644
20 index 000000000000..e84cfbf9beb4
21 --- /dev/null
22 +++ b/gnome-extra/gnome-shell-extension-alphabetical-grid/Manifest
23 @@ -0,0 +1 @@
24 +DIST gnome-shell-extension-alphabetical-grid-17.0.tar.gz 288368 BLAKE2B 7e22e06538d8804afb8301c40e02bcd1d56f6c756d69bb09d61649bceb6e1819e6cdf1ceb2f1d4e88ee22e92c3a6b465fd925fdde840b9c6124583cc7389a344 SHA512 46d5b7e269d0a454f04fde729fd6d5a66a270a3b2337159fc746d12304c7988846c1fb5c609c9122c3fca25c6110a714766b2f900c7fa1306251750781eff3e5
25
26 diff --git a/gnome-extra/gnome-shell-extension-alphabetical-grid/gnome-shell-extension-alphabetical-grid-17.0.ebuild b/gnome-extra/gnome-shell-extension-alphabetical-grid/gnome-shell-extension-alphabetical-grid-17.0.ebuild
27 new file mode 100644
28 index 000000000000..429429ac7ad3
29 --- /dev/null
30 +++ b/gnome-extra/gnome-shell-extension-alphabetical-grid/gnome-shell-extension-alphabetical-grid-17.0.ebuild
31 @@ -0,0 +1,55 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +inherit gnome2-utils
37 +
38 +# Useful specially to prevent
39 +# https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4684
40 +# https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3180
41 +DESCRIPTION="Restore the alphabetical ordering of the app grid"
42 +HOMEPAGE="https://github.com/stuarthayhurst/alphabetical-grid-extension"
43 +SRC_URI="https://github.com/stuarthayhurst/alphabetical-grid-extension/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="GPL-3"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE=""
49 +
50 +RDEPEND="
51 + app-eselect/eselect-gnome-shell-extensions
52 + >=gnome-base/gnome-shell-3.38
53 +"
54 +DEPEND="${COMMON_DEPEND}"
55 +BDEPEND=""
56 +
57 +S="${WORKDIR}/alphabetical-grid-extension-${PV}"
58 +extension_uuid="AlphabeticalAppGrid@stuarthayhurst"
59 +
60 +# Not useful for us
61 +src_compile() { :; }
62 +
63 +src_install() {
64 + einstalldocs
65 + insinto /usr/share/glib-2.0/schemas
66 + doins schemas/*.xml
67 + rm -rf README.md LICENSE.txt Makefile schemas || die
68 + mv -v ui/* . || die # Searches for these files in parent dir
69 + insinto /usr/share/gnome-shell/extensions/"${extension_uuid}"
70 + doins -r *
71 +}
72 +
73 +pkg_preinst() {
74 + gnome2_schemas_savelist
75 +}
76 +
77 +pkg_postinst() {
78 + gnome2_schemas_update
79 + ebegin "Updating list of installed extensions"
80 + eselect gnome-shell-extensions update
81 + eend $?
82 +}
83 +
84 +pkg_postrm() {
85 + gnome2_schemas_update
86 +}
87
88 diff --git a/gnome-extra/gnome-shell-extension-alphabetical-grid/metadata.xml b/gnome-extra/gnome-shell-extension-alphabetical-grid/metadata.xml
89 new file mode 100644
90 index 000000000000..3947e1bf6d57
91 --- /dev/null
92 +++ b/gnome-extra/gnome-shell-extension-alphabetical-grid/metadata.xml
93 @@ -0,0 +1,8 @@
94 +<?xml version="1.0" encoding="UTF-8"?>
95 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
96 +<pkgmetadata>
97 + <maintainer type="person">
98 + <email>pacho@g.o</email>
99 + </maintainer>
100 + <stabilize-allarches/>
101 +</pkgmetadata>