diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2021-01-13 11:50:06 +0100 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2021-01-13 11:50:06 +0100 |
commit | e88d55503a8be636da6b28329821dc4f186abff7 (patch) | |
tree | 840e0437dd0081ec9ab3cdc823ee8934b70efb4d /app-misc | |
parent | app-misc/fdupes: Bump to version 2.1.2 (diff) | |
download | gentoo-e88d55503a8be636da6b28329821dc4f186abff7.tar.gz gentoo-e88d55503a8be636da6b28329821dc4f186abff7.tar.bz2 gentoo-e88d55503a8be636da6b28329821dc4f186abff7.zip |
app-misc/fdupes: Synced live ebuild
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/fdupes/fdupes-9999.ebuild | 43 | ||||
-rw-r--r-- | 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 f27d34c2d82a..9fc8d0597860 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 4c6edda50e04..000000000000 --- 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 |