From 2001f509af6743ff60bca1404772696227f8b468 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 31 Dec 2025 13:04:49 +0000 Subject: [PATCH] app-backup/duplicity: add 3.0.7 Signed-off-by: Sam James --- app-backup/duplicity/Manifest | 1 + app-backup/duplicity/duplicity-3.0.7.ebuild | 83 +++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 app-backup/duplicity/duplicity-3.0.7.ebuild diff --git a/app-backup/duplicity/Manifest b/app-backup/duplicity/Manifest index c0887db9f0393..f4376e7c9cee1 100644 --- a/app-backup/duplicity/Manifest +++ b/app-backup/duplicity/Manifest @@ -1,2 +1,3 @@ DIST duplicity-rel.3.0.5.tar.bz2 952327 BLAKE2B a5befdcfbca07655b690c681a7858e181029f6432583006872d9a1fe446a157717d6bfdc8462b087d719548ad8e761efb35b37ee23441bd7ed7830cbf5ed1612 SHA512 c57cd0192989ea98ef297aa5eb1e80f32f885af8c035521fffed115e2bd77af187b726a500e8d2e3f4100b00490cc62079dcba4568ca0d17239763477d3e7cb5 DIST duplicity-rel.3.0.6.3.tar.bz2 989593 BLAKE2B f2f465527e6c876593709d7ace2163f6f60c340995b2037872039ed33cc740b3527c2197b7741fef495b84da3610bcf6762353f2cdf64c7ce773653f0e7fd2ee SHA512 cf2c9804a609541a67a5bdf5da8cd8a0595a146f5a036b7223c0d3f72361bd944f2d3c532e5e64458a0410a80a6d8090f035bc06af0253ccc031e2db90e112bc +DIST duplicity-rel.3.0.7.tar.bz2 991966 BLAKE2B b0f2b2fafaeb5318631df025ec0e963d2f258704479e484476d273a133189b7435b0ee8a987b6fc6eec7d0a312cc411bbf932c0b294f8e8460caa2c0feb587f1 SHA512 8dc7213197caad1e493d3a2eb34e569cd0eadfa01b7fca8e62e9cc0c2ff79d6c5c1a10805a3d298f224172e4e78e2c02b0ce1d96ff4ec3bb58d5529deb3fb8d2 diff --git a/app-backup/duplicity/duplicity-3.0.7.ebuild b/app-backup/duplicity/duplicity-3.0.7.ebuild new file mode 100644 index 0000000000000..21884ac0f5ffa --- /dev/null +++ b/app-backup/duplicity/duplicity-3.0.7.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{12..14} ) +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_EXT=1 + +inherit distutils-r1 + +DESCRIPTION="Secure backup system using gnupg to encrypt data" +HOMEPAGE="https://duplicity.gitlab.io/" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://gitlab.com/duplicity/duplicity.git/" + inherit git-r3 +else + SRC_URI="https://gitlab.com/duplicity/duplicity/-/archive/rel.${PV}/${PN}-rel.${PV}.tar.bz2" + S="${WORKDIR}"/${PN}-rel.${PV} + + KEYWORDS="~amd64 ~arm64 ~x86 ~x64-macos" +fi + +LICENSE="GPL-3" +SLOT="0" +IUSE="s3 test" + +COMMON_DEPEND=" + app-alternatives/gpg + net-libs/librsync:= + dev-python/fasteners[${PYTHON_USEDEP}] + dev-python/pexpect[${PYTHON_USEDEP}] +" +DEPEND=" + ${COMMON_DEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + || ( app-arch/par2cmdline app-arch/par2cmdline-turbo ) + ) +" +RDEPEND=" + ${COMMON_DEPEND} + dev-python/paramiko[${PYTHON_USEDEP}] + s3? ( dev-python/boto3[${PYTHON_USEDEP}] ) +" + +EPYTEST_DESELECT=( + # Linting tests (black, pylint, etc); not relevant for us + testing/test_code.py::CodeTest::test_black + testing/test_code.py::CodeTest::test_pep8 + testing/test_code.py::CodeTest::test_pylint + # boto3 + testing/unit/test_cli_main.py::CommandlineTest::test_intermixed_args +) + +EPYTEST_IGNORE=( + testing/test_code.py +) + +PATCHES=( + "${FILESDIR}"/${PN}-3.0.4.0-fix-docs-cmd.patch + "${FILESDIR}"/${PN}-3.0.5-dont-repeat-standard-paths.patch +) + +distutils_enable_tests pytest + +python_test() { + # The default portage tempdir is too long for AF_UNIX sockets + local -x TMPDIR DOCKER_GNUPGHOME + TMPDIR="$(mktemp -d --tmpdir=/tmp ${PF}-XXX || die)" + # testing/__init__.py doesn't respect GNUPGHOME + DOCKER_GNUPGHOME="${TMPDIR}/gnupg" + cp -ar "${S}"/testing/gnupg "${DOCKER_GNUPGHOME}"/ || die + + epytest +} + +pkg_postinst() { + elog "Duplicity has many optional dependencies to support various backends." + elog "Currently it's up to you to install them as necessary." +}