1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 # See https://github.com/github/backup-utils/issues/135
7 PYTHON_COMPAT=(python2_7)
10 DESCRIPTION="Backup and recovery utilities for GitHub Enterprise"
11 HOMEPAGE="https://github.com/github/backup-utils"
12 SRC_URI="https://github.com/github/backup-utils/archive/v${PV}.tar.gz -> ${P}.tar.gz"
18 RESTRICT="!test? ( test )"
21 dev-util/checkbashisms
26 RDEPEND="net-misc/rsync"
28 MY_PN="${PN/#github-/}"
29 S="${WORKDIR}/${MY_PN}-${PV}"
34 # skip a test that depends on a git checkout: https://bugs.gentoo.org/629628
35 eapply "${FILESDIR}/github-backup-utils-tarball-fix.patch"
37 # Fix for python3 systems
38 eapply "${FILESDIR}/github-backup-utils-python27.patch"
47 insinto usr/share/${PN}
48 doins share/${PN}/version
50 exeinto usr/share/${PN}
51 doexe share/${PN}/bm.sh
52 doexe share/${PN}/ghe-*
55 newins backup.config-example backup.config