public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jakov Smolić" <jsmolic@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/ncdu/
Date: Sat, 27 Jul 2024 15:26:32 +0000 (UTC)	[thread overview]
Message-ID: <1722093010.b2696e46fd6d35bde4731f057c98a80b8f8a6f90.jsmolic@gentoo> (raw)

commit:     b2696e46fd6d35bde4731f057c98a80b8f8a6f90
Author:     Eric Joldasov <bratishkaerik <AT> landless-city <DOT> net>
AuthorDate: Fri Jul 26 16:01:15 2024 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Sat Jul 27 15:10:10 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2696e46

sys-fs/ncdu: add 2.5

* Man page was rewritten in mdoc, so pod2man (and so dev-lang/perl)
  are no longer needed.

Signed-off-by: Eric Joldasov <bratishkaerik <AT> landless-city.net>
Closes: https://github.com/gentoo/gentoo/pull/37734
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 sys-fs/ncdu/Manifest        |   2 +
 sys-fs/ncdu/ncdu-2.5.ebuild | 128 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 130 insertions(+)

diff --git a/sys-fs/ncdu/Manifest b/sys-fs/ncdu/Manifest
index 517abebb0ec5..f88a58eadaf0 100644
--- a/sys-fs/ncdu/Manifest
+++ b/sys-fs/ncdu/Manifest
@@ -6,3 +6,5 @@ DIST ncdu-2.3.tar.gz 56608 BLAKE2B 9fd73fba83c57195f8ffbad5b954140a776d1cd1d7b3e
 DIST ncdu-2.3.tar.gz.asc 833 BLAKE2B fd5b6b4b6e14b8bf66f5053c637598c3a0a9ad16d29c20805d62418fb69a22fa1155c8591dac35514d088c57853043c7d6c8b94abdff793a3f7b0a53cb41fd65 SHA512 698d8f1c0a7e0267fdfcfc7823803012ab7faae6eee75af406ecc9a73244463521de851c3f2b116ae7f6d7e567ea17a7ef6aae75e135a8efbb02333525455b20
 DIST ncdu-2.4.tar.gz 51648 BLAKE2B cbe2db51b86a6ac624d3a0300bb41337ff0c8ce63165dc0f471872c0fa646406bf190d4f0605130d55d981c0a694a6bbbb9092c8857c45f362dd4bf0016b0617 SHA512 0bbc4400d05831528415c7e22d1e4b5c43cb8682c2bc35439e150763bcbc159664fee887d0fce89d28fb4199378972ffeb54c694e27b5f58d2ddaef890b055a7
 DIST ncdu-2.4.tar.gz.asc 833 BLAKE2B a0a0f3c8652242c1b3a7bab2e8eb03901bd0d8a0ecb2079ee914a08aeacda7e7c706eccef70f43a90d7190f32a3bc0eea2e3d46a9b3c29621a9e952328271cb7 SHA512 8eb6be85e7e33b2fcda3ce4c34bc4ff4a0c438b70a8d40ed91fababc728b77f0a83e0e07d70a7528821c774262a6d30cbbf73c56624d61ce3f4e93f27f1d5c31
+DIST ncdu-2.5.tar.gz 56019 BLAKE2B c10fb19f87c3d26334038ee96d857e547f9f6881518a675d9777a6c46cf456748861d84df190c14d6d2582f5ad3998ecdf9d00f0969c996221c0d1d9787570a3 SHA512 f4d499a3ab98a56667c75554c77951e4a42f5acdc1353875c108b0da469665777564405b8fcea5a731de473afacfda9f2c8701ba0ba989de1260119c64d7a9f8
+DIST ncdu-2.5.tar.gz.asc 833 BLAKE2B 86babaf8720898a5bd83a2cc290deb2f0a8041087b9f0afddd2306766b82877bbf51f45ac3622761f231359b2e5f60b8d6c5479963aaf7a6abdf67d24fb18496 SHA512 a28751371f7e7a033379fb5f5dc885c69e716f8b6654b8ee9e5eb023a22b67ca99e3ee813ddc2e335d6e8db9bd5a9a19359910a1b8aad13132f7a8bed1d67d78

