Skip to content

Commit

Permalink
dev-cpp/highwayhash: initial commit
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.24, Repoman-2.3.6
  • Loading branch information
junghans committed May 17, 2018
1 parent 98cf5d2 commit 77c7d6c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-cpp/highwayhash/Manifest
@@ -0,0 +1 @@
DIST highwayhash-20180209.tar.gz 152323 BLAKE2B 7151ba6e68ae5c9b32311b962364e77512f609c14bcf43d68f0c938c2ad6ffc5548eb2fb9bfc4b97fe096979a068d3b6342999ca33ea0d51c503a04300845b25 SHA512 00b64db0c27ddc25fe683f4032e21756326ac3fd95e27fa5033cdaf61d89cfec56b990581545e048c596d943ad4fb0efaf4158660ff0ded134e764b1f2db2bc8
30 changes: 30 additions & 0 deletions dev-cpp/highwayhash/highwayhash-20180209.ebuild
@@ -0,0 +1,30 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="Fast strong hash functions: SipHash/HighwayHash"
HOMEPAGE="https://github.com/google/highwayhash"
COMMIT="14dedecd1de87cb662f7a882ea1578d2384feb2f"
SRC_URI="https://github.com/google/highwayhash/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"

DEPEND=""
RDEPEND="${DEPEND}"

S="${WORKDIR}/${PN}-${COMMIT}"

src_prepare() {
sed -i "/CXXFLAGS/s/-O3/${CXXFLAGS}/" Makefile || die
default
}

src_install() {
emake DESTDIR="${D}" INCDIR="${EPREFIX}/usr/include" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
use static-libs || rm "${D}/${EPREFIX}/usr/$(get_libdir)"/lib*.a || die
einstalldocs
}
8 changes: 8 additions & 0 deletions dev-cpp/highwayhash/metadata.xml
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>junghans@gentoo.org</email>
<name>Christoph Junghans</name>
</maintainer>
</pkgmetadata>

0 comments on commit 77c7d6c

Please sign in to comment.