app-misc/jdupes: fix ebuild

Closes: https://bugs.gentoo.org/807961
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2021-08-13 23:59:41 +05:00
parent d7cca639d8
commit d76d615441
3 changed files with 27 additions and 13 deletions

View File

@@ -1 +1 @@
DIST v1.20.0.tar.gz 93809 BLAKE2B cce6ca06794ee3af9523e3c86550ff2b49a5f42a13278bd61c99099b4c2cab1a392bc973c44593acb23b7e8f99d4f23518f526244182a0d9d3b4084e80cc1015 SHA512 62bb78a902e77f0c9acce93c7c139fc2aaa5911aa85322a372dd0e6b375ee5c4992e91b821fa3f9eb407820657f57591303c9bc14a9fe453d9a4c5651caf05ff
DIST jdupes-1.20.0.tar.gz 93809 BLAKE2B cce6ca06794ee3af9523e3c86550ff2b49a5f42a13278bd61c99099b4c2cab1a392bc973c44593acb23b7e8f99d4f23518f526244182a0d9d3b4084e80cc1015 SHA512 62bb78a902e77f0c9acce93c7c139fc2aaa5911aa85322a372dd0e6b375ee5c4992e91b821fa3f9eb407820657f57591303c9bc14a9fe453d9a4c5651caf05ff

View File

@@ -3,26 +3,32 @@
EAPI=7
#inherit toolchain-funcs
inherit toolchain-funcs
DESCRIPTION="Identify and manipulate duplicate files"
HOMEPAGE="https://www.jodybruchon.com/software/#jdupes"
SRC_URI="https://github.com/jbruchon/jdupes/archive/refs/tags/v1.20.0.tar.gz"
HOMEPAGE="https://www.jodybruchon.com/software/#jdupes
https://github.com/jbruchon/jdupes"
SRC_URI="https://github.com/jbruchon/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
IUSE="low-memory"
RDEPEND=""
# ./test.sh: No such file or directory
RESTRICT="test"
DOCS=( CHANGES README.md README.stupid_dupes )
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
#DOCS=( CHANGES CONTRIBUTORS README )
src_configure() {
# econf
sed -in 's/local//' Makefile
tc-export CC
}
src_compile() {
emake
emake ENABLE_DEDUPE=1 HARDEN=1 LOW_MEMORY=$(usex low-memory 1 0)
}
src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
einstalldocs
}

View File

@@ -6,10 +6,18 @@
<name>Alex Holcomb</name>
</maintainer>
<upstream>
<remote-id type="github">jbruchon/jdupes</remote-id>
<bugs-to>https://github.com/jbruchon/jdupes/issues</bugs-to>
</upstream>
<longdescription>
jdupes is a program for finding and dealing with duplicate files. It was forked from fdupes, and intends to accomplish the same result while adding features and being noticeably faster.
jdupes is a program for finding and dealing with duplicate
files. It was forked from fdupes, and intends to accomplish the
same result while adding features and being noticeably faster.
</longdescription>
<use>
<flag name="low-memory">
Build for low memory usage at the expense of speed and features
</flag>
</use>
</pkgmetadata>