diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-12-30 01:11:30 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-12-30 01:11:30 +0000 |
commit | 76dfef0cec9170000357d2f354e412daf48941fc (patch) | |
tree | 56647120c0ee20ab3494475c86722034cd194b02 /app-backup/cpdup/cpdup-1.18.ebuild | |
parent | ccf84bcd604130256d1377cd58f0a634ae6ee20f (diff) |
gentoo resync : 30.12.2017
Diffstat (limited to 'app-backup/cpdup/cpdup-1.18.ebuild')
-rw-r--r-- | app-backup/cpdup/cpdup-1.18.ebuild | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/app-backup/cpdup/cpdup-1.18.ebuild b/app-backup/cpdup/cpdup-1.18.ebuild index b3cd0a45df5e..cf88a6bfd530 100644 --- a/app-backup/cpdup/cpdup-1.18.ebuild +++ b/app-backup/cpdup/cpdup-1.18.ebuild @@ -1,7 +1,9 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -inherit eutils toolchain-funcs +EAPI=6 + +inherit toolchain-funcs DESCRIPTION="A comprehensive filesystem mirroring program" HOMEPAGE="http://apollo.backplane.com/FreeSrc/" @@ -16,30 +18,30 @@ DEPEND="" RDEPEND="" S="${WORKDIR}/${PN}" +PATCHES=( "${FILESDIR}"/${PN}-1.11-unused.patch ) -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}"/${PN}-1.11-unused.patch +src_prepare() { + default if use userland_GNU; then - cp "${FILESDIR}"/Makefile.linux Makefile + cp "${FILESDIR}"/Makefile.linux Makefile || die # bits/stat.h has __unused too - sed -i 's/__unused/__cpdup_unused/' *.c - echo "#define strlcpy(a,b,c) strncpy(a,b,c)" >> cpdup.h + sed -i 's/__unused/__cpdup_unused/' *.c || die + echo "#define strlcpy(a,b,c) strncpy(a,b,c)" >> cpdup.h || die fi } -src_compile() { +src_configure() { tc-export CC - use threads || MAKEOPTS="$MAKEOPTS NOPTHREADS=1" - MAKE=make emake || die "emake failed" + use threads || EXTRA_MAKE_OPTS="NOPTHREADS=1" +} + +src_compile() { + MAKE=make emake ${EXTRA_MAKE_OPTS} } src_install() { - dobin cpdup || die "cannot install cpdup" + dobin cpdup doman cpdup.1 - docinto scripts - dodoc scripts/* + dodoc -r scripts } |