From f63898d760e94c73cc5edd04031b5d8a3643e766 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Tue, 7 Jun 2022 14:55:09 -0400 Subject: sys-fs/ncdu: upgrade to 2.1.2 --- sys-fs/ncdu/ncdu-2.1.2.ebuild | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 sys-fs/ncdu/ncdu-2.1.2.ebuild (limited to 'sys-fs/ncdu/ncdu-2.1.2.ebuild') diff --git a/sys-fs/ncdu/ncdu-2.1.2.ebuild b/sys-fs/ncdu/ncdu-2.1.2.ebuild new file mode 100644 index 0000000..5a9c093 --- /dev/null +++ b/sys-fs/ncdu/ncdu-2.1.2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +DESCRIPTION="NCurses Disk Usage" +HOMEPAGE="https://dev.yorhel.nl/ncdu/" +SRC_URI="https://dev.yorhel.nl/download/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND="=dev-lang/zig-0.9*" + +DEPEND="sys-libs/ncurses:=[unicode(+)]" + +RDEPEND="${DEPEND}" + +src_compile() { + if [[ -z ${ZIG_FLAGS+x} && "$CFLAGS" != *-march=native* ]]; then + die 'ZIG_FLAGS is unset! note that zig defaults to native cpu. set ZIG_FLAGS="" or ZIG_FLAGS="-mcpu baseline"' + fi + emake PREFIX=${EPREFIX}/usr +} + +src_install() { + emake PREFIX=${ED}/usr install +} -- cgit v1.2.3-54-g00ecf