public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-themes/arc-theme/
Date: Sat, 23 Oct 2021 08:12:08 +0000 (UTC)	[thread overview]
Message-ID: <1634976661.10fcf2292113b898fa7396ea25423a85313eaba8.chewi@gentoo> (raw)

commit:     10fcf2292113b898fa7396ea25423a85313eaba8
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 23 08:11:01 2021 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Oct 23 08:11:01 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10fcf229

x11-themes/arc-theme: Version bump to 20211018

This version supports GTK 4.

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 x11-themes/arc-theme/Manifest                  |   2 +
 x11-themes/arc-theme/arc-theme-20211018.ebuild | 112 +++++++++++++++++++++++++
 x11-themes/arc-theme/metadata.xml              |   1 +
 3 files changed, 115 insertions(+)

diff --git a/x11-themes/arc-theme/Manifest b/x11-themes/arc-theme/Manifest
index 256eebbbd47..ca8cccb0d92 100644
--- a/x11-themes/arc-theme/Manifest
+++ b/x11-themes/arc-theme/Manifest
@@ -1,2 +1,4 @@
 DIST arc-theme-20210412-pngs.tar.xz 159340 BLAKE2B 40027335b8b44ae38bfadfa52e08858cf09646ed9c3e2fcddece8959d2f35845c4924002f36cea65cb27ecf61fdb3dffbf0d5c01024c34d16c31e21bf69b5a72 SHA512 85bdcd1fb81a5c33b479123bad178b1833a95ecf09310fa3b754c25f753ec10a7cada14983014b090c4a86d7a8497ac881fee9576737be29f4f772ccb59a8f1e
 DIST arc-theme-20210412.tar.xz 257248 BLAKE2B c525c3632670d8aa6b640baa8b3dddca6c5dd5f087734604c68d9140f810fc595f73db06f93b6193ba1c59a8cd85b87f5f6fda9777940adf36f3c436a8426810 SHA512 d3064546301e013a1e5a8db735346d74c73f37cbf808b7afeee6f88c820cea58ba6458fa63e1213377cdd33c8347167242e6f8f1eacf85ce212f3b2508c0bb80
+DIST arc-theme-20211018-pngs.tar.xz 160836 BLAKE2B 4c2882ce03724c7abd8d4db31da82355d28b792a16648e010eca033f77d3ad6da8f7026e2562249caa993f2e8549191b6ec8d4473fbcab084ae3d91c468956c5 SHA512 6ac7bf27ebc258d0e2c2102ed286ba196d6f9c8343e1885d77d8f29cda0f8c247926003bd8c40165e08b9b3987f8a2f82800d509b78dd598d2e7ff8bea964831
+DIST arc-theme-20211018.tar.xz 271084 BLAKE2B dc8808a5c7a0444d5ac11fa213b99b9633691ad920a07820752974f98febd8bc112a34568c38d354558e7876182278603ab66ebf8e50aa51f5eba431bd6b3433 SHA512 da46efc0e38efb7f1d0cd9a5d2c4e8f00f3b8d408ec50c54d89ef67fc3bb5ea253b5fb890b0cb8e82cafebd44a599d0de2369272ed88da73dd979052b130bd55

