commit:     83f3c557ad05e226b464999dffe7abd61ebd7b33
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  4 15:34:57 2022 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Tue Oct  4 15:42:23 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83f3c557

app-misc/jdupes: add 1.21.0

Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 app-misc/jdupes/Manifest             |  1 +
 app-misc/jdupes/jdupes-1.21.0.ebuild | 44 ++++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)

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
+}

Reply via email to