summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolić <jsmolic@gentoo.org>2022-10-04 17:34:57 +0200
committerJakov Smolić <jsmolic@gentoo.org>2022-10-04 17:42:23 +0200
commit83f3c557ad05e226b464999dffe7abd61ebd7b33 (patch)
tree333e048652c2fb7a6e593e7d79d754dbcaf2a30c /app-misc/jdupes
parentdev-db/sqlite: add 3.39.4 (diff)
downloadgentoo-83f3c557ad05e226b464999dffe7abd61ebd7b33.tar.gz
gentoo-83f3c557ad05e226b464999dffe7abd61ebd7b33.tar.bz2
gentoo-83f3c557ad05e226b464999dffe7abd61ebd7b33.zip
app-misc/jdupes: add 1.21.0
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'app-misc/jdupes')
-rw-r--r--app-misc/jdupes/Manifest1
-rw-r--r--app-misc/jdupes/jdupes-1.21.0.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/app-misc/jdupes/Manifest b/app-misc/jdupes/Manifest
index 0dbb6f7aa4d4..e1218c52a0fb 100644
--- a/app-misc/jdupes/Manifest
+++ b/app-misc/jdupes/Manifest
@@ -1 +1,2 @@
DIST jdupes-1.20.2.tar.gz 94319 BLAKE2B 1c24c0e4176b2be56c4d1a7a780a7f2aaa080d5527ef2e96febd230ea18abe016fca2769e3c72d1b2a295fa663ff69f8dc531d3f728ac00858d5f7d4ff6949bd SHA512 21deb839d4f7e072ce08bacc6b595ac9ccd4ac6fac538d0aab69a4c12ac3d3bb5c98cd03eab9415e991ec9cdfaec7548656470e85c148528f4890b21f7223714
+DIST jdupes-1.21.0.tar.gz 96407 BLAKE2B e1c770826654b7db058b1f311f73cb00f3ef71aa99a71ebd192a73f4f420c5cef8b979af96081c826f7c2b0487710afc6db15df921a9a6dba3816641acab545a SHA512 1671e33175bba16499f5e8a82a1e99e63fd763eb9b195c1e11117e65efbf7a27156b160b86dde6f9d538d6e9690f50e49f8387c4992171f4467c08a866b7d554
diff --git a/app-misc/jdupes/jdupes-1.21.0.ebuild b/app-misc/jdupes/jdupes-1.21.0.ebuild
new file mode 100644
index 000000000000..a7b4d25824fd
--- /dev/null
+++ b/app-misc/jdupes/jdupes-1.21.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2021-2022 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"
+
+IUSE="+dedupe lowmem hardened"
+
+# 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
+ local myconf=(
+ $(usex dedupe 'ENABLE_DEDUPE=1' '')
+ $(usex lowmem 'LOW_MEMORY=1' '')
+ $(usex hardened 'HARDEN=1' '')
+ )
+ emake ${myconf[@]}
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
+ einstalldocs
+}