repo/gentoo:master commit in: app-backup/borgmatic/

"Marc Schiffbauer" <[email protected]>
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1786830233.f8c48f68d884ae03b672c6cbe13c6d3752335082.mschiff@gentoo>
commit:     f8c48f68d884ae03b672c6cbe13c6d3752335082
Author:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 15 21:41:37 2026 +0000
Commit:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Sat Aug 15 21:43:53 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8c48f68

app-backup/borgmatic: add 2.1.7

Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>

 app-backup/borgmatic/Manifest               |  1 +
 app-backup/borgmatic/borgmatic-2.1.7.ebuild | 89 +++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+)

diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest
index ad4ef45199e3..f2c47467ed4e 100644
--- a/app-backup/borgmatic/Manifest
+++ b/app-backup/borgmatic/Manifest
@@ -1,3 +1,4 @@
 DIST borgmatic-2.0.13.gh.tar.gz 883059 BLAKE2B e2a811b92c7ec651ea79d69e092e39a4d145dd624c9c5e59ba31c19ec38aa087fb640152e174149d3c8b41b0724f008c21be8d6e557484b7598c7e4fbde343f9 SHA512 d0be944f19a5ceced51cb3ab52391ee80317ab16359d36ba480cca065941f8c007466951347290b3adce35dfbee082efafb6ea92473c2e6400eca7daf4beb47d
 DIST borgmatic-2.1.5.gh.tar.gz 911694 BLAKE2B 275bf92f8ae3d040e0a7ce4698cafa6e5dcfe009421fb72a5612100184b76bffc2129efe3dc2712664ed2467cb28807580e53887fa8991e5edb2982176366e06 SHA512 10b8d411f6e363a4a77585f5b1911b15083f3a07b6546967fe18388b5cc433754e8d6200307bb0a55722f67749c416ead179b7c64db671407b5960cbf2082aef
 DIST borgmatic-2.1.6.gh.tar.gz 965467 BLAKE2B 8d4f3d035a6a77cd8481b0e76ee7578a67c1f5421bddc5e4803823db818f8c361ab1477461202cefb4fba68aed85b9461ad1cbcb830b0c74a7e4b1500c30aeb9 SHA512 60991258da1838f271a92f29b6d9733804f6834d485f2e56697bc52c838cd27778d6572952d9722b4970635e82f02d94d335ba864553335e1d307a94195d0c0e
+DIST borgmatic-2.1.7.gh.tar.gz 982283 BLAKE2B 8097aabdd9d448515504d75abaac784d5febd18375549894be12028d634d37d9395d18c352ed097000d5b876b3f5cfd1e43105c78575f2a082eac2b9c0f31f79 SHA512 03557a871805d82d08cb01590e8c9b5754bf213dd8fd30f954d4c1383bd5b4d618f38355d5d2222684c62f7a10c1bf66f71bdb68a432aa20c2330a2ce4785d79

diff --git a/app-backup/borgmatic/borgmatic-2.1.7.ebuild b/app-backup/borgmatic/borgmatic-2.1.7.ebuild
new file mode 100644
index 000000000000..9d97681f2502
--- /dev/null
+++ b/app-backup/borgmatic/borgmatic-2.1.7.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{12..14} )
+DISTUTILS_SINGLE_IMPL=1
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1 eapi9-ver systemd
+
+DESCRIPTION="Automatically create, prune and verify backups with borgbackup"
+HOMEPAGE="
+	https://torsion.org/borgmatic/
+	https://projects.torsion.org/borgmatic-collective/borgmatic
+"
+# tests are not present in pypi archive since version 2.0.8
+SRC_URI="
+	https://github.com/borgmatic-collective/borgmatic/archive/refs/tags/${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv"
+IUSE="apprise"
+
+# borg is called as an external tool, hence no pythonic stuff
+RDEPEND="
+	app-backup/borgbackup
+	$(python_gen_cond_dep '
+		dev-python/jsonschema[${PYTHON_USEDEP}]
+		dev-python/packaging[${PYTHON_USEDEP}]
+		dev-python/requests[${PYTHON_USEDEP}]
+		dev-python/ruamel-yaml[${PYTHON_USEDEP}]
+	')
+	apprise? ( $(python_gen_cond_dep '
+		dev-python/apprise[${PYTHON_USEDEP}]
+	') )
+"
+BDEPEND="
+	test? (
+		${RDEPEND}
+		$(python_gen_cond_dep '
+			dev-python/apprise[${PYTHON_USEDEP}]
+			>=dev-python/flexmock-0.10.10[${PYTHON_USEDEP}]
+			dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+		')
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-1.7.14-systemd_service_bin_path.patch
+	"${FILESDIR}"/${PN}-2.1.6-no_test_coverage.patch
+)
+
+EPYTEST_DESELECT=(
+	# A fragile test whose only purpose is to make sure the NEWS file
+	# has been updated for the current version.
+	tests/integration/commands/test_borgmatic.py::test_borgmatic_version_matches_news_version
+
+	# data_source tests were ommited in the pypi archive, they are present in
+	# git archive, but they fail in py3.14.
+	# See https://projects.torsion.org/borgmatic-collective/borgmatic/issues/1149
+	tests/unit/hooks/data_source/test_dump.py::test_convert_glob_patterns_to_borg_pattern_makes_multipart_regular_expression
+)
+
+distutils_enable_tests pytest
+
+src_install() {
+	distutils-r1_src_install
+	systemd_dounit sample/systemd/borgmatic.{service,timer}
+	keepdir /etc/borgmatic
+}
+
+pkg_postinst() {
+	if [[ -z "${REPLACING_VERSIONS}" ]]; then
+		elog "To generate a sample configuration file, run:"
+		elog "    ${PN} config generate"
+		elog
+		elog "Systemd users wishing to periodically run ${PN} can use the provided timer and service units."
+	elif ver_replacing -lt 2.1.0; then
+		ewarn "Please be warned that ${PN}-2.1.0 has introduced several breaking changes."
+		ewarn "For details, please see"
+		ewarn
+		ewarn "	https://github.com/borgmatic-collective/borgmatic/releases/tag/2.1.0"
+		ewarn
+	fi
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.