1 |
commit: 588a2e2ba157bd3a41c5855a2de4a463bc623a51 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 28 14:25:43 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 28 15:07:04 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=588a2e2b |
7 |
|
8 |
app-backup/cpdup: Port to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
app-backup/cpdup/cpdup-1.18.ebuild | 34 ++++++++++++++------------ |
13 |
app-backup/cpdup/files/cpdup-1.11-unused.patch | 4 +-- |
14 |
2 files changed, 20 insertions(+), 18 deletions(-) |
15 |
|
16 |
diff --git a/app-backup/cpdup/cpdup-1.18.ebuild b/app-backup/cpdup/cpdup-1.18.ebuild |
17 |
index b3cd0a45df5..cf88a6bfd53 100644 |
18 |
--- a/app-backup/cpdup/cpdup-1.18.ebuild |
19 |
+++ b/app-backup/cpdup/cpdup-1.18.ebuild |
20 |
@@ -1,7 +1,9 @@ |
21 |
-# Copyright 1999-2014 Gentoo Foundation |
22 |
+# Copyright 1999-2017 Gentoo Foundation |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-inherit eutils toolchain-funcs |
26 |
+EAPI=6 |
27 |
+ |
28 |
+inherit toolchain-funcs |
29 |
|
30 |
DESCRIPTION="A comprehensive filesystem mirroring program" |
31 |
HOMEPAGE="http://apollo.backplane.com/FreeSrc/" |
32 |
@@ -16,30 +18,30 @@ DEPEND="" |
33 |
RDEPEND="" |
34 |
|
35 |
S="${WORKDIR}/${PN}" |
36 |
+PATCHES=( "${FILESDIR}"/${PN}-1.11-unused.patch ) |
37 |
|
38 |
-src_unpack() { |
39 |
- unpack ${A} |
40 |
- cd "${S}" |
41 |
- |
42 |
- epatch "${FILESDIR}"/${PN}-1.11-unused.patch |
43 |
+src_prepare() { |
44 |
+ default |
45 |
|
46 |
if use userland_GNU; then |
47 |
- cp "${FILESDIR}"/Makefile.linux Makefile |
48 |
+ cp "${FILESDIR}"/Makefile.linux Makefile || die |
49 |
# bits/stat.h has __unused too |
50 |
- sed -i 's/__unused/__cpdup_unused/' *.c |
51 |
- echo "#define strlcpy(a,b,c) strncpy(a,b,c)" >> cpdup.h |
52 |
+ sed -i 's/__unused/__cpdup_unused/' *.c || die |
53 |
+ echo "#define strlcpy(a,b,c) strncpy(a,b,c)" >> cpdup.h || die |
54 |
fi |
55 |
} |
56 |
|
57 |
-src_compile() { |
58 |
+src_configure() { |
59 |
tc-export CC |
60 |
- use threads || MAKEOPTS="$MAKEOPTS NOPTHREADS=1" |
61 |
- MAKE=make emake || die "emake failed" |
62 |
+ use threads || EXTRA_MAKE_OPTS="NOPTHREADS=1" |
63 |
+} |
64 |
+ |
65 |
+src_compile() { |
66 |
+ MAKE=make emake ${EXTRA_MAKE_OPTS} |
67 |
} |
68 |
|
69 |
src_install() { |
70 |
- dobin cpdup || die "cannot install cpdup" |
71 |
+ dobin cpdup |
72 |
doman cpdup.1 |
73 |
- docinto scripts |
74 |
- dodoc scripts/* |
75 |
+ dodoc -r scripts |
76 |
} |
77 |
|
78 |
diff --git a/app-backup/cpdup/files/cpdup-1.11-unused.patch b/app-backup/cpdup/files/cpdup-1.11-unused.patch |
79 |
index 1757cb441ad..5544afbeddf 100644 |
80 |
--- a/app-backup/cpdup/files/cpdup-1.11-unused.patch |
81 |
+++ b/app-backup/cpdup/files/cpdup-1.11-unused.patch |
82 |
@@ -1,5 +1,5 @@ |
83 |
---- cpdup.c.orig 2009-02-05 12:22:10.000000000 +0100 |
84 |
-+++ cpdup.c 2009-02-05 12:23:23.000000000 +0100 |
85 |
+--- a/cpdup.c |
86 |
++++ b/cpdup.c |
87 |
@@ -1543,7 +1543,11 @@ |
88 |
*/ |