commit:     6a849dc903c07abd478e7cb1ab9088809170c131
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Thu Sep  5 19:50:53 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 24 19:20:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a849dc9

app-backup/backintime: add 1.5.2, fix license

Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
Part-of: https://github.com/gentoo/gentoo/pull/38465
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-backup/backintime/Manifest                |   1 +
 app-backup/backintime/backintime-1.5.2.ebuild | 102 ++++++++++++++++++++++++++
 2 files changed, 103 insertions(+)

diff --git a/app-backup/backintime/Manifest b/app-backup/backintime/Manifest
index 75dff2a0bb6a..a2354bc3f0db 100644
--- a/app-backup/backintime/Manifest
+++ b/app-backup/backintime/Manifest
@@ -1 +1,2 @@
 DIST backintime-1.5.1.tar.gz 2009248 BLAKE2B 
5136b4c59f5d9e4d8e79b9e004ca666caf494d8613697a6a3ab1c9c31b42cbdcce832f821dc98adda624423101d15c787e730922da479bb7ae657cbf87375ad2
 SHA512 
3c629a49c5eb2e740dfdebd49d8b04cae6a15a1602a68429097d62e652c6fe18b5fdeb45460456c157a1e148cca30a220ccd4decadf7836487ba8c03f075e294
+DIST backintime-1.5.2.tar.gz 2012428 BLAKE2B 
ea593f6cffb7ca2382188eff51fee156ce9ed3258e26ff4abc84252d0809ecae7b8b4c9d13251aef6776e13e2050c124aa400dd8758ef2df421e08cdaf8026bb
 SHA512 
9b33eddb38b85c6490f3eb5b93c2c457933951a39253d563759be4194fd7da0dea55f0884d2b70353861360e4defbe6d646080711a178309ee0161290062eb03

diff --git a/app-backup/backintime/backintime-1.5.2.ebuild 
b/app-backup/backintime/backintime-1.5.2.ebuild
new file mode 100644
index 000000000000..a8750d07a601
--- /dev/null
+++ b/app-backup/backintime/backintime-1.5.2.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+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"
+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.1-no-compress-docs-examples.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() {
+       # pytest should work but it can't find the backintime binary, so
+       # use the unittest-based runner instead.
+       # 
https://github.com/bit-team/backintime/blob/dev/CONTRIBUTING.md#how-to-contribute-to-back-in-time
+       emake -C common test-v
+}
+
+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}"
+}

Reply via email to