commit:     3e0dea7c1ff6940d393d2ab76ada8a6d1b8a354e
Author:     Eric Joldasov <bratishkaerik <AT> landless-city <DOT> net>
AuthorDate: Mon May 13 11:26:51 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec 15 09:47:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e0dea7c

sys-fs/ncdu: add 2.7-r1

Now uses `zig.eclass`.

Signed-off-by: Eric Joldasov <bratishkaerik <AT> landless-city.net>
Closes: https://github.com/gentoo/gentoo/pull/37283
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-fs/ncdu/ncdu-2.7-r1.ebuild | 52 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/sys-fs/ncdu/ncdu-2.7-r1.ebuild b/sys-fs/ncdu/ncdu-2.7-r1.ebuild
new file mode 100644
index 000000000000..96b32f45abb3
--- /dev/null
+++ b/sys-fs/ncdu/ncdu-2.7-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/yoranheling.asc
+
+ZIG_SLOT="0.13"
+inherit verify-sig zig
+
+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"
+
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-yorhel )"
+DEPEND="
+       app-arch/zstd:=
+       sys-libs/ncurses:=[unicode(+)]
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( "README.md" "ChangeLog" )
+
+src_unpack() {
+       if use verify-sig; then
+               verify-sig_verify_detached "${DISTDIR}"/${P}.tar.gz{,.asc}
+       fi
+       zig_src_unpack
+}
+
+src_configure() {
+       local my_zbs_args=(
+               -Dpie=true
+               # Upstream recommends this default:
+               --release=fast
+       )
+
+       zig_src_configure
+}
+
+src_install() {
+       zig_src_install
+
+       doman ncdu.1
+}

Reply via email to