diff --git a/x11-themes/arc-theme/arc-theme-20211018.ebuild b/x11-themes/arc-theme/arc-theme-20211018.ebuild
new file mode 100644
index 00000000000..3ea22d4a35e
--- /dev/null
+++ b/x11-themes/arc-theme/arc-theme-20211018.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# USE="-* gtk2 gtk3 gtk4 xfce" ebuild ${P}.ebuild clean compile
+# cd $(portageq envvar PORTAGE_TMPDIR)/portage/x11-themes/${P}/work
+# find ${P}-build/ -name "*.png" | xargs tar Jcvf /usr/portage/distfiles/${P}-pngs.tar.xz --owner=root --group=root
+
+inherit meson toolchain-funcs
+
+DESCRIPTION="A flat theme with transparent elements for GTK+3, GTK+2 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
+	pre-rendered? ( https://dev.gentoo.org/~chewi/distfiles/${P}-pngs.tar.xz )"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+IUSE="cinnamon gnome-shell +gtk2 +gtk3 +gtk4 mate +pre-rendered xfce"
+
+SASSC_DEPEND="
+	dev-lang/sassc
+"
+
+SVG_DEPEND="
+	!pre-rendered? (
+		media-gfx/inkscape
+		media-gfx/optipng
+	)
+"
+
+# Supports various GTK+3, GNOME Shell, and Cinnamon versions and uses
+# pkg-config to determine which set of files to build. Updates will
+# therefore break existing installs but there's no way around this. At
+# least GTK+3 is unlikely to see a release beyond 3.24.
+BDEPEND="
+	>=dev-util/meson-0.56.0
+	cinnamon? (
+		${SASSC_DEPEND}
+		gnome-extra/cinnamon
+	)
+	gnome-shell? (
+		${SASSC_DEPEND}
+		>=gnome-base/gnome-shell-3.18
+	)
+	gtk2? (
+		${SVG_DEPEND}
+	)
+	gtk3? (
+		${SASSC_DEPEND}
+		${SVG_DEPEND}
+		virtual/pkgconfig
+		=x11-libs/gtk+-3.24*:3
+	)
+	gtk4? (
+		${SASSC_DEPEND}
+		${SVG_DEPEND}
+	)
+	xfce? (
+		${SVG_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() {
+	local themes=$(
+		printf "%s," \
+		$(usev cinnamon) \
+		$(usev gnome-shell) \
+		$(usev gtk2) \
+		$(usev gtk3) \
+		$(usev gtk4) \
+		$(usex mate metacity "") \
+		$(usex xfce xfwm "")
+	)
+
+	local emesonargs=(
+		-Dthemes="${themes%,}"
+		-Dgtk3_version=3.24
+		-Dgtk4_version=4.2 # 4.0 dropped in Gentoo, works with 4.4.
+	)
+
+	if use pre-rendered; then
+		emesonargs+=(
+			$(if tc-is-cross-compiler; then
+				  echo --cross-file
+			  else
+				  echo --native-file
+			  fi)
+			"${FILESDIR}"/pre-rendered.ini
+		)
+	fi
+
+	meson_src_configure
+}
+
+src_compile() {
+	# fontconfig issue?
+	# https://bugs.gentoo.org/666418#c28
+	use pre-rendered ||
+		addpredict "${BROOT}"/usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
+
+	meson_src_compile
+}

diff --git a/x11-themes/arc-theme/metadata.xml b/x11-themes/arc-theme/metadata.xml
index 25d3932c367..c54d3e04929 100644
--- a/x11-themes/arc-theme/metadata.xml
+++ b/x11-themes/arc-theme/metadata.xml
@@ -12,6 +12,7 @@
 		<flag name="cinnamon">Install theme for <pkg>gnome-extra/cinnamon</pkg></flag>
 		<flag name="gtk2">Install GTK+2 theme</flag>
 		<flag name="gtk3">Install GTK+3 theme</flag>
+		<flag name="gtk4">Install GTK+4 theme</flag>
 		<flag name="mate">Install Metacity theme for <pkg>mate-base/mate</pkg></flag>
 		<flag name="gnome-shell">Install theme for <pkg>gnome-base/gnome-shell</pkg></flag>
 		<flag name="pre-rendered">Avoid <pkg>media-gfx/inkscape</pkg> and <pkg>media-gfx/optipng</pkg> dependencies by using pre-rendered PNGs</flag>


             reply	other threads:[~2021-10-23  8:12 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-23  8:12 James Le Cuirot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-27 22:08 [gentoo-commits] repo/gentoo:master commit in: x11-themes/arc-theme/ James Le Cuirot
2023-11-12  6:57 Arthur Zamarin
2023-05-05 16:10 Arthur Zamarin
2023-05-05 16:09 Arthur Zamarin
2022-12-20 20:13 Georgy Yakovlev
2022-04-07 20:39 James Le Cuirot
2022-04-07 20:39 James Le Cuirot
2022-02-26 23:35 James Le Cuirot
2022-02-26 23:35 James Le Cuirot
2022-01-10  2:48 Georgy Yakovlev
2022-01-10  2:48 Georgy Yakovlev
2021-10-23  8:13 James Le Cuirot
2021-07-18  6:35 Agostino Sarubbo
2021-07-18  6:33 Agostino Sarubbo
2021-04-16 22:11 James Le Cuirot
2020-12-16 22:30 Sam James
2020-11-23 22:46 James Le Cuirot
2020-11-23 22:46 James Le Cuirot
2020-10-14 20:12 James Le Cuirot
2020-08-19 22:19 James Le Cuirot
2020-08-19 22:19 James Le Cuirot
2020-05-10 10:37 James Le Cuirot
2020-05-10 10:31 James Le Cuirot
2020-05-10 10:31 James Le Cuirot
2019-12-26 12:56 Georgy Yakovlev
2019-11-02 11:58 Mikle Kolyada
2019-11-02 11:50 James Le Cuirot
2019-06-28 20:21 James Le Cuirot
2019-06-28 20:21 James Le Cuirot
2018-10-23 22:43 James Le Cuirot
2018-10-23 22:43 James Le Cuirot
2017-07-15 18:17 James Le Cuirot
2017-03-26 20:28 James Le Cuirot
2017-03-26 20:28 James Le Cuirot
2016-12-21 21:14 James Le Cuirot
2016-12-21 21:14 James Le Cuirot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1634976661.10fcf2292113b898fa7396ea25423a85313eaba8.chewi@gentoo \
    --to=chewi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox