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