1 |
commit: 0ab349056a1fa0941ca90f1d1478c04bea29ec53 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 12 23:03:00 2021 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 12 23:03:00 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ab34905 |
7 |
|
8 |
app-backup/borgmatic: add 1.5.20 |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
|
12 |
app-backup/borgmatic/Manifest | 1 + |
13 |
app-backup/borgmatic/borgmatic-1.5.20.ebuild | 68 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 69 insertions(+) |
15 |
|
16 |
diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest |
17 |
index 61e367b079c..461f6c83eb5 100644 |
18 |
--- a/app-backup/borgmatic/Manifest |
19 |
+++ b/app-backup/borgmatic/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST borgmatic-1.5.18.tar.gz 277064 BLAKE2B 43f5f8d2fb7f13ed6bcfd5b00f99a797f214f5220b27f8c173f636d37b4c0b5c8d1915a73684597d71fb436717a84de542be51a9b23f735e304e15427d40ace1 SHA512 2e008ef01922851a3fd5c7b5d1ad30d5b0e007e5f76af4849159ff2f730add591ffb30ba3d867b0e7221b98e949e4cf3e11b8853a3412395a63c135248761264 |
22 |
+DIST borgmatic-1.5.20.tar.gz 277495 BLAKE2B 6714b132549633b1d24e3c0bd7cd16ee9ff5510c4915d4115d62f4a260dc3cc505a02d8a14220184d53c934384d9ca092a38d6deebcefb843e7ba4492043819a SHA512 ea370ea1e57f56c8c4b7636695ae40473b9d58696948f55afde55b31b3bcbd68923952e80b0ef0bc40f68bb265ccd47bd5e0b2735ee9b4b6f3418a5ff13eaaf4 |
23 |
|
24 |
diff --git a/app-backup/borgmatic/borgmatic-1.5.20.ebuild b/app-backup/borgmatic/borgmatic-1.5.20.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..74ed90e2da6 |
27 |
--- /dev/null |
28 |
+++ b/app-backup/borgmatic/borgmatic-1.5.20.ebuild |
29 |
@@ -0,0 +1,68 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+DISTUTILS_SINGLE_IMPL=1 |
37 |
+DISTUTILS_USE_SETUPTOOLS="rdepend" |
38 |
+ |
39 |
+inherit distutils-r1 systemd |
40 |
+ |
41 |
+DESCRIPTION="Automatically create, prune and verify backups with borgbackup" |
42 |
+HOMEPAGE="https://torsion.org/borgmatic/" |
43 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="GPL-3" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv" |
48 |
+ |
49 |
+# borg is called as an external tool, hence no pythonic stuff |
50 |
+RDEPEND="app-backup/borgbackup |
51 |
+ $(python_gen_cond_dep ' |
52 |
+ dev-python/colorama[${PYTHON_USEDEP}] |
53 |
+ dev-python/jsonschema[${PYTHON_USEDEP}] |
54 |
+ dev-python/requests[${PYTHON_USEDEP}] |
55 |
+ <dev-python/ruamel-yaml-0.18.0[${PYTHON_USEDEP}] |
56 |
+ ')" |
57 |
+BDEPEND=" |
58 |
+ test? ( |
59 |
+ $(python_gen_cond_dep ' |
60 |
+ >=dev-python/flexmock-0.10.10[${PYTHON_USEDEP}] |
61 |
+ ') |
62 |
+ )" |
63 |
+ |
64 |
+PATCHES=( |
65 |
+ "${FILESDIR}"/${PN}-1.5.1-no_test_coverage.patch |
66 |
+ "${FILESDIR}"/${PN}-1.5.16-systemd_service_bin_path.patch |
67 |
+) |
68 |
+ |
69 |
+distutils_enable_tests pytest |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ distutils-r1_src_prepare |
73 |
+ |
74 |
+ # Unlike the other two test files in integration/commands, which use the |
75 |
+ # relevant modules' respective APIs, test_borgmatic.py tries to call the |
76 |
+ # 'borgmatic' executable - which by the time we execute src_test will |
77 |
+ # not have been created yet. Adding --install to distutils_enable_tests would |
78 |
+ # likely take care of this - but between the aforementioned behaviour |
79 |
+ # inconsistency and the fact the only test run from this file as of version |
80 |
+ # 1.5.13 is the parsing of contents of 'borgmatic --version', just skip it. |
81 |
+ rm -f "${S}"/tests/integration/commands/test_borgmatic.py |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ distutils-r1_src_install |
86 |
+ systemd_dounit sample/systemd/borgmatic.{service,timer} |
87 |
+ keepdir /etc/borgmatic |
88 |
+} |
89 |
+ |
90 |
+pkg_postinst() { |
91 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
92 |
+ elog "To generate a sample configuration file, run:" |
93 |
+ elog " generate-borgmatic-config" |
94 |
+ fi |
95 |
+ elog |
96 |
+ elog "Systemd users wishing to periodically run borgmatic can use the provided timer and service units." |
97 |
+} |