diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-22 20:28:19 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-22 20:28:19 +0000 |
commit | abaa75b10f899ada8dd05b23cc03205064394bc6 (patch) | |
tree | eca3dd248b73b92013cba00a0fcc1edf2696e19a /app-misc/fdupes/fdupes-9999.ebuild | |
parent | 24fd814c326e282c4321965c31f341dad77e270d (diff) |
gentoo resync : 22.01.2021
Diffstat (limited to 'app-misc/fdupes/fdupes-9999.ebuild')
-rw-r--r-- | app-misc/fdupes/fdupes-9999.ebuild | 43 |
1 files changed, 25 insertions, 18 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) } |