You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/jdupes/jdupes-1.20.1.ebuild

38 lines
776 B

# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Identify duplicate files on the filesystem"
HOMEPAGE="https://github.com/jbruchon/jdupes"
if [[ "${PV}" == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/jbruchon/jdupes.git"
inherit git-r3
else
SRC_URI="https://github.com/jbruchon/jdupes/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="MIT"
SLOT="0"
# missing test.sh script
# https://github.com/jbruchon/jdupes/issues/191
RESTRICT="test"
src_prepare() {
sed -i -e '/PREFIX/s/=/?=/' Makefile || die
default
}
src_compile() {
tc-export CC
default
}
src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
einstalldocs
}