1 # Copyright 1999-2017 Gentoo Foundation
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"
20 dev-util/checkbashisms
25 RDEPEND="net-misc/rsync"
27 MY_PN="${PN/#github-/}"
28 S="${WORKDIR}/${MY_PN}-${PV}"
33 # skip a test that depends on a git checkout: https://bugs.gentoo.org/629628
34 eapply "${FILESDIR}/github-backup-utils-tarball-fix.patch"
36 # Fix for python3 systems
37 eapply "${FILESDIR}/github-backup-utils-python27.patch"
46 insinto usr/share/${PN}
47 doins share/${PN}/version
49 exeinto usr/share/${PN}
50 doexe share/${PN}/bm.sh
51 doexe share/${PN}/ghe-*
54 newins backup.config-example backup.config