Diff adwaita-icon-theme-3.32.0 with a adwaita-icon-theme-44.0

/usr/portage/x11-themes/adwaita-icon-theme/adwaita-icon-theme-44.0.ebuild 2023-10-09 14:52:35.984368514 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit gnome2
6
inherit gnome2 xdg
7 7

  
8 8
DESCRIPTION="GNOME default icon theme"
9 9
HOMEPAGE="https://gitlab.gnome.org/GNOME/adwaita-icon-theme"
......
17 17
"
18 18
SLOT="0"
19 19
IUSE="branding"
20
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-solaris"
20
KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
21 21

  
22 22
# gtk+:3 is needed for build for the gtk-encode-symbolic-svg utility
23
# 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
23
# librsvg is needed for gtk-encode-symbolic-svg to be able to read the source SVG via
24
# its pixbuf loader and at runtime for rendering scalable icons shipped by the theme
24 25
DEPEND=">=x11-themes/hicolor-icon-theme-0.10"
25 26
RDEPEND="${DEPEND}
26
	gnome-base/librsvg:2
27
	>=gnome-base/librsvg-2.48:2
27 28
"
28 29
BDEPEND="
29
	gnome-base/librsvg:2
30
	>=gnome-base/librsvg-2.48:2
30 31
	sys-devel/gettext
31 32
	virtual/pkgconfig
32 33
	x11-libs/gtk+:3
......
36 37

  
37 38
src_prepare() {
38 39
	if use branding; then
39
		for i in 16 22 24 32 48; do
40
		for i in 16; do
40 41
			cp "${WORKDIR}"/tango-gentoo-v1.1/${i}x${i}/gentoo.png \
41 42
			"${S}"/Adwaita/${i}x${i}/places/start-here.png \
42 43
			|| die "Copying gentoo logos failed"
43 44
		done
45
		cp "${WORKDIR}"/tango-gentoo-v1.1/scalable/gentoo.svg \
46
			"${S}"/Adwaita/scalable/places/start-here.svg || die
44 47
	fi
45 48

  
46
	# Install cursors in the right place used in Gentoo
47
	sed -e 's:^\(cursordir.*\)icons\(.*\):\1cursors/xorg-x11\2:' \
48
		-i "${S}"/Makefile.am \
49
		-i "${S}"/Makefile.in || die
50

  
51 49
	gnome2_src_prepare
52 50
}
53 51

  
54 52
src_configure() {
55 53
	gnome2_src_configure GTK_UPDATE_ICON_CACHE=$(type -P true)
56 54
}
55

  
56
src_test() {
57
	:; # No tests
58
}
59

  
60
src_install() {
61
	gnome2_src_install
62

  
63
	# Gentoo uses the following location for cursors too, but keep
64
	# upstream path to prevent issues like bugs #838451, #834277, #834001
65
	dosym ../../../../usr/share/icons/Adwaita/cursors /usr/share/cursors/xorg-x11/Adwaita
66
}
67

  
68
pkg_preinst() {
69
	# Needed until bug #834600 is solved
70
	if [[ -d "${EROOT}"/usr/share/cursors/xorg-x11/Adwaita ]] ; then
71
		rm -r "${EROOT}"/usr/share/cursors/xorg-x11/Adwaita || die
72
	fi
73
	xdg_pkg_preinst
74
}
Thank you!