# Copyright 1999-2024 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/ncdu-${PV}.tar.gz"
S="${WORKDIR}/ncdu-${PV}"

LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"

DEPEND="
	sys-libs/ncurses:=[unicode(+)]
"
RDEPEND="
	${DEPEND}
"

src_install() {
	exeinto /usr/bin
	newexe ncdu ncdu-c

	newman ncdu.1 ncdu-c.1

	einstalldocs
}