Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/borgmatic/
Date: Fri, 26 Aug 2022 08:48:10
Message-Id: 1661503675.dbead06bf1293b255672bdc2627343cad93ad6f2.marecki@gentoo
1 commit: dbead06bf1293b255672bdc2627343cad93ad6f2
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 26 08:45:53 2022 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 26 08:47:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbead06b
7
8 app-backup/borgmatic: add 1.7.1
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 app-backup/borgmatic/Manifest | 1 +
13 app-backup/borgmatic/borgmatic-1.7.1.ebuild | 68 +++++++++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest
17 index 7c2a851ea67e..04bdd7cdd05a 100644
18 --- a/app-backup/borgmatic/Manifest
19 +++ b/app-backup/borgmatic/Manifest
20 @@ -1,2 +1,3 @@
21 DIST borgmatic-1.6.1.tar.gz 300375 BLAKE2B b56c31da62591b8bfd3c0146e77cab7ab28f942c59ca0f6cf7342d80bc31249dfcbd59fae13025a0fe464de326b6758169be983d2b741ecc37062961541fb892 SHA512 c48fb89167ce188feeb9d51ae9caabf985f9c583d09840d3dd4aaf772a4acbd3c22399958740820b9fbf61603769a604dc92b72448e2c7196fae855549f3c6d5
22 DIST borgmatic-1.6.6.tar.gz 323601 BLAKE2B b40d8f00e3b7bbd343336cf4c6992e34d8289de451c184717827e8e43519b84d4bb9b8cff6a835a7cc502d2e93045f0196d744e4b6ad800de1276e11c3189cec SHA512 f1a6dfa344ebee89e88f1aa6b43d8493c80815c637d8e0f7f6314462fd511b576e62246d957023ab2f9a68875d2818e2b8ef00cbf3339dc35a93d6ebad0bed19
23 +DIST borgmatic-1.7.1.tar.gz 333344 BLAKE2B 0076fac9a01715d24dd8dfa9ca93099c94cfe33f65850c089a337b3f95b6c52706d0e6b15200532c0fcca9401f97c02d6ebabd700e42f5d9bb3516e04e7fa0a4 SHA512 6cf0c71a88f0f893f63bb2de7c466af87cad3eff57a6105a6bece2c1acddb962fa14c4d63944c37a3465dc3c09151003daa28e5045a897875552ff7de227d5fc
24
25 diff --git a/app-backup/borgmatic/borgmatic-1.7.1.ebuild b/app-backup/borgmatic/borgmatic-1.7.1.ebuild
26 new file mode 100644
27 index 000000000000..85a3ea05cce7
28 --- /dev/null
29 +++ b/app-backup/borgmatic/borgmatic-1.7.1.ebuild
30 @@ -0,0 +1,68 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..11} )
37 +DISTUTILS_SINGLE_IMPL=1
38 +DISTUTILS_USE_PEP517=setuptools
39 +
40 +inherit distutils-r1 systemd
41 +
42 +DESCRIPTION="Automatically create, prune and verify backups with borgbackup"
43 +HOMEPAGE="https://torsion.org/borgmatic/"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="GPL-3"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~riscv"
49 +
50 +# borg is called as an external tool, hence no pythonic stuff
51 +RDEPEND="app-backup/borgbackup
52 + $(python_gen_cond_dep '
53 + <dev-python/colorama-0.5[${PYTHON_USEDEP}]
54 + dev-python/jsonschema[${PYTHON_USEDEP}]
55 + dev-python/requests[${PYTHON_USEDEP}]
56 + <dev-python/ruamel-yaml-0.18.0[${PYTHON_USEDEP}]
57 + dev-python/setuptools[${PYTHON_USEDEP}]
58 + ')"
59 +BDEPEND="
60 + test? (
61 + $(python_gen_cond_dep '
62 + >=dev-python/flexmock-0.10.10[${PYTHON_USEDEP}]
63 + ')
64 + )"
65 +
66 +PATCHES=(
67 + "${FILESDIR}"/${PN}-1.5.1-no_test_coverage.patch
68 + "${FILESDIR}"/${PN}-1.5.16-systemd_service_bin_path.patch
69 +)
70 +
71 +# test_borgmatic_version_matches_news_version tries to run the 'borgmatic'
72 +# executable so making it work would require passing --install
73 +# to distutils_enable_tests. Given that this is the only test requiring
74 +# this and that all it does is make sure the NEWS file has been updated
75 +# for the current version, just skip it.
76 +EPYTEST_DESELECT=(
77 + tests/integration/commands/test_borgmatic.py::test_borgmatic_version_matches_news_version
78 +)
79 +
80 +distutils_enable_tests pytest
81 +
82 +src_install() {
83 + distutils-r1_src_install
84 + systemd_dounit sample/systemd/borgmatic.{service,timer}
85 + keepdir /etc/borgmatic
86 +}
87 +
88 +pkg_postinst() {
89 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
90 + elog "To generate a sample configuration file, run:"
91 + elog " generate-borgmatic-config"
92 + else
93 + ewarn "Please note that since version 1.7.0 ${PN} no longer supports old-style command-line action flags like '--create', '--list', etc."
94 + ewarn "Make sure all your scripts use actions, e.g. 'create', 'list' and so on"
95 + fi
96 + elog
97 + elog "Systemd users wishing to periodically run borgmatic can use the provided timer and service units."
98 +}