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: Sat, 21 Nov 2020 22:05:38
Message-Id: 1605996322.753f5081372d7d31b23a58a56ce5f36b311cb255.marecki@gentoo
1 commit: 753f5081372d7d31b23a58a56ce5f36b311cb255
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 21 21:53:06 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 21 22:05:22 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=753f5081
7
8 app-backup/borgmatic: bump to 1.5.11
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.11.ebuild | 71 ++++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest
17 index e4c21c5e949..1760b0e2d71 100644
18 --- a/app-backup/borgmatic/Manifest
19 +++ b/app-backup/borgmatic/Manifest
20 @@ -1 +1,2 @@
21 DIST borgmatic-1.5.10.tar.gz 71743 BLAKE2B b2b5f9135a15730ca7ddddeaa7f621f82207f1dcf383c3be7459eb39dbffc85a310184a4ddce3fb0bd47aa213cb588eb3f3e2f73418659330a421b7da5b87698 SHA512 52436535810ce42f5ab30ae8a4705005e8c7a5d91d52520aab4160320215196cdc088dfae1a21a0d65d0161fb2bb3c9b984cfe2cb5204f7b9bd0ed27c3a38c5b
22 +DIST borgmatic-1.5.11.tar.gz 72985 BLAKE2B fac7e403a4338fc46955d3b82e12e0fc983a11edbb51dc74dcfb6c28818a655b50f7445b28033a966e7e27e2998b062967df97a51f4c362f0d7eac83a19386de SHA512 a945d19bf2fbd617e7de5827d75c8a69f5902c6dfa5d33344b61e680e97636c4a5337d759a372a70b6d2c792a1e7fbc168eedef5e1ae64cac702d313329bca9e
23
24 diff --git a/app-backup/borgmatic/borgmatic-1.5.11.ebuild b/app-backup/borgmatic/borgmatic-1.5.11.ebuild
25 new file mode 100644
26 index 00000000000..7ded25f08aa
27 --- /dev/null
28 +++ b/app-backup/borgmatic/borgmatic-1.5.11.ebuild
29 @@ -0,0 +1,71 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{7..9} )
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"
48 +
49 +# Fails due to problems with dev-python/flexmock-0.10.4; see Bug #740128
50 +RESTRICT="test"
51 +
52 +# borg is called as an external tool, hence no pythonic stuff
53 +RDEPEND="app-backup/borgbackup
54 + $(python_gen_cond_dep '
55 + dev-python/colorama[${PYTHON_USEDEP}]
56 + >=dev-python/pykwalify-1.6.0[${PYTHON_USEDEP}]
57 + dev-python/requests[${PYTHON_USEDEP}]
58 + <dev-python/ruamel-yaml-0.17.0[${PYTHON_USEDEP}]
59 + ')"
60 +#BDEPEND="
61 +# test? (
62 +# $(python_gen_cond_dep '
63 +# dev-python/flexmock[${PYTHON_USEDEP}]
64 +# ')
65 +# )"
66 +
67 +PATCHES=(
68 + "${FILESDIR}"/${PN}-1.5.1-systemd_service_bin_path.patch
69 + "${FILESDIR}"/${PN}-1.5.1-no_test_coverage.patch
70 +)
71 +
72 +distutils_enable_tests pytest
73 +
74 +src_prepare() {
75 + distutils-r1_src_prepare
76 +
77 + # Unlike the other two test files in integration/commands, which use the
78 + # relevant modules' respective APIs, test_borgmatic.py tries to call the
79 + # 'borgmatic' executable - which by the time we execute src_test will
80 + # not have been created yet. distutils_install_for_testing would likely
81 + # take care of this - but between the aforementioned behaviour inconsistency
82 + # and the fact the only test run from this file as of version 1.5.11 is the
83 + # parsing of contents of 'borgmatic --version', just skip it for now.
84 + rm -f "${S}"/tests/integration/commands/test_borgmatic.py
85 +}
86 +
87 +src_install() {
88 + distutils-r1_src_install
89 + systemd_dounit sample/systemd/borgmatic.{service,timer}
90 + keepdir /etc/borgmatic
91 +}
92 +
93 +pkg_postinst() {
94 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
95 + elog "To generate a sample configuration file, run:"
96 + elog " generate-borgmatic-config"
97 + fi
98 + elog
99 + elog "Systemd users wishing to periodically run borgmatic can use the provided timer and service units."
100 +}