aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/highwayhash/Manifest1
-rw-r--r--dev-cpp/highwayhash/highwayhash-20200922.ebuild30
2 files changed, 31 insertions, 0 deletions
diff --git a/dev-cpp/highwayhash/Manifest b/dev-cpp/highwayhash/Manifest
index 40ba9bd4b..82ba0c3b4 100644
--- a/dev-cpp/highwayhash/Manifest
+++ b/dev-cpp/highwayhash/Manifest
@@ -1 +1,2 @@
DIST highwayhash-20180209.tar.gz 152323 BLAKE2B 7151ba6e68ae5c9b32311b962364e77512f609c14bcf43d68f0c938c2ad6ffc5548eb2fb9bfc4b97fe096979a068d3b6342999ca33ea0d51c503a04300845b25 SHA512 00b64db0c27ddc25fe683f4032e21756326ac3fd95e27fa5033cdaf61d89cfec56b990581545e048c596d943ad4fb0efaf4158660ff0ded134e764b1f2db2bc8
+DIST highwayhash-20200922.tar.gz 160264 BLAKE2B f37074a97c8465f0a4720f7f0ebab6eece851da64f872eb8aeb40c6d11ddc073aa6e7e4bfa91908d4ca806b4fd5804a9f40cea729e0fcc6a333f1092ddd33e86 SHA512 4117612b8ea3bc5c10296cefcfda07f6b12f81bac4112a5f5479edee1731c3442fa4d31584f3b0b876c95b02783730ea349ac975ae51d409ff55ace6322bdfe1
diff --git a/dev-cpp/highwayhash/highwayhash-20200922.ebuild b/dev-cpp/highwayhash/highwayhash-20200922.ebuild
new file mode 100644
index 000000000..8483be41f
--- /dev/null
+++ b/dev-cpp/highwayhash/highwayhash-20200922.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Fast strong hash functions: SipHash/HighwayHash"
+HOMEPAGE="https://github.com/google/highwayhash"
+COMMIT="bdd572de8cfa3a1fbef6ba32307c2629db7c4773"
+SRC_URI="https://github.com/google/highwayhash/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+src_prepare() {
+ sed -i "/CXXFLAGS/s/-O3/${CXXFLAGS}/" Makefile || die
+ default
+}
+
+src_install() {
+ emake DESTDIR="${ED}"\
+ INCDIR="/usr/include" \
+ LIBDIR="/usr/$(get_libdir)" \
+ install
+ use static-libs || \
+ rm "${ED}"/${EPREFIX}/usr/$(get_libdir)/lib*.a || die
+ einstalldocs
+}