bdelta-0.3.1.ebuild 973 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. if [[ ${PV} = *9999* ]]; then
  5. EGIT_REPO_URI="git://github.com/jjwhitney/BDelta.git"
  6. UNPACKER_ECLASS="git-2"
  7. LIVE_EBUILD=yes
  8. else
  9. UNPACKER_ECLASS="vcs-snapshot"
  10. fi
  11. inherit eutils multilib toolchain-funcs ${UNPACKER_ECLASS}
  12. if [[ -z ${LIVE_EBUILD} ]]; then
  13. KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-linux"
  14. SRC_URI="https://github.com/jjwhitney/BDelta/tarball/v${PV} -> ${P}.tar.gz"
  15. fi
  16. DESCRIPTION="Binary Delta - Efficient difference algorithm and format"
  17. HOMEPAGE="http://bdelta.org"
  18. SLOT="0"
  19. LICENSE="MPL-2.0"
  20. IUSE=""
  21. src_prepare() {
  22. epatch "${FILESDIR}"/${P}-soname.patch
  23. epatch "${FILESDIR}"/${P}-gcc-6.patch
  24. }
  25. src_compile() {
  26. emake -C src \
  27. CXX="$(tc-getCXX)" \
  28. CXXFLAGS="${CXXFLAGS}"
  29. }
  30. src_install() {
  31. emake -C src install \
  32. DESTDIR="${D}" \
  33. PREFIX="${EPREFIX}/usr" \
  34. LIBDIR="${EPREFIX}/usr/$(get_libdir)"
  35. dodoc README
  36. }