1 |
commit: 4bc2710cf60db9c37eb2e0ffa1c9b92103e64fa7 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 28 14:03:32 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 28 15:06:51 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bc2710c |
7 |
|
8 |
app-backup/dirvish: Port to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
app-backup/dirvish/dirvish-1.2.1.ebuild | 25 ++++++++++++++++--------- |
13 |
1 file changed, 16 insertions(+), 9 deletions(-) |
14 |
|
15 |
diff --git a/app-backup/dirvish/dirvish-1.2.1.ebuild b/app-backup/dirvish/dirvish-1.2.1.ebuild |
16 |
index 57629ae4757..13f3e8b769a 100644 |
17 |
--- a/app-backup/dirvish/dirvish-1.2.1.ebuild |
18 |
+++ b/app-backup/dirvish/dirvish-1.2.1.ebuild |
19 |
@@ -1,6 +1,8 @@ |
20 |
-# Copyright 1999-2016 Gentoo Foundation |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
+EAPI=6 |
25 |
+ |
26 |
DESCRIPTION="Dirvish is a fast, disk based, rotating network backup system" |
27 |
HOMEPAGE="http://www.dirvish.org/" |
28 |
SRC_URI="http://dirvish.org/${P}.tgz" |
29 |
@@ -15,24 +17,29 @@ RDEPEND="dev-perl/Time-ParseDate |
30 |
dev-perl/Time-Period |
31 |
>=net-misc/rsync-2.5.7" |
32 |
|
33 |
-src_compile() { |
34 |
- for f in dirvish dirvish-runall dirvish-expire dirvish-locate ; do |
35 |
- cat > $f <<-EOF |
36 |
+src_prepare() { |
37 |
+ default |
38 |
+ |
39 |
+ local f |
40 |
+ for f in dirvish dirvish-runall dirvish-expire dirvish-locate; do |
41 |
+ cat > $f <<-EOF || die |
42 |
#!/usr/bin/perl |
43 |
|
44 |
\$CONFDIR = "/etc/dirvish"; |
45 |
|
46 |
EOF |
47 |
- cat $f.pl >> $f |
48 |
- cat loadconfig.pl >> $f |
49 |
+ cat $f.pl >> $f || die |
50 |
+ cat loadconfig.pl >> $f || die |
51 |
done |
52 |
} |
53 |
|
54 |
src_install() { |
55 |
dosbin dirvish dirvish-runall dirvish-expire dirvish-locate |
56 |
doman dirvish.8 dirvish-runall.8 dirvish-expire.8 dirvish-locate.8 dirvish.conf.5 |
57 |
- dohtml FAQ.html INSTALL RELEASE.html TODO.html |
58 |
- dodoc CHANGELOG |
59 |
|
60 |
- insinto /etc/dirvish; doins "${FILESDIR}"/master.conf.example |
61 |
+ HTML_DOCS=( {FAQ,RELEASE,TODO}.html ) |
62 |
+ einstalldocs |
63 |
+ |
64 |
+ insinto /etc/dirvish |
65 |
+ doins "${FILESDIR}"/master.conf.example |
66 |
} |