commit: b9bf9db6679815ad6b0174514615db24f6d9f8b4
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 28 20:53:19 2026 +0000
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Wed Jan 28 20:53:50 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9bf9db6
app-backup/borgmatic: add 2.1.1
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>
app-backup/borgmatic/Manifest | 1 +
app-backup/borgmatic/borgmatic-2.1.1.ebuild | 88 +++++++++++++++++++++++++++++
2 files changed, 89 insertions(+)
diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest
index 5119d4e05975..356a71be0e3e 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.0.7.tar.gz 684455 BLAKE2B
13822c36e65ba3d1ec117673177698a7ccc4bb916ffbe251312c038003a7e09cca0725e614c2e406e3bbbf36e5368c6d1760ac8248451edb4b3186b8a81b20fb
SHA512
9bac248f2db4c9fdaa7d8b465af2b3b392280a2b5655f34138058a6f6ac3f7a48b8266bde3c54f71f165243f85088c88da63a3fc3145dc2c83f4ec24b4b2c6ce
DIST borgmatic-2.1.0.gh.tar.gz 893835 BLAKE2B
372c5320c10778c29db4d77ef166e1376f4dd6865c6379b44a7fd39f0c9b2fe4e29af844051699317527438b0b5075e1af13820d0d10a197263026f6a675c453
SHA512
b94c716396d5666e99bc86a94a34f57cfc39ea4c60a8276859d09d3afe2910c68c2ed2eb80c4d62dece84cff81ca943fcdcc709f91aadfe9f2ff7ef112874c0d
+DIST borgmatic-2.1.1.gh.tar.gz 897606 BLAKE2B
22902db410f894765ad771b7f77641d58ff0f2bfd9cc01f1256f36c9907b329a60eb48353359aa707b3da715b02bcf770d23876c3625147d175d391105102bbf
SHA512
86ca2d945764cab0d2fbf31c1f685e392a230aaec0955b6130c02af9b4338b32f0073314d1d8f8495e80cb743f7f8f3238bd8b65497c9b1d447cbc3d708f84cd
diff --git a/app-backup/borgmatic/borgmatic-2.1.1.ebuild
b/app-backup/borgmatic/borgmatic-2.1.1.ebuild
new file mode 100644
index 000000000000..4079a19ab746
--- /dev/null
+++ b/app-backup/borgmatic/borgmatic-2.1.1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..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}]
+ ')
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.7.14-systemd_service_bin_path.patch
+ "${FILESDIR}"/${PN}-1.9.3-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
+}