summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolić <jsmolic@gentoo.org>2023-07-10 10:18:32 +0200
committerJakov Smolić <jsmolic@gentoo.org>2023-07-10 14:18:18 +0200
commitcf6c9ccc04a817dc513e29078c9267ee3b595b02 (patch)
treeab76ffb0f4f1bdd6aad42dd4d7c82071d9e415dc /app-misc
parentdev-libs/libjodycode: add 3.1 (diff)
downloadgentoo-cf6c9ccc04a817dc513e29078c9267ee3b595b02.tar.gz
gentoo-cf6c9ccc04a817dc513e29078c9267ee3b595b02.tar.bz2
gentoo-cf6c9ccc04a817dc513e29078c9267ee3b595b02.zip
app-misc/jdupes: add 1.26.1
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/jdupes/Manifest1
-rw-r--r--app-misc/jdupes/jdupes-1.26.1.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/app-misc/jdupes/Manifest b/app-misc/jdupes/Manifest
index f0aa6e505d8e..346b16cec773 100644
--- a/app-misc/jdupes/Manifest
+++ b/app-misc/jdupes/Manifest
@@ -1,3 +1,4 @@
DIST jdupes-1.21.3.tar.gz 155979 BLAKE2B b7d978aa8cc4574ce3a201e283a1cfccf6751689725f5307b78e47a9f1defd360d58be3ba2f558a6f40e7108a1ea4f0dd3c14d2332d14278c4114d303da3eea6 SHA512 22284adb1650dc44dfc74320799ac68e02e8d31685dd376d5f938d10308d117ae8af39273fbfec73f7e5a22e9685be96c92f0e12d9ebc81f11c255ada60abe83
DIST jdupes-1.23.0.tar.gz 147647 BLAKE2B 10c09c39d54e78cbfa693f94c4305104cb46ae5f835ba4dfa308fcab5f0c920570d821aa48b1434e4fe63e754b6380e00daacc69ad05c33222a44fd05bff9e7e SHA512 27e3021592180e7573727a98290471693d92d98db72ace2a48b0b075f9762a9089338a65f112b93b07b33ecd9eb16f97f183da847e331e3af10627074875f810
DIST jdupes-1.25.2.tar.gz 154491 BLAKE2B 5d155fff6a463078f6baaeff39b560469c053c9f8db1327238cc6a09c9fd8344d1fddf402d794d178c4b96ec34062480184452691b22a63886265f07957d614a SHA512 6436e545842ad9e80917cc3c86afe39df8d536d2994e7a9a8ccc1bdb45ef0c0480b7fff3a8178a91ee47fea0c81b87a33834da322027eac36b1532fddad2960a
+DIST jdupes-1.26.1.tar.gz 168265 BLAKE2B e6c7a7d69a9a67d7550624ddd707a08a6a1a740c32fe1bc3534d53c20586b249303b6de23c0703033db497c3af85714b3e22fd87813c4700669880efa3cc376c SHA512 17ea87dee25a26aa136e3876031bfa47d55506adb38272b8cf2da8a81276134da0cf0b280815c8a717c0e48b911ce5efa95d1eb8dafe5ce109a1573600ae92bb
diff --git a/app-misc/jdupes/jdupes-1.26.1.ebuild b/app-misc/jdupes/jdupes-1.26.1.ebuild
new file mode 100644
index 000000000000..75c356ecb8ea
--- /dev/null
+++ b/app-misc/jdupes/jdupes-1.26.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2021-2023 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"
+
+DEPEND="dev-libs/libjodycode"
+RDEPEND="${DEPEND}"
+
+IUSE="+dedupe 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 hardened 'HARDEN=1' '')
+ )
+ emake ${myconf[@]}
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
+ einstalldocs
+}