app-admin/testdisk: x86 stable (bug #639974)
[gentoo.git] / app-admin / github-backup-utils / github-backup-utils-2.10.0-r1.ebuild
1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3
4 EAPI=6
5
6 # See https://github.com/github/backup-utils/issues/135
7 PYTHON_COMPAT=(python2_7)
8 inherit python-any-r1
9
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"
13
14 LICENSE="MIT"
15 SLOT="0"
16 KEYWORDS="~amd64"
17 IUSE="test"
18
19 DEPEND="test? (
20         dev-util/checkbashisms
21         sys-apps/moreutils
22         ${PYTHON_DEPS}
23 )"
24
25 RDEPEND="net-misc/rsync"
26
27 MY_PN="${PN/#github-/}"
28 S="${WORKDIR}/${MY_PN}-${PV}"
29
30 src_prepare() {
31         default
32
33         # skip a test that depends on a git checkout: https://bugs.gentoo.org/629628
34         eapply "${FILESDIR}/github-backup-utils-tarball-fix.patch"
35
36         # Fix for python3 systems
37         eapply "${FILESDIR}/github-backup-utils-python27.patch"
38 }
39
40 src_compile() {
41         :;
42 }
43
44 src_install() {
45         dobin bin/*
46         insinto usr/share/${PN}
47         doins share/${PN}/version
48
49         exeinto usr/share/${PN}
50         doexe share/${PN}/bm.sh
51         doexe share/${PN}/ghe-*
52
53         insinto etc/${PN}
54         newins backup.config-example backup.config
55 }
56
57 src_test() {
58         emake test
59 }