You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-benchmarks/wrk/wrk-4.1.0.ebuild

39 lines
767 B

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
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="~amd64 ~x86"
IUSE="libressl"
DEPEND=">=dev-lang/luajit-2.0.2
dev-lang/lua:0
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:0= )"
RDEPEND="${DEPEND}"
src_prepare() {
rm -rf deps/ || die "failed to remove bundled dependencies"
epatch "${FILESDIR}/${PN}-4.1.0-makefile.patch"
}
src_compile() {
tc-export CC
emake
}
src_install() {
dobin ${PN}
dodoc README.md NOTICE
insinto /usr/share/${PN}
doins -r scripts
}