1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 DESCRIPTION="Extremely fast non-cryptographic hash algorithm"
9 HOMEPAGE="https://www.xxhash.com"
10 SRC_URI="https://github.com/Cyan4973/xxHash/archive/v${PV}.tar.gz -> ${P}.tar.gz"
12 LICENSE="BSD-2 GPL-2+"
13 # https://abi-laboratory.pro/tracker/timeline/xxhash
15 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-macos"
18 S="${WORKDIR}/xxHash-${PV}"
21 PREFIX="${EPREFIX}/usr" \
22 LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
23 emake AR="$(tc-getAR)" CC="$(tc-getCC)"
27 PREFIX="${EPREFIX}/usr" \
28 LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
29 MANDIR="${EPREFIX}/usr/share/man/man1" \
30 emake DESTDIR="${D}" install
32 if ! use static-libs ; then
33 rm "${ED}"/usr/$(get_libdir)/libxxhash.a || die