commit: f06d017b12fb5a2cb0180093be12488bb8400eec
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 27 17:32:49 2025 +0000
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Thu Nov 27 17:32:49 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f06d017b
app-backup/borgmatic: add 2.0.12
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>
app-backup/borgmatic/Manifest | 1 +
app-backup/borgmatic/borgmatic-2.0.12.ebuild | 88 ++++++++++++++++++++++++++++
2 files changed, 89 insertions(+)
diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest
index 5baa6a452511..547b09ee003b 100644
--- a/app-backup/borgmatic/Manifest
+++ b/app-backup/borgmatic/Manifest
@@ -1,3 +1,4 @@
DIST borgmatic-2.0.10.gh.tar.gz 870223 BLAKE2B
3ac80e5b585c33712586ddc2f08cb1333eee9dff64a2f569612b547ffe2bacf5f7de5d23f2de206ffc9d4d56ee3cd4496c856952320cac11a09b3706236a2ac3
SHA512
49df1e03b3d368646accbba0855eb29d1878787eb4a634061ff19b0f9d534a5285cdc7274ee2b50d078d8985113c4de3bb86d096f01c72c52f3813c34cdd882f
DIST borgmatic-2.0.11.gh.tar.gz 873323 BLAKE2B
8403a0ccc6a9376b1db78504287b3e99a71b6b65728c7d205c55bfa1d8e7b2af325a771b40b861ade1ae0a37f4fff49678e1a51a72db3aa98313ea0514147020
SHA512
04d207382b050418e495fcd6fe15f7a15a290f53962e6b4c984aa4a34fde905c5a5b10fea67d034aca930ff7a5ccbe4dbf681a0d54f518cea6f3b51f551497f9
+DIST borgmatic-2.0.12.gh.tar.gz 881014 BLAKE2B
b0bbf0de3d1a50394a11f28732ba7e79ea6a4f98dd4aa863010c7c8a04d448ee9bff5aad8367dd2f0362bd7069514ec7df17cbca7b97cdc56cc5579dd1548697
SHA512
c30f544faf599ef4050a4356babc394373e19f334b3e92c85c5865209e1e17caa3f42c58b999b754f25c89cbab31497342eb849952f0af02fe1b943db13bdc73
DIST borgmatic-2.0.7.tar.gz 684455 BLAKE2B
13822c36e65ba3d1ec117673177698a7ccc4bb916ffbe251312c038003a7e09cca0725e614c2e406e3bbbf36e5368c6d1760ac8248451edb4b3186b8a81b20fb
SHA512
9bac248f2db4c9fdaa7d8b465af2b3b392280a2b5655f34138058a6f6ac3f7a48b8266bde3c54f71f165243f85088c88da63a3fc3145dc2c83f4ec24b4b2c6ce
diff --git a/app-backup/borgmatic/borgmatic-2.0.12.ebuild
b/app-backup/borgmatic/borgmatic-2.0.12.ebuild
new file mode 100644
index 000000000000..21f251610251
--- /dev/null
+++ b/app-backup/borgmatic/borgmatic-2.0.12.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2025 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.0.0; then
+ ewarn "Please be warned that ${PN}-2.0.0 has introduced several
breaking changes."
+ ewarn "For details, please see"
+ ewarn
+ ewarn "
https://github.com/borgmatic-collective/borgmatic/releases/tag/2.0.0"
+ ewarn
+ fi
+}