37 lines
800 B
Bash
37 lines
800 B
Bash
# Copyright 1999-2015 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/wrk/wrk-3.1.2.ebuild,v 1.1 2015/07/10 04:17:22 patrick Exp $
|
|
|
|
EAPI=5
|
|
|
|
inherit eutils
|
|
|
|
DESCRIPTION="A modern HTTP benchmarking tool"
|
|
HOMEPAGE="https://github.com/wg/wrk"
|
|
SRC_URI="https://github.com/wg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~x86 ~amd64"
|
|
IUSE=""
|
|
|
|
DEPEND="dev-libs/openssl:0
|
|
>=dev-lang/luajit-2.0.2"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_prepare() {
|
|
rm -rf deps/luajit || die "failed to remove bundled luajit"
|
|
epatch "${FILESDIR}/${PN}-3.1.1-makefile.patch"
|
|
}
|
|
|
|
src_compile() {
|
|
tc-export CC
|
|
emake
|
|
}
|
|
|
|
src_install() {
|
|
dobin wrk
|
|
dodoc README NOTICE
|
|
insinto /usr/share/${PN}
|
|
doins -r scripts
|
|
}
|