commit:     588a9222ed96b4e9fb11f76aa9e2b92cb82aea77
Author:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  2 08:15:49 2025 +0000
Commit:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Sun Feb  2 08:19:43 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=588a9222

dev-libs/xxhash: add 0.8.3

Please note that dispatch is now enabled automatically.
See https://github.com/Cyan4973/xxHash/releases/tag/v0.8.3

Closes: https://bugs.gentoo.org/831975
Closes: https://bugs.gentoo.org/947902
Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>

 dev-libs/xxhash/Manifest            |  1 +
 dev-libs/xxhash/xxhash-0.8.3.ebuild | 42 +++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/dev-libs/xxhash/Manifest b/dev-libs/xxhash/Manifest
index be3b82a468e2..21b2673f12c4 100644
--- a/dev-libs/xxhash/Manifest
+++ b/dev-libs/xxhash/Manifest
@@ -1,2 +1,3 @@
 DIST xxhash-0.8.1.tar.gz 171552 BLAKE2B 
c0efc1aabf68130d7028a6e43fb04826de4ec485bfb5e915bd9dad823149b970f964784e14c35babd46b9811b961ce3d0be49feb1640e00780decf037427f5fc
 SHA512 
12feedd6a1859ef55e27218dbd6dcceccbb5a4da34cd80240d2f7d44cd246c7afdeb59830c2d5b90189bb5159293532208bf5bb622250102e12d6e1bad14a193
 DIST xxhash-0.8.2.tar.gz 1141188 BLAKE2B 
735408256240760778fa516e01bed428f04837eb4e059c512e924f13e4a96db6cacbbefb04dea65a37b0f25b52cf13c4927a6e7870dc8c0d45b1b955d4ba3da1
 SHA512 
3e3eef21432fe88bc4dd9940ccad0308fdea3537b06fa5ac0e74c1bde53413dff29c8b3fc617a8a42b9ce88fcf213311d338a31b1ce73b3729342c9e68f06c78
+DIST xxhash-0.8.3.tar.gz 1147630 BLAKE2B 
75923c7c5df3490062791fa02ccddfb7281b3646e2b3e4b4a0c0d611c339e07c8d9cb656777fd0fcec9cda484f7b33edf080116bb011f70d6b8299cda63afa4e
 SHA512 
8b5c8b9aad4e869f28310b12cc314037feda81d92f26c23eaecdb35dc65042ca2e65f2e9606033e62a31bcc737a9a950500ffcbdb8677d6ab20e820ea14f2b79

diff --git a/dev-libs/xxhash/xxhash-0.8.3.ebuild 
b/dev-libs/xxhash/xxhash-0.8.3.ebuild
new file mode 100644
index 000000000000..ea7c8a6d21a2
--- /dev/null
+++ b/dev-libs/xxhash/xxhash-0.8.3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib-minimal toolchain-funcs
+
+DESCRIPTION="Extremely fast non-cryptographic hash algorithm"
+HOMEPAGE="https://xxhash.com/";
+SRC_URI="https://github.com/Cyan4973/xxHash/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+S=${WORKDIR}/xxHash-${PV}
+
+LICENSE="BSD-2 GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~x64-macos"
+
+src_prepare() {
+       default
+
+       multilib_copy_sources
+}
+
+multilib_src_compile() {
+       emake AR="$(tc-getAR)" CC="$(tc-getCC)"
+}
+
+multilib_src_test() {
+       emake CC="$(tc-getCC)" check
+}
+
+multilib_src_install() {
+       local emakeargs=(
+               DESTDIR="${D}"
+               PREFIX="${EPREFIX}"/usr
+               LIBDIR="${EPREFIX}"/usr/$(get_libdir)
+       )
+
+       emake "${emakeargs[@]}" install
+       einstalldocs
+
+       rm "${ED}"/usr/$(get_libdir)/libxxhash.a || die
+}

Reply via email to