Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-themes/adwaita-icon-theme/
Date: Fri, 27 May 2022 21:20:18
Message-Id: 1653686404.3a95901e1a1b5dfe049b65b24933bcbefb65acc9.pacho@gentoo
1 commit: 3a95901e1a1b5dfe049b65b24933bcbefb65acc9
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 27 21:12:21 2022 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Fri May 27 21:20:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a95901e
7
8 x11-themes/adwaita-icon-theme: Package legacy icons and fix cursors path
9
10 adwaita-icon-them dropped many legacy icons breaking many different
11 applications. We were waiting for pieces to get fixed but, for now, it has
12 turned into never ending disputed among different upstreams and breakage
13 being kept for Gnome 42 cycle affecting many different apps.
14
15 We follow Debian for now until this is better solved in the future in one
16 way on another.
17
18 Also keep upstream default location for cursor themes. Gentoo location is
19 kept for backwards compatibility but that location is highly Gentoo
20 specific. As a consequence, upstreams keep breaking in several ways and not
21 fixing their apps to honour our PATH.
22
23 Bug: https://bugs.gentoo.org/834277
24 Bug: https://bugs.gentoo.org/834001
25 Bug: https://bugs.gentoo.org/838451
26 Bug: https://bugs.gentoo.org/844910
27 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
28
29 x11-themes/adwaita-icon-theme/Manifest | 2 +
30 .../adwaita-icon-theme-42.0_p2.ebuild | 97 ++++++++++++++++++++++
31 2 files changed, 99 insertions(+)
32
33 diff --git a/x11-themes/adwaita-icon-theme/Manifest b/x11-themes/adwaita-icon-theme/Manifest
34 index 3574db5ee8fd..2bc23b1ba62a 100644
35 --- a/x11-themes/adwaita-icon-theme/Manifest
36 +++ b/x11-themes/adwaita-icon-theme/Manifest
37 @@ -1,4 +1,6 @@
38 DIST adwaita-icon-theme-3.32.0.tar.xz 18540012 BLAKE2B a82ca6758cdbf459ac617d3b3d834e4147c3a3c5e6ca7c705ed2d16e8cf0a1255f5ae999d7e930b9716585b8c498c220f1ab40fec929dde7679efd56f3b18a45 SHA512 9609732cd51c6794d4d86598818bb2a589b0f4b6b795e57f3507dad69b21ef1b2fc2e83e24e937428bbace32fcccf587a5771cbc02c5768206e704f0456a6d1d
39 DIST adwaita-icon-theme-41.0.tar.xz 17086916 BLAKE2B 6899bf734a3f708e6596a4aeb2df426041dd46232a3cbd55f530fab2cc92277db74322a31a443e251a06c74bf7fad7d5f9394b63edb33fced5ce8987e5c87d3e SHA512 2a540f2b53cb64433780029ea70c2cfe8417ae7e619d8eefa59825e3ebcb8585acd4ccae25344c8e146a0ee0705ccbb39a2cb729a162534fd86a4ff24e505c86
40 DIST adwaita-icon-theme-42.0.tar.xz 10407000 BLAKE2B 1ec998731b8da4ed17d7bb5887faba7a33721955836265c67efeffcf16bbb82e6f20750245b9b6d7dc4e816ec0e6ae71cb51a839debb0e070edf5d347d6260d5 SHA512 521bfd44fdc253f5fd01fcdfaa485669849ad73c35354ccfe9b358ba433cfa40ee6d68b70ec2268a4ce0631a48670b03b30811ca68e2e19f9430082454e02015
41 +DIST adwaita-icon-theme_42.0-2.debian.tar.xz 38420 BLAKE2B 49d88218881bd064394faa320a90e0ce1ef3a1295fbb1fbb276fb79f99f1caf7a6b1b1600ad6c648a6cb479e7bc429101cd0c327bcb8da64d50c7ea1e7a1c8fe SHA512 0bcbad6e63a05b3e916b76e6e6e5b629cf859d7bfa8e0edb53112967921cc00b9217270b663aadd36bde4bea38769345ea54593337cc0c524cf998266a4a3f65
42 +DIST adwaita-icon-theme_42.0.orig-41.tar.xz 17086916 BLAKE2B 6899bf734a3f708e6596a4aeb2df426041dd46232a3cbd55f530fab2cc92277db74322a31a443e251a06c74bf7fad7d5f9394b63edb33fced5ce8987e5c87d3e SHA512 2a540f2b53cb64433780029ea70c2cfe8417ae7e619d8eefa59825e3ebcb8585acd4ccae25344c8e146a0ee0705ccbb39a2cb729a162534fd86a4ff24e505c86
43 DIST tango-gentoo-v1.1.tar.gz 29322 BLAKE2B 83fa2bf37727e60851dd679054fe1b153ebfea58c9a9a40f891f7d68d3b047b02e8effa1d1b4e08d64500a2072ce7200f159c92a352da7124de27e1b05bb6027 SHA512 87d47ddab68361db6d99866c51705dcb3e198f8345a1096859acf2c6cca5099dd23c7fb30d124f52c4933ea38fd45fadffbbe6ecbdfa84f5b60938a4824f9045
44
45 diff --git a/x11-themes/adwaita-icon-theme/adwaita-icon-theme-42.0_p2.ebuild b/x11-themes/adwaita-icon-theme/adwaita-icon-theme-42.0_p2.ebuild
46 new file mode 100644
47 index 000000000000..8f5929ec582b
48 --- /dev/null
49 +++ b/x11-themes/adwaita-icon-theme/adwaita-icon-theme-42.0_p2.ebuild
50 @@ -0,0 +1,97 @@
51 +# Copyright 1999-2022 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=8
55 +PYTHON_COMPAT=( python3_{8..10} )
56 +
57 +inherit gnome2 python-any-r1
58 +
59 +DESCRIPTION="GNOME default icon theme"
60 +HOMEPAGE="https://gitlab.gnome.org/GNOME/adwaita-icon-theme"
61 +
62 +# Rely on Debian workaround until all involved upstreams agree on how to
63 +# fix this: https://gitlab.gnome.org/GNOME/evolution/-/issues/1848
64 +SRC_URI="${SRC_URI/_p*}.tar.xz
65 + branding? ( https://www.mail-archive.com/tango-artists@×××××××××××××××××.org/msg00043/tango-gentoo-v1.1.tar.gz )
66 + mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}.orig-41.tar.xz
67 + mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-${PV/*_p}.debian.tar.xz
68 +"
69 +LICENSE="
70 + || ( LGPL-3 CC-BY-SA-3.0 )
71 + branding? ( CC-BY-SA-4.0 )
72 +"
73 +SLOT="0"
74 +IUSE="branding"
75 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
76 +
77 +# gtk+:3 is needed for build for the gtk-encode-symbolic-svg utility
78 +# librsvg is needed for gtk-encode-symbolic-svg to be able to read the source SVG via its pixbuf loader and at runtime for rendering scalable icons shipped by the theme
79 +DEPEND=">=x11-themes/hicolor-icon-theme-0.10"
80 +RDEPEND="${DEPEND}
81 + >=gnome-base/librsvg-2.48:2
82 +"
83 +BDEPEND="${PYTHON_DEPS}
84 + >=gnome-base/librsvg-2.48:2
85 + sys-devel/gettext
86 + virtual/pkgconfig
87 + x11-libs/gtk+:3
88 +"
89 +# This ebuild does not install any binaries
90 +RESTRICT="binchecks strip"
91 +
92 +S="${WORKDIR}/${P/_p*}"
93 +
94 +src_prepare() {
95 + if use branding; then
96 + for i in 16 22 24 32 48; do
97 + cp "${WORKDIR}"/tango-gentoo-v1.1/${i}x${i}/gentoo.png \
98 + "${S}"/Adwaita/${i}x${i}/places/start-here.png \
99 + || die "Copying gentoo logos failed"
100 + done
101 + fi
102 +
103 + gnome2_src_prepare
104 +}
105 +
106 +src_configure() {
107 + gnome2_src_configure GTK_UPDATE_ICON_CACHE=$(type -P true)
108 + einfo "Configuring legacy icons"
109 + cd "${WORKDIR}/${PN}-41.0" && gnome2_src_configure GTK_UPDATE_ICON_CACHE=$(type -P true)
110 +}
111 +
112 +src_compile() {
113 + gnome2_src_compile
114 + einfo "Compiling legacy icons"
115 + cd "${WORKDIR}/${PN}-41.0" && gnome2_src_compile
116 +}
117 +
118 +pkg_preinst() {
119 + # Needed until bug #834600 is solved
120 + rm -r "${EROOT}"/usr/share/cursors/xorg-x11/Adwaita || die
121 +}
122 +
123 +src_install() {
124 + gnome2_src_install
125 +
126 + # Gentoo uses the following location for cursors too, but keep
127 + # upstream path to prevent issues like bugs #838451, #834277, #834001
128 + dosym ../../../../usr/share/icons/Adwaita/cursors /usr/share/cursors/xorg-x11/Adwaita
129 +
130 + # Fix until https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/commit/706d29cc5ca35bef6d0b3e682ae1752f33bf2705
131 + # is in a release
132 + dosym ../../../../../../usr/share/icons/Adwaita/scalable/actions/media-seek-backward-symbolic.svg /usr/share/icons/Adwaita/scalable/actions/media-seek-forward-symbolic-rtl.svg
133 + dosym ../../../../../../usr/share/icons/Adwaita/scalable/actions/media-seek-forward-symbolic.svg /usr/share/icons/Adwaita/scalable/actions/media-seek-backward-symbolic-rtl.svg
134 + dosym ../../../../../../usr/share/icons/Adwaita/scalable/actions/media-skip-backward-symbolic.svg /usr/share/icons/Adwaita/scalable/actions/media-skip-forward-symbolic-rtl.svg
135 + dosym ../../../../../../usr/share/icons/Adwaita/scalable/actions/media-skip-forward-symbolic.svg /usr/share/icons/Adwaita/scalable/actions/media-skip-backward-symbolic-rtl.svg
136 +
137 + # Install missing icons, bug #844910
138 + # https://gitlab.gnome.org/GNOME/evolution/-/issues/1848
139 + einfo "Installing legacy icons"
140 + cd "${WORKDIR}/${PN}-41.0"
141 + emake DESTDIR="${WORKDIR}/debian/tmp-41" install
142 + "${PYTHON}" "${WORKDIR}/debian/move-subset.py" \
143 + --icon-names-from-file="${WORKDIR}"/debian/legacy-icons-41.txt \
144 + --icon-names-from-file="${WORKDIR}"/debian/removed-icons-41.txt \
145 + "${WORKDIR}"/debian/tmp-41 \
146 + "${ED}" || die
147 +}