summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Healy <lmiphay@gmail.com>2021-10-30 14:43:28 +0100
committerJakov Smolić <jsmolic@gentoo.org>2021-10-30 19:58:41 +0200
commitacefc0d43fdb9104de9ad35c3933c3c691ed7a16 (patch)
tree60c10d3171c1b8ad1b17a0eda0a1a0213f7364f0 /app-backup/pdumpfs
parentpackage.mask: Last rite net-wireless/btcrack (diff)
downloadgentoo-acefc0d43fdb9104de9ad35c3933c3c691ed7a16.tar.gz
gentoo-acefc0d43fdb9104de9ad35c3933c3c691ed7a16.tar.bz2
gentoo-acefc0d43fdb9104de9ad35c3933c3c691ed7a16.zip
app-backup/pdumpfs: bump to EAPI 8
Replace epatch, dohtml Bump the minimum ruby version to >=ruby-2.7.4 Bug: https://bugs.gentoo.org/819687 Signed-off-by: Paul Healy <lmiphay@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/22764 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'app-backup/pdumpfs')
-rw-r--r--app-backup/pdumpfs/files/pdumpfs-in-r3.patch40
-rw-r--r--app-backup/pdumpfs/files/pdumpfs-test-r3.patch12
-rw-r--r--app-backup/pdumpfs/pdumpfs-1.3-r3.ebuild44
3 files changed, 96 insertions, 0 deletions
diff --git a/app-backup/pdumpfs/files/pdumpfs-in-r3.patch b/app-backup/pdumpfs/files/pdumpfs-in-r3.patch
new file mode 100644
index 000000000000..b00f9bed5755
--- /dev/null
+++ b/app-backup/pdumpfs/files/pdumpfs-in-r3.patch
@@ -0,0 +1,40 @@
+patch by proxy maintainer, P. Healy, April 2015
+# Bug 509960
+--- a/pdumpfs.in_orig 2004-12-21 02:43:12.000000000 +0000
++++ b/pdumpfs.in 2015-04-01 10:58:22.671131947 +0100
+@@ -48,7 +48,7 @@
+ #
+
+ require 'find'
+-require 'ftools'
++require 'fileutils'
+ require 'getoptlong'
+ require 'date'
+
+@@ -868,7 +868,7 @@
+ today = File.join(dest, datedir(start_time), base)
+
+ File.umask(0077)
+- File.mkpath(today) unless @dry_run
++ FileUtils.mkpath(today) unless @dry_run
+ if latest
+ update_snapshot(src, latest, today)
+ else
+@@ -1018,7 +1018,7 @@
+
+ case type
+ when "directory"
+- File.mkpath(today)
++ FileUtils.mkpath(today)
+ when "unchanged"
+ File.force_link(latest, today)
+ when "updated"
+@@ -1089,7 +1089,7 @@
+
+ case type
+ when "directory"
+- File.mkpath(t)
++ FileUtils.mkpath(t)
+ when "new_file"
+ copy(s, t)
+ when "symlink"
diff --git a/app-backup/pdumpfs/files/pdumpfs-test-r3.patch b/app-backup/pdumpfs/files/pdumpfs-test-r3.patch
new file mode 100644
index 000000000000..30cd0292dae7
--- /dev/null
+++ b/app-backup/pdumpfs/files/pdumpfs-test-r3.patch
@@ -0,0 +1,12 @@
+patch by proxy maintainer, P. Healy, April 2015
+# Bug 509960
+--- a/tests/pdumpfs-test_orig 2004-08-10 07:54:28.000000000 +0100
++++ b/tests/pdumpfs-test 2015-04-01 11:24:35.948633870 +0100
+@@ -17,6 +17,7 @@
+
+ ../pdumpfs src dest > tmp.log || exit 1
+ diff -r src dest/$today/src || exit 1
++mkdir -p dest/$yesterday && rmdir dest/$yesterday
+ mv dest/$today dest/$yesterday
+
+ echo update > src/foo
diff --git a/app-backup/pdumpfs/pdumpfs-1.3-r3.ebuild b/app-backup/pdumpfs/pdumpfs-1.3-r3.ebuild
new file mode 100644
index 000000000000..38091aedbe11
--- /dev/null
+++ b/app-backup/pdumpfs/pdumpfs-1.3-r3.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A daily backup system similar to Plan9's dumpfs"
+HOMEPAGE="http://0xcc.net/pdumpfs/"
+SRC_URI="http://0xcc.net/pdumpfs/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="l10n_ja"
+
+DEPEND=">=dev-lang/ruby-2.7.4"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-in-r3.patch"
+ "${FILESDIR}/${PN}-test-r3.patch"
+)
+
+src_compile() {
+ emake pdumpfs
+}
+
+src_test() {
+ # RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455 and #163473.
+ export RUBYOPT="${GENTOO_RUBYOPT}"
+ emake check
+}
+
+src_install() {
+ dobin pdumpfs
+
+ doman man/man8/pdumpfs.8
+ dodoc -r doc/*
+
+ if use l10n_ja; then
+ insinto /usr/share/man/ja/man8
+ doins man/ja/man8/pdumpfs.8
+ fi
+
+ dodoc ChangeLog README
+}