app-backup/backintime: add 1.5.6

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-10-06 01:12:36 +01:00
parent 8d921a1a9e
commit 73bde5a860
2 changed files with 124 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST backintime-1.5.4.tar.gz 7844427 BLAKE2B 6f37f70067ebf8cf4847b22c77ad1183b8139f67216e88722d4d029d7314a0cff12f7ba28f684ba78d9b0b0c58916b32e8ab25dea87219e86e6fd412832b03e0 SHA512 b09c6926351985ae8eccb9f31d74c09e345063c8d0091dc19fbb8650a1bcb1ec190db7c7df82b945badb4dfbf70bbd3677f7fea0b3eee0419f0fe866785a5f5d
DIST backintime-1.5.5.tar.gz 7834785 BLAKE2B b8303dac05fdd60ee87e8f63b63e593978265000512190cb77612419d80bbaa5beac197e70ccb9f46b89df45d8f336c87fb03d7f5617cc9cf696c5d032dbb206 SHA512 f59ea1cdd23dd4817d5ff5d28dc937c413e043a5e231943736554d570a9c09ba5806dd9bc3c2518b0527f4033d9450a35d397cee4e52baa6ca7b06ce8ead5107
DIST backintime-1.5.6.tar.gz 7845993 BLAKE2B 05f4e533ddac0b7ec4a9f8bda4af03f96b0ce551a8dcbc9bf2588c1bce81257304630a5fb5f4ddce88c2dfd790b0631513122f825600cfcd091bee319e0f5568 SHA512 880eca478b9233558815b3d90aaeae81e7136f6f39a482eb6756c9971f5e5e37852ead7b277093dc3afdfe9a934bf2b93b0b6fbd0240b471f82db47896b592f3

View File

@@ -0,0 +1,123 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
inherit python-single-r1 xdg
DESCRIPTION="Backup system inspired by TimeVault and FlyBack"
HOMEPAGE="https://backintime.readthedocs.io/en/latest/ https://github.com/bit-team/backintime/"
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/bit-team/backintime/"
inherit git-r3
else
SRC_URI="https://github.com/bit-team/${PN}/releases/download/v${PV}/${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-2+"
SLOT="0"
IUSE="examples gui test"
RESTRICT="!test? ( test )"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-python/dbus-python[${PYTHON_USEDEP}]
dev-python/keyring[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
')
"
RDEPEND="
${DEPEND}
virtual/openssh
net-misc/rsync[xattr,acl]
gui? ( dev-python/pyqt6[gui,widgets] )
"
BDEPEND="
sys-devel/gettext
test? ( $(python_gen_cond_dep 'dev-python/pyfakefs[${PYTHON_USEDEP}]') )
"
PATCHES=(
"${FILESDIR}/${PN}-1.5.4-no-compress-docs-examples.patch"
"${FILESDIR}/${PN}-1.5.4-crontab-systemd.patch"
)
src_prepare() {
default
# Looks at host system too much, so too flaky
rm common/test/test_tools.py || die
# Fails with dbus/udev issue (likely sandbox)
rm common/test/test_snapshots.py || die
}
src_configure() {
# TODO: Review https://github.com/bit-team/backintime/blob/dev/CONTRIBUTING.md#dependencies
# for deps (some may be optfeatures).
pushd common > /dev/null || die
# Not autotools
./configure --python="${PYTHON}" --no-fuse-group || die
popd > /dev/null || die
if use gui ; then
pushd qt > /dev/null || die
./configure --python="${PYTHON}" || die
popd > /dev/null || die
fi
}
src_compile() {
emake -C common
use gui && emake -C qt
}
src_test() {
# https://github.com/bit-team/backintime/blob/dev/CONTRIBUTING.md#testing
EPYTEST_IGNORE=(
# We're not interested in linting tests for our purposes
test/test_lint.py
)
(
EPYTEST_DESELECT+=(
# Wants a crontab
test/test_backintime.py::BackInTime::test_quiet_mode
)
EPYTEST_IGNORE+=(
# Wants an SSH key
test/test_sshtools.py
)
cd common || die
epytest
)
use gui && (
cd qt || die
epytest
)
}
src_install() {
emake -C common DESTDIR="${D}" install
if use gui; then
emake -C qt DESTDIR="${D}" install
fi
einstalldocs
if use examples ; then
docinto examples
dodoc common/{config-example-local,config-example-ssh}
fi
python_optimize "${D}"
}