commit:     e88d55503a8be636da6b28329821dc4f186abff7
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 13 10:50:06 2021 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Jan 13 10:50:06 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e88d5550

app-misc/fdupes: Synced live ebuild

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 app-misc/fdupes/fdupes-9999.ebuild             | 43 +++++++++++++++-----------
 app-misc/fdupes/files/fdupes-9999-gentoo.patch | 14 ---------
 2 files changed, 25 insertions(+), 32 deletions(-)

diff --git a/app-misc/fdupes/fdupes-9999.ebuild 
b/app-misc/fdupes/fdupes-9999.ebuild
index f27d34c2d82..9fc8d059786 100644
--- a/app-misc/fdupes/fdupes-9999.ebuild
+++ b/app-misc/fdupes/fdupes-9999.ebuild
@@ -1,34 +1,41 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-inherit flag-o-matic git-r3 toolchain-funcs
-
-MY_P="${PN}-${PV/_pre/-PR}"
+inherit toolchain-funcs
 
 DESCRIPTION="Identify/delete duplicate files residing within specified 
directories"
 HOMEPAGE="https://github.com/adrianlopezroche/fdupes";
-EGIT_REPO_URI="https://github.com/adrianlopezroche/fdupes.git";
-
+if [[ "${PV}" == *9999 ]] ; then
+       inherit autotools git-r3
+       EGIT_REPO_URI="https://github.com/adrianlopezroche/fdupes.git";
+else
+       
SRC_URI="https://github.com/adrianlopezroche/${PN}/releases/download/v${PV}/${P}.tar.gz";
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
+fi
 LICENSE="MIT"
 SLOT="0"
+IUSE="+ncurses"
 
-KEYWORDS=""
-SRC_URI=""
-
-S="${WORKDIR}/${MY_P}"
-
-PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+RDEPEND="
+       dev-libs/libpcre2[pcre32]
+       ncurses? ( sys-libs/ncurses:0= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
 
 DOCS=( CHANGES CONTRIBUTORS README )
 
+src_prepare() {
+       default
+       [[ "${PV}" == *9999 ]] && eautoreconf
+}
+
 src_configure() {
-       append-lfs-flags
-       tc-export CC
+       econf $(use_with ncurses)
 }
 
-src_install() {
-       emake PREFIX="/usr" DESTDIR="${D}" install
-       einstalldocs
+src_compile() {
+       emake CC=$(tc-getCC)
 }

diff --git a/app-misc/fdupes/files/fdupes-9999-gentoo.patch 
b/app-misc/fdupes/files/fdupes-9999-gentoo.patch
deleted file mode 100644
index 4c6edda50e0..00000000000
--- a/app-misc/fdupes/files/fdupes-9999-gentoo.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- a/Makefile
-+++ b/Makefile
-@@ -71,9 +71,9 @@
- # Make Configuration
- #
- CC ?= gcc
--COMPILER_OPTIONS = -Wall -O -g
-+COMPILER_OPTIONS = -Wall
- 
--CFLAGS= $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(OMIT_GETOPT_LONG) 
$(FILEOFFSET_64BIT)
-+CFLAGS += $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" 
$(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT)
- 
- INSTALL_PROGRAM = $(INSTALL) -c -m 0755
- INSTALL_DATA    = $(INSTALL) -c -m 0644

Reply via email to