diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
commit | 93a93e9a3b53c1a73142a305ea1f8136846942ee (patch) | |
tree | b9791a06ab3284e27b568412c59316c66240c682 /dev-libs/xxhash/xxhash-0.8.1.ebuild | |
parent | 2771f79232c273bc2a57d23bf335dd81ccf6af28 (diff) |
gentoo resync : 22.12.2021
Diffstat (limited to 'dev-libs/xxhash/xxhash-0.8.1.ebuild')
-rw-r--r-- | dev-libs/xxhash/xxhash-0.8.1.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-libs/xxhash/xxhash-0.8.1.ebuild b/dev-libs/xxhash/xxhash-0.8.1.ebuild new file mode 100644 index 000000000000..b6f70f5fe92d --- /dev/null +++ b/dev-libs/xxhash/xxhash-0.8.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Extremely fast non-cryptographic hash algorithm" +HOMEPAGE="http://www.xxhash.net" +SRC_URI="https://github.com/Cyan4973/xxHash/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2 GPL-2+" +# https://abi-laboratory.pro/tracker/timeline/xxhash +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="static-libs" + +S="${WORKDIR}/xxHash-${PV}" + +src_compile() { + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + emake AR="$(tc-getAR)" CC="$(tc-getCC)" +} + +src_install() { + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + MANDIR="${EPREFIX}/usr/share/man/man1" \ + emake DESTDIR="${D}" install + + # link man pages by hand, bug #829159 + dosym xxhsum.1 /usr/share/man/man1/xxh32sum.1 + dosym xxhsum.1 /usr/share/man/man1/xxh64sum.1 + dosym xxhsum.1 /usr/share/man/man1/xxh128sum.1 + + if ! use static-libs ; then + rm "${ED}"/usr/$(get_libdir)/libxxhash.a || die + fi +} |