Diff arc-theme-20210412 with a arc-theme-20220223

/usr/portage/x11-themes/arc-theme/arc-theme-20220223.ebuild 2023-10-09 14:52:35.984368514 +0300
1
# Copyright 1999-2021 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
# USE="-* gtk2 gtk3 xfce" ebuild ${P}.ebuild clean compile
7
# cd $(portageq envvar PORTAGE_TMPDIR)/portage/x11-themes/${P}/work
8
# find ${P}-build/ -name "*.png" | xargs tar Jcvf /usr/portage/distfiles/${P}-pngs.tar.xz --owner=root --group=root
6
PYTHON_COMPAT=( python3_{9..10} )
9 7

  
10
inherit meson toolchain-funcs
8
inherit meson python-any-r1
11 9

  
12
DESCRIPTION="A flat theme with transparent elements for GTK+3, GTK+2 and GNOME Shell"
10
DESCRIPTION="A flat theme with transparent elements for GTK 2/3/4 and GNOME Shell"
13 11
HOMEPAGE="https://github.com/jnsh/arc-theme"
14
SRC_URI="https://github.com/jnsh/${PN}/releases/download/${PV}/arc-theme-${PV}.tar.xz
15
	pre-rendered? ( https://dev.gentoo.org/~chewi/distfiles/${P}-pngs.tar.xz )"
12
SRC_URI="https://github.com/jnsh/${PN}/releases/download/${PV}/arc-theme-${PV}.tar.xz"
13

  
16 14
LICENSE="GPL-3"
17 15
SLOT="0"
18
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
19
IUSE="cinnamon gnome-shell +gtk2 +gtk3 mate +pre-rendered xfce"
20

  
21
SASSC_DEPEND="
22
	dev-lang/sassc
23
"
16
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
17
IUSE="cinnamon gnome-shell +gtk2 +gtk3 +gtk4 mate +transparency xfce"
24 18

  
25
SVG_DEPEND="
26
	!pre-rendered? (
27
		media-gfx/inkscape
28
		media-gfx/optipng
29
	)
30
"
19
GLIB_DEPEND="dev-libs/glib"
20
SASSC_DEPEND="dev-lang/sassc"
31 21

  
32
# Supports various GTK+3, GNOME Shell, and Cinnamon versions and uses
33
# pkg-config to determine which set of files to build. Updates will
34
# therefore break existing installs but there's no way around this. At
35
# least GTK+3 is unlikely to see a release beyond 3.24.
22
# Supports various GTK, GNOME Shell, and Cinnamon versions and uses
23
# --version option for gnome-shell and cinnamon to determine which set of files to build.
24
# Updates will therefore break existing installs but there's no way around this.
36 25
BDEPEND="
26
	${PYTHON_DEPS}
37 27
	>=dev-util/meson-0.56.0
38 28
	cinnamon? (
39 29
		${SASSC_DEPEND}
40 30
		gnome-extra/cinnamon
41 31
	)
42 32
	gnome-shell? (
33
		${GLIB_DEPEND}
43 34
		${SASSC_DEPEND}
44
		>=gnome-base/gnome-shell-3.18
45
	)
46
	gtk2? (
47
		${SVG_DEPEND}
35
		>=gnome-base/gnome-shell-3.28
48 36
	)
49 37
	gtk3? (
38
		${GLIB_DEPEND}
50 39
		${SASSC_DEPEND}
51
		${SVG_DEPEND}
52
		virtual/pkgconfig
53
		=x11-libs/gtk+-3.24*:3
54 40
	)
55
	xfce? (
56
		${SVG_DEPEND}
41
	gtk4? (
42
		${GLIB_DEPEND}
43
		${SASSC_DEPEND}
57 44
	)
58 45
"
59 46

  
......
67 54
"
68 55

  
69 56
src_configure() {
57
	# Cinnamon still uses metacity themes for its window manager.
58
	# so we enable metacity theme too if USE=cinnamon
59
	# but only enable metacity if USE=mate
70 60
	local themes=$(
71 61
		printf "%s," \
72
		$(usev cinnamon) \
62
		$(usev cinnamon "cinnamon metacity") \
73 63
		$(usev gnome-shell) \
74 64
		$(usev gtk2) \
75 65
		$(usev gtk3) \
76
		$(usex mate metacity "") \
77
		$(usex xfce xfwm "")
66
		$(usev gtk4) \
67
		$(! use cinnamon && usev mate metacity) \
68
		$(usev xfce xfwm)
78 69
	)
79 70

  
80 71
	local emesonargs=(
81 72
		-Dthemes="${themes%,}"
82
		-Dgtk3_version=3.24
73
		$(meson_use gnome-shell gnome_shell_gresource)
74
		$(meson_use transparency)
83 75
	)
84 76

  
85
	if use pre-rendered; then
86
		emesonargs+=(
87
			$(if tc-is-cross-compiler; then
88
				  echo --cross-file
89
			  else
90
				  echo --native-file
91
			  fi)
92
			"${FILESDIR}"/pre-rendered.ini
93
		)
94
	fi
95

  
96 77
	meson_src_configure
97 78
}
98

  
99
src_compile() {
100
	# fontconfig issue?
101
	# https://bugs.gentoo.org/666418#c28
102
	use pre-rendered ||
103
		addpredict "${BROOT}"/usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
104

  
105
	meson_src_compile
106
}
Thank you!