commit:     7b585fa02847f16593e04d5955cad9b787b9503f
Author:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  1 06:48:42 2025 +0000
Commit:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Tue Jul  1 06:50:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b585fa0

app-backup/borgmatic: add 2.0.7

Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>

 app-backup/borgmatic/Manifest               |  1 +
 app-backup/borgmatic/borgmatic-2.0.7.ebuild | 78 +++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+)

diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest
index e4c548dbb872..138d561fc715 100644
--- a/app-backup/borgmatic/Manifest
+++ b/app-backup/borgmatic/Manifest
@@ -1 +1,2 @@
 DIST borgmatic-2.0.6.tar.gz 679515 BLAKE2B 
929bb9954206210c6c4ef2b670e1419b9fc06a4686d9e0010d439f4848ee1f197704e36640a558671fe911817e6af3e8eb81b70860c5b1921147e75a50baec52
 SHA512 
49cff6bb1975f25f23f52f5efe9b92b2e1cab4aff337bd41a5136b442df245531a9bd6b18a601ed055a7f25750fe7fe2817c59964e176b358861e8262ea02722
+DIST borgmatic-2.0.7.tar.gz 684455 BLAKE2B 
13822c36e65ba3d1ec117673177698a7ccc4bb916ffbe251312c038003a7e09cca0725e614c2e406e3bbbf36e5368c6d1760ac8248451edb4b3186b8a81b20fb
 SHA512 
9bac248f2db4c9fdaa7d8b465af2b3b392280a2b5655f34138058a6f6ac3f7a48b8266bde3c54f71f165243f85088c88da63a3fc3145dc2c83f4ec24b4b2c6ce

diff --git a/app-backup/borgmatic/borgmatic-2.0.7.ebuild 
b/app-backup/borgmatic/borgmatic-2.0.7.ebuild
new file mode 100644
index 000000000000..64498a27cc9f
--- /dev/null
+++ b/app-backup/borgmatic/borgmatic-2.0.7.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+DISTUTILS_SINGLE_IMPL=1
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1 eapi9-ver systemd pypi
+
+DESCRIPTION="Automatically create, prune and verify backups with borgbackup"
+HOMEPAGE="
+       https://torsion.org/borgmatic/
+       https://projects.torsion.org/borgmatic-collective/borgmatic
+"
+
+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
+)
+
+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
+}

Reply via email to