Skip to content

Commit

Permalink
app-benchmarks/hey: new package
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Zac Medico <[email protected]>
  • Loading branch information
zmedico committed Dec 12, 2018
1 parent b9323ac commit 597b8a1
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-benchmarks/hey/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST hey-0.1.1_p20181017.tar.gz 446212 BLAKE2B b8d55e4f7efb34634b81b5301617c84aea66cb1fdbe973d45317a309b845d4503331618688feeaef2bb9effa82f6d155b68b813a4b5b4f17149245cb7f15b2ec SHA512 ccaf4ca2025ce4cbe10cbeb5d7a43903d7e15fdc20ed9623795bd3c11b0df510c3b51749c5e63502fb0fd3153f18a7d1b65297b11631b5889f719d0619602604
32 changes: 32 additions & 0 deletions app-benchmarks/hey/hey-0.1.1_p20181017.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

EGO_SRC="github.com/rakyll/hey"
EGO_PN=${EGO_SRC}/...
EGIT_COMMIT="01803349acd49d756dafa2cb6ac5b5bfc141fc3b"

inherit golang-build golang-vcs-snapshot

DESCRIPTION="HTTP load generator, ApacheBench (ab) replacement, formerly known as rakyll/boom"
HOMEPAGE="https://github.com/rakyll/hey"
SRC_URI="https://${EGO_SRC}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="test"
IUSE=""
DEPEND=""
RDEPEND=""
S=${WORKDIR}/${P}/src/${EGO_SRC}

src_compile() {
GOPATH="${WORKDIR}/${P}" GOBIN="${WORKDIR}/${P}/bin" \
go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
}

src_install() {
dobin "${WORKDIR}/${P}/bin"/*
dodoc README.md
}
10 changes: 10 additions & 0 deletions app-benchmarks/hey/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
</maintainer>
<upstream>
<remote-id type="github">rakyll/hey</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit 597b8a1

Please sign in to comment.