commit:     adaba2936189cc599ecf2d0edcf506ff25187af5
Author:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Thu Sep 24 17:31:09 2020 +0000
Commit:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
CommitDate: Thu Sep 24 17:31:44 2020 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=adaba293

dev-cpp/highwayhash: version bump to dated ebuild

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>

 dev-cpp/highwayhash/highwayhash-20200922.ebuild | 30 +++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

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
+}

Reply via email to