blob: dddb29af6aa3518f1adaa37b4eb3c46a19424850 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit meson python-any-r1
DESCRIPTION="A flat theme with transparent elements for GTK 2/3/4 and GNOME Shell"
HOMEPAGE="https://github.com/jnsh/arc-theme"
SRC_URI="https://github.com/jnsh/${PN}/releases/download/${PV}/arc-theme-${PV}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
IUSE="cinnamon gnome-shell +gtk2 +gtk3 +gtk4 mate +transparency xfce"
GLIB_DEPEND="dev-libs/glib"
SASSC_DEPEND="dev-lang/sassc"
# Supports various GTK, GNOME Shell, and Cinnamon versions and uses
# --version option for gnome-shell and cinnamon to determine which set of files to build.
# Updates will therefore break existing installs but there's no way around this.
BDEPEND="
${PYTHON_DEPS}
>=dev-util/meson-0.56.0
cinnamon? (
${SASSC_DEPEND}
gnome-extra/cinnamon
)
gnome-shell? (
${GLIB_DEPEND}
${SASSC_DEPEND}
>=gnome-base/gnome-shell-3.28
)
gtk3? (
${GLIB_DEPEND}
${SASSC_DEPEND}
)
gtk4? (
${GLIB_DEPEND}
${SASSC_DEPEND}
)
"
# gnome-themes-standard is only needed by GTK+2 for the Adwaita
# engine. This engine is built into GTK+3.
RDEPEND="
gtk2? (
x11-themes/gnome-themes-standard
x11-themes/gtk-engines-murrine
)
"
src_configure() {
# Cinnamon still uses metacity themes for its window manager.
# so we enable metacity theme too if USE=cinnamon
# but only enable metacity if USE=mate
local themes=$(
printf "%s," \
$(usev cinnamon "cinnamon metacity") \
$(usev gnome-shell) \
$(usev gtk2) \
$(usev gtk3) \
$(usev gtk4) \
$(! use cinnamon && usev mate metacity) \
$(usev xfce xfwm)
)
local emesonargs=(
-Dthemes="${themes%,}"
$(meson_use gnome-shell gnome_shell_gresource)
$(meson_use transparency)
)
meson_src_configure
}
|