github-backup-utils-2.7.1.ebuild 893 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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}/bm.sh
  30. doexe share/${PN}/ghe-*
  31. insinto etc/${PN}
  32. newins backup.config-example backup.config
  33. }
  34. src_test() {
  35. emake test
  36. }