diff --git a/sys-fs/ncdu/ncdu-2.5.ebuild b/sys-fs/ncdu/ncdu-2.5.ebuild
new file mode 100644
index 000000000000..ae93255d2b4a
--- /dev/null
+++ b/sys-fs/ncdu/ncdu-2.5.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit verify-sig edo
+
+DESCRIPTION="NCurses Disk Usage"
+HOMEPAGE="https://dev.yorhel.nl/ncdu"
+SRC_URI="
+	https://dev.yorhel.nl/download/${P}.tar.gz
+	verify-sig? ( https://dev.yorhel.nl/download/${P}.tar.gz.asc )
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+EZIG_MIN="0.12"
+EZIG_MAX_EXCLUSIVE="0.14"
+
+DEPEND="sys-libs/ncurses:=[unicode(+)]"
+RDEPEND="${DEPEND}"
+BDEPEND="
+	|| ( dev-lang/zig:${EZIG_MIN} dev-lang/zig-bin:${EZIG_MIN} )
+	virtual/pkgconfig
+	verify-sig? ( sec-keys/openpgp-keys-yorhel )
+"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/yoranheling.asc
+
+# see https://github.com/ziglang/zig/issues/3382
+# For now, Zig doesn't support CFLAGS/LDFLAGS/etc.
+QA_FLAGS_IGNORED="usr/bin/ncdu"
+
+# Many thanks to Florian Schmaus (Flowdalic)!
+# Adapted from https://github.com/gentoo/gentoo/pull/28986
+# Set the EZIG environment variable.
+zig-set_EZIG() {
+	[[ -n ${EZIG} ]] && return
+
+	if [[ -n ${EZIG_OVERWRITE} ]]; then
+		export EZIG="${EZIG_OVERWRITE}"
+		return
+	fi
+
+	local candidate selected selected_ver ver
+
+	for candidate in "${BROOT}"/usr/bin/zig-*; do
+		if [[ ! -L ${candidate} || ${candidate} != */zig?(-bin)-+([0-9.]) ]]; then
+			continue
+		fi
+
+		ver=${candidate##*-}
+
+		if [[ -n ${EZIG_EXACT_VER} ]]; then
+			ver_test "${ver}" -ne "${EZIG_EXACT_VER}" && continue
+
+			selected="${candidate}"
+			selected_ver="${ver}"
+			break
+		fi
+
+		if [[ -n ${EZIG_MIN} ]] \
+			   && ver_test "${ver}" -lt "${EZIG_MIN}"; then
+			# Candidate does not satisfy EZIG_MIN condition.
+			continue
+		fi
+
+		if [[ -n ${EZIG_MAX_EXCLUSIVE} ]] \
+			   && ver_test "${ver}" -ge "${EZIG_MAX_EXCLUSIVE}"; then
+			# Candidate does not satisfy EZIG_MAX_EXCLUSIVE condition.
+			continue
+		fi
+
+		if [[ -n ${selected_ver} ]] \
+			   && ver_test "${selected_ver}" -gt "${ver}"; then
+			# Candidate is older than the currently selected candidate.
+			continue
+		fi
+
+		selected="${candidate}"
+		selected_ver="${ver}"
+	done
+
+	if [[ -z ${selected} ]]; then
+		die "Could not find (suitable) zig installation in ${BROOT}/usr/bin"
+	fi
+
+	export EZIG="${selected}"
+	export EZIG_VER="${selected_ver}"
+}
+
+# Invoke zig with the optionally provided arguments.
+ezig() {
+	zig-set_EZIG
+
+	# Unfortunately, we cannot add more args here, since syntax is different
+	# for every subcommands. Yes, even target/cpu :( f.i. :
+	# -target/-mcpu for zig build-exe vs -Dtarget/-Dcpu for zig build-
+	# -OReleaseSafe for zig build-exe vs -DReleaseSafe for zig build
+	# (or even none, if hardcoded by upstream so choice is -Drelease=true/false)
+	# Ofc we can patch this, but still...
+
+	edo "${EZIG}" "${@}"
+}
+
+src_unpack() {
+	if use verify-sig; then
+		verify-sig_verify_detached "${DISTDIR}"/${P}.tar.gz{,.asc}
+	fi
+	default
+}
+
+src_configure() {
+	zig-set_EZIG
+	export ZIG=${EZIG}
+}
+
+src_test() {
+	ezig build test -Doptimize=ReleaseFast
+}
+
+src_install() {
+	emake PREFIX="${ED}"/usr install
+
+	dodoc README.md ChangeLog
+}


             reply	other threads:[~2024-07-27 15:26 UTC|newest]

Thread overview: 118+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-27 15:26 Jakov Smolić [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-10 12:01 [gentoo-commits] repo/gentoo:master commit in: sys-fs/ncdu/ Jakov Smolić
2025-02-17  1:52 Sam James
2025-01-05 20:43 Jakov Smolić
2025-01-05 19:28 Sam James
2025-01-05 19:28 Sam James
2025-01-05 17:49 Arthur Zamarin
2025-01-05 17:49 Arthur Zamarin
2025-01-05 17:49 Arthur Zamarin
2025-01-05 17:49 Arthur Zamarin
2024-12-15  9:47 Sam James
2024-11-21 17:13 Jakov Smolić
2024-10-04 11:03 Jakov Smolić
2024-08-26 12:24 Jakov Smolić
2024-08-25 19:24 WANG Xuerui
2024-08-25 14:37 Sam James
2024-08-25 14:37 Sam James
2024-08-25 14:37 Sam James
2024-08-25 14:37 Sam James
2024-08-25 13:59 Sam James
2024-08-25 13:59 Sam James
2024-08-23  2:08 Eli Schwartz
2024-08-23  2:08 Eli Schwartz
2024-06-18 17:50 Jakov Smolić
2024-06-09 10:37 Jakov Smolić
2023-12-12 23:22 Sam James
2023-12-12 17:51 Arthur Zamarin
2023-12-12 17:32 Arthur Zamarin
2023-12-12 16:55 Arthur Zamarin
2023-12-12 16:55 Arthur Zamarin
2023-12-12 15:56 Arthur Zamarin
2023-09-13  3:40 Sam James
2023-08-25  3:58 Jakov Smolić
2023-07-26  4:40 Sam James
2023-06-27 15:05 Florian Schmaus
2023-03-17  9:44 Florian Schmaus
2023-03-09 10:54 Florian Schmaus
2023-03-09 10:54 Florian Schmaus
2023-01-20 17:00 Sam James
2023-01-20 17:00 Sam James
2023-01-20 14:09 Arthur Zamarin
2023-01-20 14:09 Arthur Zamarin
2023-01-20 14:09 Arthur Zamarin
2023-01-20 14:09 Arthur Zamarin
2023-01-20  3:54 Sam James
2023-01-20  1:17 Sam James
2022-12-11 11:38 Jakov Smolić
2022-12-01 13:57 Michał Górny
2022-11-25  1:31 Jakov Smolić
2022-11-25  1:31 Jakov Smolić
2022-11-25  1:31 Jakov Smolić
2022-11-08  4:09 Sam James
2022-10-29 11:03 Jakov Smolić
2022-10-19  8:58 Jakov Smolić
2022-10-19  8:58 Jakov Smolić
2022-10-01  6:19 Arthur Zamarin
2022-09-14 19:18 Arthur Zamarin
2022-08-27 16:03 Sam James
2022-08-27 16:03 Sam James
2022-08-27 15:53 Jakov Smolić
2022-08-27 15:49 Arthur Zamarin
2022-08-27 15:49 Arthur Zamarin
2022-08-22  8:18 Jakov Smolić
2022-06-07  7:04 Jakov Smolić
2022-06-06 14:30 Jakov Smolić
2022-06-05 16:45 Jakov Smolić
2022-06-05 16:21 Jakov Smolić
2022-06-05 15:28 Jakov Smolić
2022-06-05 15:28 Jakov Smolić
2022-06-05 15:28 Jakov Smolić
2022-06-05 14:23 Jakov Smolić
2022-06-05 14:20 Jakov Smolić
2022-06-05 14:20 Jakov Smolić
2022-06-05 13:37 Jakov Smolić
2022-05-25 16:50 Jakov Smolić
2021-07-17 21:30 David Seifert
2021-07-06 23:44 Thomas Deutschmann
2021-05-07 19:49 Thomas Deutschmann
2020-12-22 18:57 Sam James
2020-12-22 18:57 Sam James
2020-12-22 18:57 Sam James
2020-12-22 18:57 Sam James
2020-12-22 18:57 Sam James
2020-12-22 17:08 Thomas Deutschmann
2020-06-14 23:30 Thomas Deutschmann
2020-06-01 19:23 Thomas Deutschmann
2020-06-01 19:23 Thomas Deutschmann
2020-06-01 19:23 Thomas Deutschmann
2020-02-14 15:08 Thomas Deutschmann
2019-12-31  3:17 Thomas Deutschmann
2019-12-31  3:17 Thomas Deutschmann
2019-12-24 15:18 Mikle Kolyada
2019-12-10 10:54 Agostino Sarubbo
2019-12-09 12:10 Agostino Sarubbo
2019-12-09  8:48 Agostino Sarubbo
2019-12-04 13:05 Agostino Sarubbo
2019-12-04  0:56 Aaron Bauman
2019-08-07 19:12 Thomas Deutschmann
2019-02-09 15:37 Thomas Deutschmann
2018-11-26 19:22 Thomas Deutschmann
2018-11-26 19:22 Thomas Deutschmann
2018-11-11 10:09 Mikle Kolyada
2018-10-14  9:14 Sergei Trofimovich
2018-10-14  8:59 Sergei Trofimovich
2018-10-13  6:56 Tobias Klausmann
2018-07-09 15:53 Mikle Kolyada
2018-07-02 10:38 Mart Raudsepp
2018-07-02  0:49 Thomas Deutschmann
2018-02-16 21:51 Michael Weber
2018-02-12 11:11 Patrice Clement
2017-03-02 10:47 Agostino Sarubbo
2017-03-01 13:43 Tobias Klausmann
2017-02-28 23:43 Michael Weber
2017-02-13  0:08 Michael Weber
2016-08-29 14:02 Jeroen Roovers
2016-03-23 16:03 Mike Frysinger
2015-09-01 16:08 Markus Meier
2015-08-16 10:59 Justin Lecher

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=1722093010.b2696e46fd6d35bde4731f057c98a80b8f8a6f90.jsmolic@gentoo \
    --to=jsmolic@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