app-misc/jdupes - 1.31.1 (gentoo)

Search

Package Information

Description:
Identify duplicate files on the filesystem
Homepage:
https://codeberg.org/jbruchon/jdupes

Ebuild Details

Version EAPI Keywords Slot
1.31.1 8 ~amd64 ~arm64 ~riscv 0
View Raw Ebuild
# Copyright 2021-2026 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://codeberg.org/jbruchon/jdupes"
if [[ "${PV}" == *9999 ]] ; then
	EGIT_REPO_URI="https://codeberg.org/jbruchon/jdupes.git"
	inherit git-r3
else
	SRC_URI="https://codeberg.org/jbruchon/jdupes/archive/v${PV}.tar.gz -> ${P}.tar.gz"
	S="${WORKDIR}"/${PN}
	KEYWORDS="~amd64 ~arm64 ~riscv"
fi
LICENSE="MIT"
SLOT="0"

# Please keep a careful eye on the minimum libjoycode version! (Just pick
# latest released at the time if necessary.)
DEPEND=">=dev-libs/libjodycode-4.1.2"
RDEPEND="${DEPEND}"

IUSE="+dedupe hardened"

# tests exists, but are empty (dropped by upstream)
RESTRICT="test"

src_prepare() {
	sed -i -e '/PREFIX/s/=/?=/' Makefile || die
	default
}

src_compile() {
	tc-export CC
	local myconf=(
		$(usex dedupe 'ENABLE_DEDUPE=1' '')
		$(usex hardened 'HARDEN=1' '')
	)
	emake ${myconf[@]}
}

src_install() {
	emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
	einstalldocs
}

USE Flags

dedupe
Default: Enabled (+)

Dependencies

DEPEND

>=dev-libs/libjodycode-4.1.2

RDEPEND

>=dev-libs/libjodycode-4.1.2

Manifest for 1.31.1

Type File Size Source URLs
DIST jdupes-1.31.1.tar.gz 178534 bytes https://codeberg.org/jbruchon/jdupes/archive/v1.31.1.tar.gz