1 |
commit: 11e941968974caa61d31f9680c448b61063d8beb |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 28 14:43:42 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 28 15:07:11 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11e94196 |
7 |
|
8 |
app-backup/ccollect: Port to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
app-backup/ccollect/ccollect-0.8.ebuild | 53 +++++++++++++++++---------------- |
13 |
1 file changed, 28 insertions(+), 25 deletions(-) |
14 |
|
15 |
diff --git a/app-backup/ccollect/ccollect-0.8.ebuild b/app-backup/ccollect/ccollect-0.8.ebuild |
16 |
index 8cd9780edb4..b5a9a055b4a 100644 |
17 |
--- a/app-backup/ccollect/ccollect-0.8.ebuild |
18 |
+++ b/app-backup/ccollect/ccollect-0.8.ebuild |
19 |
@@ -1,7 +1,7 @@ |
20 |
# Copyright 1999-2017 Gentoo Foundation |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
|
23 |
-EAPI="2" |
24 |
+EAPI=6 |
25 |
|
26 |
DESCRIPTION="Pseudo incremental backup with different exclude lists using hardlinks and rsync" |
27 |
HOMEPAGE="http://www.nico.schottelius.org/software/ccollect/" |
28 |
@@ -12,64 +12,67 @@ SLOT="0" |
29 |
KEYWORDS="amd64 hppa ppc ~sparc x86" |
30 |
IUSE="doc examples" |
31 |
|
32 |
-DEPEND="doc? ( >=app-text/asciidoc-8.1.0 |
33 |
+DEPEND=" |
34 |
+ doc? ( |
35 |
+ >=app-text/asciidoc-8.1.0 |
36 |
app-text/docbook-xsl-stylesheets |
37 |
app-text/docbook-xml-dtd:4.2 |
38 |
- dev-libs/libxslt )" |
39 |
+ dev-libs/libxslt |
40 |
+ )" |
41 |
RDEPEND="net-misc/rsync" |
42 |
|
43 |
# tests need ssh-access |
44 |
RESTRICT="test" |
45 |
|
46 |
src_compile() { |
47 |
- if use doc; then |
48 |
- emake XSL=/usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl documentation || die "building docs failed" |
49 |
- fi |
50 |
+ use doc && emake XSL=/usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl documentation |
51 |
} |
52 |
|
53 |
src_install() { |
54 |
dobin ccollect.sh |
55 |
dosym ccollect.sh /usr/bin/ccollect |
56 |
|
57 |
- local tools="add_source analyse_logs archive_config check_config delete_source list_intervals logwrapper stats" |
58 |
- for t in ${tools} ; do |
59 |
- newbin tools/ccollect_${t}.sh ccollect_${t} |
60 |
+ local i |
61 |
+ for i in add_source analyse_logs archive_config check_config \ |
62 |
+ delete_source list_intervals logwrapper stats; do |
63 |
+ newbin tools/ccollect_${i}.sh ccollect_${i} |
64 |
done |
65 |
|
66 |
insinto /usr/share/${PN}/tools |
67 |
doins tools/config-pre* tools/{gnu-du-backup-size-compare,report_success}.sh |
68 |
|
69 |
- dodoc CREDITS README |
70 |
- pushd doc/changes |
71 |
- for n in * ; do |
72 |
- newdoc ${n} NEWS-${n} |
73 |
- done |
74 |
- popd |
75 |
+ pushd doc/changes >/dev/null || die |
76 |
+ for i in * ; do |
77 |
+ newdoc ${i} NEWS-${i} |
78 |
+ done |
79 |
+ popd >/dev/null || die |
80 |
|
81 |
if use doc; then |
82 |
- dohtml doc/*.htm doc/*.html |
83 |
- dohtml -r doc/man |
84 |
doman doc/man/*.1 |
85 |
+ |
86 |
+ find doc/ \( -iname '*.1' -o -iname '*.text' \) -delete || die |
87 |
+ HTML_DOCS=( doc/{*.htm{,l},man} ) |
88 |
fi |
89 |
+ einstalldocs |
90 |
|
91 |
if use examples ; then |
92 |
- # dodoc is not recursive. So do a workaround. |
93 |
- insinto /usr/share/doc/${PF}/examples/ |
94 |
- doins -r conf/* |
95 |
+ docinto examples |
96 |
+ dodoc -r conf/. |
97 |
fi |
98 |
} |
99 |
|
100 |
pkg_postinst() { |
101 |
ewarn "If you're upgrading from 0.6.x or less, you'll have to" |
102 |
ewarn "upgrade your existing configuration as follows:" |
103 |
- ewarn "1. Make the scripts in /usr/share/ccollect/scripts executable" |
104 |
- ewarn "2. Run all config-pre-\$VER-to-\$VER.sh in /usr/share/ccollect/scripts" |
105 |
+ ewarn "1. Make the scripts in ${EROOT%/}/usr/share/ccollect/scripts executable" |
106 |
+ ewarn "2. Run all config-pre-\$VER-to-\$VER.sh in ${EROOT%/}/usr/share/ccollect/scripts" |
107 |
ewarn " ascending order, where \$VER is greater or equal than the version" |
108 |
ewarn " you upgraded from." |
109 |
ewarn "Example:" |
110 |
ewarn " You upgraded from 0.5, thus you have to run:" |
111 |
- ewarn " /usr/share/ccollect/tools/config-pre-0.6-to-0.6.sh" |
112 |
- ewarn " /usr/share/ccollect/tools/config-pre-0.7-to-0.7.sh" |
113 |
- elog "Please note that many tools are now installed directly to /usr/bin" |
114 |
+ ewarn " ${EROOT%/}/usr/share/ccollect/tools/config-pre-0.6-to-0.6.sh" |
115 |
+ ewarn " ${EROOT%/}/usr/share/ccollect/tools/config-pre-0.7-to-0.7.sh" |
116 |
+ |
117 |
+ elog "Please note that many tools are now installed directly to ${EROOT%/}/usr/bin" |
118 |
elog "as recommended by upstream." |
119 |
} |