github-backup-utils-2.7.0.ebuild 868 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. # See https://github.com/github/backup-utils/issues/135
  5. PYTHON_COMPAT=(python2_7)
  6. inherit python-any-r1
  7. DESCRIPTION="Backup and recovery utilities for GitHub Enterprise"
  8. HOMEPAGE="https://github.com/github/backup-utils"
  9. SRC_URI="https://github.com/github/backup-utils/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  10. LICENSE="MIT"
  11. SLOT="0"
  12. KEYWORDS="~amd64"
  13. IUSE="test"
  14. DEPEND="test? (
  15. dev-util/checkbashisms
  16. ${PYTHON_DEPS}
  17. )"
  18. RDEPEND="net-misc/rsync"
  19. MY_PN="${PN/#github-/}"
  20. S="${WORKDIR}/${MY_PN}-${PV}"
  21. src_compile() {
  22. :;
  23. }
  24. src_install() {
  25. dobin bin/*
  26. insinto usr/share/${PN}
  27. doins share/${PN}/version
  28. exeinto usr/share/${PN}
  29. doexe share/${PN}/ghe-*
  30. insinto etc/${PN}
  31. newins backup.config-example backup.config
  32. }
  33. src_test() {
  34. emake test
  35. }