1 |
commit: acefc0d43fdb9104de9ad35c3933c3c691ed7a16 |
2 |
Author: Paul Healy <lmiphay <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Oct 30 13:43:28 2021 +0000 |
4 |
Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 30 17:58:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acefc0d4 |
7 |
|
8 |
app-backup/pdumpfs: bump to EAPI 8 |
9 |
|
10 |
Replace epatch, dohtml |
11 |
Bump the minimum ruby version to >=ruby-2.7.4 |
12 |
|
13 |
Bug: https://bugs.gentoo.org/819687 |
14 |
Signed-off-by: Paul Healy <lmiphay <AT> gmail.com> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/22764 |
16 |
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> |
17 |
|
18 |
app-backup/pdumpfs/files/pdumpfs-in-r3.patch | 40 +++++++++++++++++++++++ |
19 |
app-backup/pdumpfs/files/pdumpfs-test-r3.patch | 12 +++++++ |
20 |
app-backup/pdumpfs/pdumpfs-1.3-r3.ebuild | 44 ++++++++++++++++++++++++++ |
21 |
3 files changed, 96 insertions(+) |
22 |
|
23 |
diff --git a/app-backup/pdumpfs/files/pdumpfs-in-r3.patch b/app-backup/pdumpfs/files/pdumpfs-in-r3.patch |
24 |
new file mode 100644 |
25 |
index 00000000000..b00f9bed575 |
26 |
--- /dev/null |
27 |
+++ b/app-backup/pdumpfs/files/pdumpfs-in-r3.patch |
28 |
@@ -0,0 +1,40 @@ |
29 |
+patch by proxy maintainer, P. Healy, April 2015 |
30 |
+# Bug 509960 |
31 |
+--- a/pdumpfs.in_orig 2004-12-21 02:43:12.000000000 +0000 |
32 |
++++ b/pdumpfs.in 2015-04-01 10:58:22.671131947 +0100 |
33 |
+@@ -48,7 +48,7 @@ |
34 |
+ # |
35 |
+ |
36 |
+ require 'find' |
37 |
+-require 'ftools' |
38 |
++require 'fileutils' |
39 |
+ require 'getoptlong' |
40 |
+ require 'date' |
41 |
+ |
42 |
+@@ -868,7 +868,7 @@ |
43 |
+ today = File.join(dest, datedir(start_time), base) |
44 |
+ |
45 |
+ File.umask(0077) |
46 |
+- File.mkpath(today) unless @dry_run |
47 |
++ FileUtils.mkpath(today) unless @dry_run |
48 |
+ if latest |
49 |
+ update_snapshot(src, latest, today) |
50 |
+ else |
51 |
+@@ -1018,7 +1018,7 @@ |
52 |
+ |
53 |
+ case type |
54 |
+ when "directory" |
55 |
+- File.mkpath(today) |
56 |
++ FileUtils.mkpath(today) |
57 |
+ when "unchanged" |
58 |
+ File.force_link(latest, today) |
59 |
+ when "updated" |
60 |
+@@ -1089,7 +1089,7 @@ |
61 |
+ |
62 |
+ case type |
63 |
+ when "directory" |
64 |
+- File.mkpath(t) |
65 |
++ FileUtils.mkpath(t) |
66 |
+ when "new_file" |
67 |
+ copy(s, t) |
68 |
+ when "symlink" |
69 |
|
70 |
diff --git a/app-backup/pdumpfs/files/pdumpfs-test-r3.patch b/app-backup/pdumpfs/files/pdumpfs-test-r3.patch |
71 |
new file mode 100644 |
72 |
index 00000000000..30cd0292dae |
73 |
--- /dev/null |
74 |
+++ b/app-backup/pdumpfs/files/pdumpfs-test-r3.patch |
75 |
@@ -0,0 +1,12 @@ |
76 |
+patch by proxy maintainer, P. Healy, April 2015 |
77 |
+# Bug 509960 |
78 |
+--- a/tests/pdumpfs-test_orig 2004-08-10 07:54:28.000000000 +0100 |
79 |
++++ b/tests/pdumpfs-test 2015-04-01 11:24:35.948633870 +0100 |
80 |
+@@ -17,6 +17,7 @@ |
81 |
+ |
82 |
+ ../pdumpfs src dest > tmp.log || exit 1 |
83 |
+ diff -r src dest/$today/src || exit 1 |
84 |
++mkdir -p dest/$yesterday && rmdir dest/$yesterday |
85 |
+ mv dest/$today dest/$yesterday |
86 |
+ |
87 |
+ echo update > src/foo |
88 |
|
89 |
diff --git a/app-backup/pdumpfs/pdumpfs-1.3-r3.ebuild b/app-backup/pdumpfs/pdumpfs-1.3-r3.ebuild |
90 |
new file mode 100644 |
91 |
index 00000000000..38091aedbe1 |
92 |
--- /dev/null |
93 |
+++ b/app-backup/pdumpfs/pdumpfs-1.3-r3.ebuild |
94 |
@@ -0,0 +1,44 @@ |
95 |
+# Copyright 1999-2021 Gentoo Authors |
96 |
+# Distributed under the terms of the GNU General Public License v2 |
97 |
+ |
98 |
+EAPI=8 |
99 |
+ |
100 |
+DESCRIPTION="A daily backup system similar to Plan9's dumpfs" |
101 |
+HOMEPAGE="http://0xcc.net/pdumpfs/" |
102 |
+SRC_URI="http://0xcc.net/pdumpfs/${P}.tar.gz" |
103 |
+ |
104 |
+LICENSE="GPL-2" |
105 |
+SLOT="0" |
106 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
107 |
+IUSE="l10n_ja" |
108 |
+ |
109 |
+DEPEND=">=dev-lang/ruby-2.7.4" |
110 |
+ |
111 |
+PATCHES=( |
112 |
+ "${FILESDIR}/${PN}-in-r3.patch" |
113 |
+ "${FILESDIR}/${PN}-test-r3.patch" |
114 |
+) |
115 |
+ |
116 |
+src_compile() { |
117 |
+ emake pdumpfs |
118 |
+} |
119 |
+ |
120 |
+src_test() { |
121 |
+ # RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455 and #163473. |
122 |
+ export RUBYOPT="${GENTOO_RUBYOPT}" |
123 |
+ emake check |
124 |
+} |
125 |
+ |
126 |
+src_install() { |
127 |
+ dobin pdumpfs |
128 |
+ |
129 |
+ doman man/man8/pdumpfs.8 |
130 |
+ dodoc -r doc/* |
131 |
+ |
132 |
+ if use l10n_ja; then |
133 |
+ insinto /usr/share/man/ja/man8 |
134 |
+ doins man/ja/man8/pdumpfs.8 |
135 |
+ fi |
136 |
+ |
137 |
+ dodoc ChangeLog README |
138 |
+} |