Сравнение xxhash-0.8.1 с xxhash-0.8.2

/usr/portage/dev-libs/xxhash/xxhash-0.8.2.ebuild 2023-10-09 14:52:29.772368357 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit toolchain-funcs
6
inherit multilib-minimal toolchain-funcs
7 7

  
8 8
DESCRIPTION="Extremely fast non-cryptographic hash algorithm"
9
HOMEPAGE="http://www.xxhash.net"
9
HOMEPAGE="https://xxhash.com/"
10 10
SRC_URI="https://github.com/Cyan4973/xxHash/archive/v${PV}.tar.gz -> ${P}.tar.gz"
11
S=${WORKDIR}/xxHash-${PV}
11 12

  
12 13
LICENSE="BSD-2 GPL-2+"
13 14
# https://abi-laboratory.pro/tracker/timeline/xxhash
14 15
SLOT="0"
15
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
16
IUSE="static-libs"
16
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
17 17

  
18
S="${WORKDIR}/xxHash-${PV}"
18
src_prepare() {
19
	default
19 20

  
20
src_compile() {
21
	PREFIX="${EPREFIX}/usr" \
22
	LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
21
	multilib_copy_sources
22
}
23

  
24
multilib_src_compile() {
23 25
	emake AR="$(tc-getAR)" CC="$(tc-getCC)"
24 26
}
25 27

  
26
src_install() {
27
	PREFIX="${EPREFIX}/usr" \
28
	LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
29
	MANDIR="${EPREFIX}/usr/share/man/man1" \
30
	emake DESTDIR="${D}" install
31

  
32
	# link man pages by hand, bug #829159
33
	dosym xxhsum.1 /usr/share/man/man1/xxh32sum.1
34
	dosym xxhsum.1 /usr/share/man/man1/xxh64sum.1
35
	dosym xxhsum.1 /usr/share/man/man1/xxh128sum.1
36

  
37
	if ! use static-libs ; then
38
		rm "${ED}"/usr/$(get_libdir)/libxxhash.a || die
39
	fi
28
multilib_src_test() {
29
	emake CC="$(tc-getCC)" check
30
}
31

  
32
multilib_src_install() {
33
	local emakeargs=(
34
		DESTDIR="${D}"
35
		PREFIX="${EPREFIX}"/usr
36
		LIBDIR="${EPREFIX}"/usr/$(get_libdir)
37
	)
38

  
39
	emake "${emakeargs[@]}" install
40
	einstalldocs
41

  
42
	rm "${ED}"/usr/$(get_libdir)/libxxhash.a || die
40 43
}
Спасибо!