commit:     9b56e3a818f084c1c60f7fb3c5acf2cd576b6760
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 18 10:29:10 2024 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Sun Feb 18 10:30:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b56e3a8

app-backup/borgmatic: add 1.8.8

Closes: https://bugs.gentoo.org/923729
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

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

diff --git a/app-backup/borgmatic/Manifest b/app-backup/borgmatic/Manifest
index 0a4f8d2e9af2..ad6b95d29cbb 100644
--- a/app-backup/borgmatic/Manifest
+++ b/app-backup/borgmatic/Manifest
@@ -1,2 +1,3 @@
 DIST borgmatic-1.8.3.tar.gz 399031 BLAKE2B 
d560ccf69f86f35951521e44fba03a4704161abfe1208a8ef23067ba09b0060be84605761a2fa0b0878d466df10391a9314e85480c15af22faaf326c84211dd9
 SHA512 
3f798fddadb12742928e1542d1c71838b58870ecea18c62b260829880ae7ba0ec26303548a60ff7c8071b49eb630320bb055a9a1d67e4952c8952140f09100d2
 DIST borgmatic-1.8.5.tar.gz 580628 BLAKE2B 
ca4ae3fcda05ed4a7b11e98f767853920d1ed3053dedaedeaf16124c43ae32a4d89bc2a1ed594d88cb1e8da9da79ad75459dd3a8034b70c1a2d8b57776b1a725
 SHA512 
96681ee9d4aa55edeee1ab2ab2929022a3c49c60a20313c129d53736b40b0c46a3a6a5537ba3355d7cef74988655ed5af4ab689df9130de1373bcf6a8a665a9e
+DIST borgmatic-1.8.8.tar.gz 589575 BLAKE2B 
09a3ca616bd1cf5fcc6c773d8066357d764b44230d691b7afa90bb1fdbce3aa3bfaac509e921adaa9086ba60310b24d1f2ba186849853c8f04e2a85c4b0ec94f
 SHA512 
3984f6e34f8aed5c57df22799e60724903bfcec833e5c3215ad731977b7d376f36129fabd489c166f945d7103f272bcc132a9ea49010552001794b57f27fb5d5

diff --git a/app-backup/borgmatic/borgmatic-1.8.8.ebuild 
b/app-backup/borgmatic/borgmatic-1.8.8.ebuild
new file mode 100644
index 000000000000..09e09f4eea4c
--- /dev/null
+++ b/app-backup/borgmatic/borgmatic-1.8.8.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_SINGLE_IMPL=1
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1 systemd pypi
+
+DESCRIPTION="Automatically create, prune and verify backups with borgbackup"
+HOMEPAGE="https://torsion.org/borgmatic/";
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv"
+IUSE="apprise"
+
+REQUIRED_USE="test? ( apprise )"
+
+# borg is called as an external tool, hence no pythonic stuff
+RDEPEND="app-backup/borgbackup
+       $(python_gen_cond_dep '
+               <dev-python/colorama-0.5[${PYTHON_USEDEP}]
+               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? (
+               $(python_gen_cond_dep '
+                       >=dev-python/flexmock-0.10.10[${PYTHON_USEDEP}]
+               ')
+       )"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.7.13-no_test_coverage.patch
+       "${FILESDIR}"/${PN}-1.7.14-systemd_service_bin_path.patch
+)
+
+# A fragile test whose only purpose is to make sure the NEWS file
+# has been updated for the current version.
+EPYTEST_DESELECT=(
+       
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"
+       else
+               local oldver
+               for oldver in ${REPLACING_VERSIONS}; do
+                       if ver_test "${oldver}" -lt 1.8.0; then
+                               ewarn "Please be warned that ${PN}-1.8.0 has 
introduced several breaking changes."
+                               ewarn "For details, please see"
+                               ewarn
+                               ewarn " 
https://github.com/borgmatic-collective/borgmatic/releases/tag/1.8.0";
+                               ewarn
+                               break
+                       fi
+               done
+       fi
+       elog
+       elog "Systemd users wishing to periodically run ${PN} can use the 
provided timer and service units."
+}

Reply via email to