Diff xxhash-0.8.2 with a xxhash-0.8.3
| /usr/portage/dev-libs/xxhash/xxhash-0.8.3.ebuild 2025-11-23 18:18:02.445156260 +0300 | ||
|---|---|---|
| 3 | 3 | |
| 4 | 4 |
EAPI=8 |
| 5 | 5 | |
| 6 |
inherit multilib-minimal toolchain-funcs |
|
| 6 |
inherit flag-o-matic multilib-minimal toolchain-funcs |
|
| 7 | 7 | |
| 8 | 8 |
DESCRIPTION="Extremely fast non-cryptographic hash algorithm" |
| 9 | 9 |
HOMEPAGE="https://xxhash.com/" |
| ... | ... | |
| 11 | 11 |
S=${WORKDIR}/xxHash-${PV}
|
| 12 | 12 | |
| 13 | 13 |
LICENSE="BSD-2 GPL-2+" |
| 14 |
# https://abi-laboratory.pro/tracker/timeline/xxhash |
|
| 15 | 14 |
SLOT="0" |
| 16 |
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos" |
|
| 15 |
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos ~x64-solaris" |
|
| 17 | 16 | |
| 18 | 17 |
src_prepare() {
|
| 19 | 18 |
default |
| ... | ... | |
| 21 | 20 |
multilib_copy_sources |
| 22 | 21 |
} |
| 23 | 22 | |
| 23 |
src_configure() {
|
|
| 24 |
# Needed for -Og to be buildable, otherwise fails a/ always_inline (bug #961093) |
|
| 25 |
# https://github.com/Cyan4973/xxHash?tab=readme-ov-file#binary-size-control |
|
| 26 |
is-flagq '-Og' && append-cppflags -DXXH_NO_INLINE_HINTS |
|
| 27 |
multilib-minimal_src_configure |
|
| 28 |
} |
|
| 29 | ||
| 30 |
myemake() {
|
|
| 31 |
emake \ |
|
| 32 |
AR="$(tc-getAR)" \ |
|
| 33 |
CC="$(tc-getCC)" \ |
|
| 34 |
"${@}"
|
|
| 35 |
} |
|
| 36 | ||
| 24 | 37 |
multilib_src_compile() {
|
| 25 |
emake AR="$(tc-getAR)" CC="$(tc-getCC)" |
|
| 38 |
myemake |
|
| 26 | 39 |
} |
| 27 | 40 | |
| 28 | 41 |
multilib_src_test() {
|
| 29 |
emake CC="$(tc-getCC)" check |
|
| 42 |
# Injecting CPPFLAGS into CFLAGS is needed for test_sanity |
|
| 43 |
myemake CFLAGS="${CPPFLAGS} ${CFLAGS}" check
|
|
| 30 | 44 |
} |
| 31 | 45 | |
| 32 | 46 |
multilib_src_install() {
|
| ... | ... | |
| 36 | 50 |
LIBDIR="${EPREFIX}"/usr/$(get_libdir)
|
| 37 | 51 |
) |
| 38 | 52 | |
| 39 |
emake "${emakeargs[@]}" install
|
|
| 53 |
myemake "${emakeargs[@]}" install
|
|
| 40 | 54 |
einstalldocs |
| 41 | 55 | |
| 42 | 56 |
rm "${ED}"/usr/$(get_libdir)/libxxhash.a || die
|