commit: 8f2e4c726a0416dd636c7a9e59e8b563bd6db873
Author: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 23 06:31:08 2025 +0000
Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Wed Apr 23 07:07:14 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f2e4c72
app-backup/borgmatic: add 2.0.4
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>
app-backup/borgmatic/Manifest | 1 +
app-backup/borgmatic/borgmatic-2.0.4.ebuild | 78 +++++++++++++++++++++++++++++
2 files changed, 79 insertions(+)
diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest
index e27390f861f0..f00834b4befc 100644
--- a/app-backup/borgmatic/Manifest
+++ b/app-backup/borgmatic/Manifest
@@ -2,3 +2,4 @@ DIST borgmatic-1.9.13.tar.gz 655690 BLAKE2B
b51706ffb56e3905298498fa71e7f949be43
DIST borgmatic-1.9.14.tar.gz 656877 BLAKE2B
36f8dce1251b74d67f33aaed5f6ebe41ff1003bd261070724422842143eb84be8b38a884f19da9e2f74a784e4ce4adca6c8ddfb8600f833fea6777585feb0cd8
SHA512
f2d789fab2e7f017c22458a6df3408a4883444aaeac9a4bf258de3eb46b802451d964d39ed441fb01314ff5c9acfd29676e1aab1ba341afb908e458527253705
DIST borgmatic-2.0.2.tar.gz 675555 BLAKE2B
3c2c6af5c44c725c466178744ebd559e43c3fec8e989fcd2ab19b3d3b4832d66888e6a4a490ed2bf9727bed4013278be6e5f5aeb64984506e9a9ea8805a72312
SHA512
060188b557e36d8391e806c8e46e7e8c12deb7d00bd4fcb18dadf1d43e113ad3d8c6399f8dc418e03c5aee06ba6b5434102b4ce9151f480e732bab617dc23f58
DIST borgmatic-2.0.3.tar.gz 676665 BLAKE2B
a66429ec7c4bd31102745e6761c945cce4bb3f8af2f97f2f5c66013bce9cb55dba083d2856a8ef088b885345531532bc38350c4b7828e44663b47129a1ce3dc4
SHA512
fa83b7efd92059255bcbc7cd9e5038b94fde0ca39affafc8ce372bcd57eaf5faa5b17be700372110c909f9bb969f9b30cc5ce106e10b114b40684a67cb62d066
+DIST borgmatic-2.0.4.tar.gz 677555 BLAKE2B
17f962d3fa93c52383a73d5e8e5ded92aeba2e933940d1f010b95078e5505ceff90c1a9cf9377e57de78bd00de90f9f639294523bc6729883efcd1510f8b1a11
SHA512
b40a0f8651fd0ef75683ddb10ac87acca38a9d11a47f8351dd07199f264baacea27897d5ce9cb41dea2e77ad3902f113ce07e65dabce858e2f44bea8eac75875
diff --git a/app-backup/borgmatic/borgmatic-2.0.4.ebuild
b/app-backup/borgmatic/borgmatic-2.0.4.ebuild
new file mode 100644
index 000000000000..cfd9aeca089e
--- /dev/null
+++ b/app-backup/borgmatic/borgmatic-2.0.4.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
+}