commit:     3d144a8bf9d5a8ae6bdfe562f5239e2f0f76316f
Author:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 30 06:35:48 2025 +0000
Commit:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Wed Apr 30 06:36:18 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d144a8b

app-backup/borgmatic: add 2.0.5

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

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

diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest
index 94e7e5565f82..305c1f7d5c7d 100644
--- a/app-backup/borgmatic/Manifest
+++ b/app-backup/borgmatic/Manifest
@@ -1,3 +1,4 @@
 DIST borgmatic-1.9.14.tar.gz 656877 BLAKE2B 
36f8dce1251b74d67f33aaed5f6ebe41ff1003bd261070724422842143eb84be8b38a884f19da9e2f74a784e4ce4adca6c8ddfb8600f833fea6777585feb0cd8
 SHA512 
f2d789fab2e7f017c22458a6df3408a4883444aaeac9a4bf258de3eb46b802451d964d39ed441fb01314ff5c9acfd29676e1aab1ba341afb908e458527253705
 DIST borgmatic-2.0.3.tar.gz 676665 BLAKE2B 
a66429ec7c4bd31102745e6761c945cce4bb3f8af2f97f2f5c66013bce9cb55dba083d2856a8ef088b885345531532bc38350c4b7828e44663b47129a1ce3dc4
 SHA512 
fa83b7efd92059255bcbc7cd9e5038b94fde0ca39affafc8ce372bcd57eaf5faa5b17be700372110c909f9bb969f9b30cc5ce106e10b114b40684a67cb62d066
 DIST borgmatic-2.0.4.tar.gz 677555 BLAKE2B 
17f962d3fa93c52383a73d5e8e5ded92aeba2e933940d1f010b95078e5505ceff90c1a9cf9377e57de78bd00de90f9f639294523bc6729883efcd1510f8b1a11
 SHA512 
b40a0f8651fd0ef75683ddb10ac87acca38a9d11a47f8351dd07199f264baacea27897d5ce9cb41dea2e77ad3902f113ce07e65dabce858e2f44bea8eac75875
+DIST borgmatic-2.0.5.tar.gz 678806 BLAKE2B 
3cb2defa5c93b4dbc37ea7d8e8055d8a31e30564e665a861c7544263416b46ae3ce4eadb4f34e4213d357b6817cd1bc2c62f4fc0cf1563cbb5180f11441841ae
 SHA512 
9226a22c72deff3efb2eb11c8a92de1e1e2f4dd339fcf0991ae4286f8a14ab4be4c54dfa7f7b6a00d0ae816f1b4460fe73387b63482c014c515b8e24d5981cba

diff --git a/app-backup/borgmatic/borgmatic-2.0.5.ebuild 
b/app-backup/borgmatic/borgmatic-2.0.5.ebuild
new file mode 100644
index 000000000000..cfd9aeca089e
--- /dev/null
+++ b/app-backup/borgmatic/borgmatic-2.0.5.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_{10..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