commit: 52a252184784ca118460c9a563b449afcf1070d2
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 6 21:24:48 2026 +0000
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Fri Mar 6 21:25:15 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52a25218
app-backup/borgmatic: add 2.1.3
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>
app-backup/borgmatic/Manifest | 1 +
app-backup/borgmatic/borgmatic-2.1.3.ebuild | 88 +++++++++++++++++++++++++++++
2 files changed, 89 insertions(+)
diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest
index 8abb9670610a..7d6bdde0b274 100644
--- a/app-backup/borgmatic/Manifest
+++ b/app-backup/borgmatic/Manifest
@@ -2,3 +2,4 @@ DIST borgmatic-2.0.13.gh.tar.gz 883059 BLAKE2B
e2a811b92c7ec651ea79d69e092e39a4d
DIST borgmatic-2.0.7.tar.gz 684455 BLAKE2B
13822c36e65ba3d1ec117673177698a7ccc4bb916ffbe251312c038003a7e09cca0725e614c2e406e3bbbf36e5368c6d1760ac8248451edb4b3186b8a81b20fb
SHA512
9bac248f2db4c9fdaa7d8b465af2b3b392280a2b5655f34138058a6f6ac3f7a48b8266bde3c54f71f165243f85088c88da63a3fc3145dc2c83f4ec24b4b2c6ce
DIST borgmatic-2.1.1.gh.tar.gz 897606 BLAKE2B
22902db410f894765ad771b7f77641d58ff0f2bfd9cc01f1256f36c9907b329a60eb48353359aa707b3da715b02bcf770d23876c3625147d175d391105102bbf
SHA512
86ca2d945764cab0d2fbf31c1f685e392a230aaec0955b6130c02af9b4338b32f0073314d1d8f8495e80cb743f7f8f3238bd8b65497c9b1d447cbc3d708f84cd
DIST borgmatic-2.1.2.gh.tar.gz 900308 BLAKE2B
a5547a99b3f27946da01096b00e54e8083f69f687188af212718247b644bc17587ccc62c134446f9c3b1011cc18cb58bb1b7f9479f98bfa33e636a091bd71fc9
SHA512
89cf9a3e635d8aa887980f4091c3ab345da486fdb0d10d16308cbc2936cfc874ba63f8faf727934170c3d3967c4515792e9d69ef61b7ae1d69e4a514d9ac41ce
+DIST borgmatic-2.1.3.gh.tar.gz 907230 BLAKE2B
0486899ff030d303306810803ec5a6cd835f4b66eaf2c640b71506038523db167f49947bfe82e16be817879d88fa074041a245640ffd03cf2471df5ee658a830
SHA512
8c7ea4a84d4f3ffaa937359c073a1daaff089d28060fbd865e3fb3194fd3471fed5ee504db136846728396f7dd27eb4749484a51df909e77f2e98a9877765cad
diff --git a/app-backup/borgmatic/borgmatic-2.1.3.ebuild
b/app-backup/borgmatic/borgmatic-2.1.3.ebuild
new file mode 100644
index 000000000000..4079a19ab746
--- /dev/null
+++ b/app-backup/borgmatic/borgmatic-2.1.3.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
+}