summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-fs/ncdu/Manifest4
-rw-r--r--sys-fs/ncdu/ncdu-1.21.ebuild26
-rw-r--r--sys-fs/ncdu/ncdu-2.7.ebuild132
3 files changed, 162 insertions, 0 deletions
diff --git a/sys-fs/ncdu/Manifest b/sys-fs/ncdu/Manifest
index 3609e01cf375..9fbc08e4e0e0 100644
--- a/sys-fs/ncdu/Manifest
+++ b/sys-fs/ncdu/Manifest
@@ -1,6 +1,10 @@
DIST ncdu-1.20.tar.gz 150835 BLAKE2B 0bb6576ecbb3df281c67a48409db2118521760f378defd9c082f732519c9828451b77897ca49e777674ae73a5aac0fd975b94d5a95b1689cd552b5840ac3b5de SHA512 af9a45cc27bb3cdee7fd65236b9b48cb604f9e54208a762ed7b3b18333e07e87a8ae5a4cd0071496e7e382c60a7760734cad1f68fb69423a79fa3f050d2c09bb
DIST ncdu-1.20.tar.gz.asc 833 BLAKE2B 487e3b4b1e83a2211e91307ff1ca1778059cc3f923e04b57bc5d4780d0108589a062861a25bafa58c357ad4495edce814a58eeb24087e06b958d8e23a02bbf22 SHA512 168bcc4255bbb7a576af39422797804726f84134dc342f59abfc825f93c5ee4e9fcaa9e0c18626ee87b96b2d19a7c57beaa8e1b3dc57eff2bd659add18027140
+DIST ncdu-1.21.tar.gz 152622 BLAKE2B e16d79a96533ecc8c5bbcbb32cc6080d61e859a9cf8e0cdf5abed28a9f848a347151fb6ec7c28aff3f3fd0420233883f5fd5c72981322227e22da4b01eebb7b7 SHA512 10ffb2fdacf465a410e8733acc3f2f7f6304998e8e6cb9b4c42b5c6aa6e588ef7d262b72d5d83d8bbc80964fa9850b4b4a9bc9c58224fb41598eeae399771674
+DIST ncdu-1.21.tar.gz.asc 833 BLAKE2B 12751c09235d6c91087141b249c76323627c75adb7d40e7ad0a839a4e25d738567a50f95906e95e1d6e3c820295b124ec1f01714b7718ff4adf5ee2a6d5d2570 SHA512 5051b67bed35ebc84302f121851ecaa17b146a5dccbc96f49966a39fd404d777450bf85a653be47ab01d8e675d3a821fbd9c8f25bb934abf481faa57cc8b1873
DIST ncdu-2.5.tar.gz 56019 BLAKE2B c10fb19f87c3d26334038ee96d857e547f9f6881518a675d9777a6c46cf456748861d84df190c14d6d2582f5ad3998ecdf9d00f0969c996221c0d1d9787570a3 SHA512 f4d499a3ab98a56667c75554c77951e4a42f5acdc1353875c108b0da469665777564405b8fcea5a731de473afacfda9f2c8701ba0ba989de1260119c64d7a9f8
DIST ncdu-2.5.tar.gz.asc 833 BLAKE2B 86babaf8720898a5bd83a2cc290deb2f0a8041087b9f0afddd2306766b82877bbf51f45ac3622761f231359b2e5f60b8d6c5479963aaf7a6abdf67d24fb18496 SHA512 a28751371f7e7a033379fb5f5dc885c69e716f8b6654b8ee9e5eb023a22b67ca99e3ee813ddc2e335d6e8db9bd5a9a19359910a1b8aad13132f7a8bed1d67d78
DIST ncdu-2.6.tar.gz 72088 BLAKE2B 21d45bb428a56a040083165b9d467a526cd83eaa05b6f88b90a0b5dac0fa70dc4fd7e37ff52debc619b06103a95dad8ddc26fc9e77b6118eeb39aa97bfa0fd0e SHA512 e94612a56db3831d993d6ffd8c69a4cc2418ebf4b9a810e28444c103225ccc1f53ae31e448b94d40ccf2ab7d3a0af6e8ee02bc700123aca872b3bb35108e3d14
DIST ncdu-2.6.tar.gz.asc 833 BLAKE2B 110bbb6e2db221316004d4491f174c40cdf8fca44e91290f7ea87fc6788de20c3fd6d90bd4b55e4e720736514509af87bcc5b6533b37a2889e20c023939776e6 SHA512 478afe4a51244bc11dfbea2c12fb217392186c1efe1403b44309e0f0e3d431393173282ebae32ceeca32f4ec3a93f35ca19ac962728cd3d7f06f26bccd56169b
+DIST ncdu-2.7.tar.gz 71122 BLAKE2B 10363968820da2dd3cb17c73eb3cba877ca229b896f44bbdd2b8b04c9e3d13aec8476c1968fc5c1841c856e51a1cba64f840e3320e5655bb2eb2bf7258a88f0e SHA512 58d29583f09f6707b2a903fa37b0f263969b32a289e1f8f442044edb1a61351c7ac841dccebf92af227b35a9e6a90fa298a84dad607ad084f2a5883196935229
+DIST ncdu-2.7.tar.gz.asc 833 BLAKE2B d0dbf91b359bdfaca412601933e0da51cff8d7105df2e0d8767a0231c1fe3f7b4dfb0174b9744a68da1b3726884c77a13a162a21a4006b1d7de8c0917b133b66 SHA512 9f1c8a4b6b316d55a143805da159f22a4facf147ecf805130bcbdf68c83a5b8b0586b231780e7eedd16b3b5587332a06a81c95bb0d47cdd73c44ec3fe867ced8
diff --git a/sys-fs/ncdu/ncdu-1.21.ebuild b/sys-fs/ncdu/ncdu-1.21.ebuild
new file mode 100644
index 000000000000..3e128d3937e4
--- /dev/null
+++ b/sys-fs/ncdu/ncdu-1.21.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit verify-sig
+
+DESCRIPTION="NCurses Disk Usage"
+HOMEPAGE="https://dev.yorhel.nl/ncdu https://code.blicky.net/yorhel/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="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
+
+DEPEND="sys-libs/ncurses:=[unicode(+)]"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ verify-sig? ( sec-keys/openpgp-keys-yorhel )
+"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/yoranheling.asc
diff --git a/sys-fs/ncdu/ncdu-2.7.ebuild b/sys-fs/ncdu/ncdu-2.7.ebuild
new file mode 100644
index 000000000000..82b789c71db2
--- /dev/null
+++ b/sys-fs/ncdu/ncdu-2.7.ebuild
@@ -0,0 +1,132 @@
+# 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 https://code.blicky.net/yorhel/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.13"
+EZIG_MAX_EXCLUSIVE="0.14"
+
+DEPEND="
+ app-arch/zstd
+ 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"
+
+DOCS=( "README.md" "ChangeLog" )
+
+# 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 --release=fast -Dstrip
+}
+
+src_install() {
+ emake PREFIX="${ED}"/usr install
+ einstalldocs
+}