summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2017-11-28 17:23:07 -0600
committerAustin English <wizardedit@gentoo.org>2017-11-29 15:29:26 -0600
commit1239b5aa9b7fe770adc9c2a7f3b73991cfe2fb2a (patch)
treee8d99c4b16ff85c34b665c46ed17b219ea575642 /app-admin/github-backup-utils/github-backup-utils-2.11.0-r1.ebuild
parentdev-python/gevent-websocket: version bump to 0.10.1 (diff)
downloadgentoo-1239b5aa9b7fe770adc9c2a7f3b73991cfe2fb2a.tar.gz
gentoo-1239b5aa9b7fe770adc9c2a7f3b73991cfe2fb2a.tar.bz2
gentoo-1239b5aa9b7fe770adc9c2a7f3b73991cfe2fb2a.zip
app-admin/github-backup-utils: fix test failures
Gentoo-Bug: https://bugs.gentoo.org/629628 Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'app-admin/github-backup-utils/github-backup-utils-2.11.0-r1.ebuild')
-rw-r--r--app-admin/github-backup-utils/github-backup-utils-2.11.0-r1.ebuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/app-admin/github-backup-utils/github-backup-utils-2.11.0-r1.ebuild b/app-admin/github-backup-utils/github-backup-utils-2.11.0-r1.ebuild
new file mode 100644
index 000000000000..ffe55dede38c
--- /dev/null
+++ b/app-admin/github-backup-utils/github-backup-utils-2.11.0-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# See https://github.com/github/backup-utils/issues/135
+PYTHON_COMPAT=(python2_7)
+inherit python-any-r1
+
+DESCRIPTION="Backup and recovery utilities for GitHub Enterprise"
+HOMEPAGE="https://github.com/github/backup-utils"
+SRC_URI="https://github.com/github/backup-utils/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+DEPEND="test? (
+ dev-util/checkbashisms
+ sys-apps/moreutils
+ ${PYTHON_DEPS}
+)"
+
+RDEPEND="net-misc/rsync"
+
+MY_PN="${PN/#github-/}"
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ default
+
+ # skip a test that depends on a git checkout: https://bugs.gentoo.org/629628
+ eapply "${FILESDIR}/github-backup-utils-tarball-fix.patch"
+
+ # Fix for python3 systems
+ eapply "${FILESDIR}/github-backup-utils-python27.patch"
+}
+
+src_compile() {
+ :;
+}
+
+src_install() {
+ dobin bin/*
+ insinto usr/share/${PN}
+ doins share/${PN}/version
+
+ exeinto usr/share/${PN}
+ doexe share/${PN}/bm.sh
+ doexe share/${PN}/ghe-*
+
+ insinto etc/${PN}
+ newins backup.config-example backup.config
+}
+
+src_test() {
+ emake test
+}