Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-themes/arc-theme/
Date: Fri, 16 Apr 2021 22:11:33
Message-Id: 1618611070.583cf30e2050af8f09bb3151aee62f0b02c9d53b.chewi@gentoo
1 commit: 583cf30e2050af8f09bb3151aee62f0b02c9d53b
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 16 22:11:10 2021 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 16 22:11:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=583cf30e
7
8 x11-themes/arc-theme: Version bump to 20210412
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 x11-themes/arc-theme/Manifest | 2 +
14 x11-themes/arc-theme/arc-theme-20210412.ebuild | 106 +++++++++++++++++++++++++
15 2 files changed, 108 insertions(+)
16
17 diff --git a/x11-themes/arc-theme/Manifest b/x11-themes/arc-theme/Manifest
18 index 129141c7d15..30e4e203de9 100644
19 --- a/x11-themes/arc-theme/Manifest
20 +++ b/x11-themes/arc-theme/Manifest
21 @@ -2,3 +2,5 @@ DIST arc-theme-20201013-pngs.tar.xz 85204 BLAKE2B fb1ef7e0d9618238cf6057777d1494
22 DIST arc-theme-20201013.tar.xz 241636 BLAKE2B 6f825b290c0f2cf1e67d72d9dbca0f23c83e7fc2ea89bc7b69013fb38bb7959205caad1b357a5cb1c4196e4b4460f13223515124c2012aa363a17765e89f992d SHA512 c1c70c80935af2b1f3c7c9bf79ee72d5fba907fd03caadecf96d6fd796bf70d325bbb16dbe93f95d9a63eff748c7d90bcb0bf837e446e5c2770cfdccb131f45c
23 DIST arc-theme-20210127-pngs.tar.xz 159392 BLAKE2B 2a355e85766f44c21a4a85cacd184cb28ddb4ba19e7dff7cae70114c12422ed5d46a3930d780a6e2dd458684a944f5cbd17a769a0d3e331f94007b9fc9943238 SHA512 b0de3065e81979f2aa6b7f31edc1aad6dd6998776da2a1ba3b1030f6d8c552c9f1702e0bca0585e625e868541b0444b7a0d75631dfbeef517bdb9925e19e6159
24 DIST arc-theme-20210127.tar.xz 256364 BLAKE2B 4e85d2ca801977588273715a94b91e199e3f16d304090789748e22b55c1339386a84938da1b1c143004655d8573678a51ff3b27e9ac3a2027de93625b0f39ada SHA512 bb0554c96cf6c3c3891698d973e7d719931fc316ea6cd910f69d21440110690aeef0e734b5f940ad1c81bdff238477b6353de4ae074cd54fbed09c680377d594
25 +DIST arc-theme-20210412-pngs.tar.xz 159340 BLAKE2B 40027335b8b44ae38bfadfa52e08858cf09646ed9c3e2fcddece8959d2f35845c4924002f36cea65cb27ecf61fdb3dffbf0d5c01024c34d16c31e21bf69b5a72 SHA512 85bdcd1fb81a5c33b479123bad178b1833a95ecf09310fa3b754c25f753ec10a7cada14983014b090c4a86d7a8497ac881fee9576737be29f4f772ccb59a8f1e
26 +DIST arc-theme-20210412.tar.xz 257248 BLAKE2B c525c3632670d8aa6b640baa8b3dddca6c5dd5f087734604c68d9140f810fc595f73db06f93b6193ba1c59a8cd85b87f5f6fda9777940adf36f3c436a8426810 SHA512 d3064546301e013a1e5a8db735346d74c73f37cbf808b7afeee6f88c820cea58ba6458fa63e1213377cdd33c8347167242e6f8f1eacf85ce212f3b2508c0bb80
27
28 diff --git a/x11-themes/arc-theme/arc-theme-20210412.ebuild b/x11-themes/arc-theme/arc-theme-20210412.ebuild
29 new file mode 100644
30 index 00000000000..8d4aefb69e3
31 --- /dev/null
32 +++ b/x11-themes/arc-theme/arc-theme-20210412.ebuild
33 @@ -0,0 +1,106 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +# USE="-* gtk2 gtk3 xfce" ebuild ${P}.ebuild clean compile
40 +# cd $(portageq envvar PORTAGE_TMPDIR)/portage/x11-themes/${P}/work
41 +# find ${P}-build/ -name "*.png" | xargs tar Jcvf /usr/portage/distfiles/${P}-pngs.tar.xz --owner=root --group=root
42 +
43 +inherit meson toolchain-funcs
44 +
45 +DESCRIPTION="A flat theme with transparent elements for GTK+3, GTK+2 and GNOME Shell"
46 +HOMEPAGE="https://github.com/jnsh/arc-theme"
47 +SRC_URI="https://github.com/jnsh/${PN}/releases/download/${PV}/arc-theme-${PV}.tar.xz
48 + pre-rendered? ( https://dev.gentoo.org/~chewi/distfiles/${P}-pngs.tar.xz )"
49 +LICENSE="GPL-3"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
52 +IUSE="cinnamon gnome-shell +gtk2 +gtk3 mate +pre-rendered xfce"
53 +
54 +SASSC_DEPEND="
55 + dev-lang/sassc
56 +"
57 +
58 +SVG_DEPEND="
59 + !pre-rendered? (
60 + media-gfx/inkscape
61 + media-gfx/optipng
62 + )
63 +"
64 +
65 +# Supports various GTK+3, GNOME Shell, and Cinnamon versions and uses
66 +# pkg-config to determine which set of files to build. Updates will
67 +# therefore break existing installs but there's no way around this. At
68 +# least GTK+3 is unlikely to see a release beyond 3.24.
69 +BDEPEND="
70 + >=dev-util/meson-0.56.0
71 + cinnamon? (
72 + ${SASSC_DEPEND}
73 + gnome-extra/cinnamon
74 + )
75 + gnome-shell? (
76 + ${SASSC_DEPEND}
77 + >=gnome-base/gnome-shell-3.18
78 + )
79 + gtk2? (
80 + ${SVG_DEPEND}
81 + )
82 + gtk3? (
83 + ${SASSC_DEPEND}
84 + ${SVG_DEPEND}
85 + virtual/pkgconfig
86 + =x11-libs/gtk+-3.24*:3
87 + )
88 + xfce? (
89 + ${SVG_DEPEND}
90 + )
91 +"
92 +
93 +# gnome-themes-standard is only needed by GTK+2 for the Adwaita
94 +# engine. This engine is built into GTK+3.
95 +RDEPEND="
96 + gtk2? (
97 + x11-themes/gnome-themes-standard
98 + x11-themes/gtk-engines-murrine
99 + )
100 +"
101 +
102 +src_configure() {
103 + local themes=$(
104 + printf "%s," \
105 + $(usev cinnamon) \
106 + $(usev gnome-shell) \
107 + $(usev gtk2) \
108 + $(usev gtk3) \
109 + $(usex mate metacity "") \
110 + $(usex xfce xfwm "")
111 + )
112 +
113 + local emesonargs=(
114 + -Dthemes="${themes%,}"
115 + -Dgtk3_version=3.24
116 + )
117 +
118 + if use pre-rendered; then
119 + emesonargs+=(
120 + $(if tc-is-cross-compiler; then
121 + echo --cross-file
122 + else
123 + echo --native-file
124 + fi)
125 + "${FILESDIR}"/pre-rendered.ini
126 + )
127 + fi
128 +
129 + meson_src_configure
130 +}
131 +
132 +src_compile() {
133 + # fontconfig issue?
134 + # https://bugs.gentoo.org/666418#c28
135 + use pre-rendered ||
136 + addpredict "${BROOT}"/usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
137 +
138 + meson_src_compile
139 +}