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, 16 Apr 2021 18:25:10
Message-Id: 1618597468.71b28f813aefc118fdb171e6293a03a95204c00e.marecki@gentoo
1 commit: 71b28f813aefc118fdb171e6293a03a95204c00e
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 16 16:03:21 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 16 18:24:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71b28f81
7
8 app-backup/borgmatic: bump to 1.5.13
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.13.ebuild | 71 ++++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest
17 index 722f9148649..e74bd2d232c 100644
18 --- a/app-backup/borgmatic/Manifest
19 +++ b/app-backup/borgmatic/Manifest
20 @@ -1 +1,2 @@
21 DIST borgmatic-1.5.12.tar.gz 72964 BLAKE2B d71537eed019b10c3257d4b068c31aff63919e0cdb068b49c2ed92d2e97d37b8735f30b1225fb453e79372aeab49817e9200770aac4cc0f80c0bac14e84678d1 SHA512 67c7c7683e9fb7dd0321b3db6887212b040596f1d7e767cceeae6fa4cc02bb0a46344befbbc7a33b454a4692b04ae88d9031f71867788a94f771999d885112d5
22 +DIST borgmatic-1.5.13.tar.gz 72469 BLAKE2B 3a71be201143a96968bb1ea6008b62e11f6ab199f44f38d0d66f31f24827a8f32cc7b8f50cc5d33a8bbd7046e6697afe509525be90dd9519f4c686b8737f64c5 SHA512 60bcbcc825db3f93a423ab8e44e0b0809ff4937d8e41bc56ec6226e4865c3a66fae8b6749d33cdb0692ea9dd07cfff56750ff2feee68c96791b83c9dd5f35433
23
24 diff --git a/app-backup/borgmatic/borgmatic-1.5.13.ebuild b/app-backup/borgmatic/borgmatic-1.5.13.ebuild
25 new file mode 100644
26 index 00000000000..06c3a588685
27 --- /dev/null
28 +++ b/app-backup/borgmatic/borgmatic-1.5.13.ebuild
29 @@ -0,0 +1,71 @@
30 +# Copyright 1999-2021 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 ~arm ~arm64"
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.18.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. Adding --install to distutils_enable_tests would
81 + # likely take care of this - but between the aforementioned behaviour
82 + # inconsistency and the fact the only test run from this file as of version
83 + # 1.5.13 is the parsing of contents of 'borgmatic --version', just skip it.
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 +}