summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2020-05-10 16:36:33 +0200
committerConrad Kostecki <conikost@gentoo.org>2020-05-10 18:22:09 +0200
commit3117fbc5df26ac4b524ef75fdb9e34813ce1f923 (patch)
tree1dbed30f64a846b78be29728200dc2f1928badc3 /app-benchmarks
parentkde-apps/kio-extras: Drop 20.04.0 (diff)
downloadgentoo-3117fbc5df26ac4b524ef75fdb9e34813ce1f923.tar.gz
gentoo-3117fbc5df26ac4b524ef75fdb9e34813ce1f923.tar.bz2
gentoo-3117fbc5df26ac4b524ef75fdb9e34813ce1f923.zip
app-benchmarks/wrk: Fix luajit deps
Closes: https://bugs.gentoo.org/721924 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-benchmarks')
-rw-r--r--app-benchmarks/wrk/wrk-4.1.0-r2.ebuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/app-benchmarks/wrk/wrk-4.1.0-r2.ebuild b/app-benchmarks/wrk/wrk-4.1.0-r2.ebuild
new file mode 100644
index 00000000000..23ba20045cb
--- /dev/null
+++ b/app-benchmarks/wrk/wrk-4.1.0-r2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="A HTTP benchmarking tool"
+HOMEPAGE="https://www.github.com/wg/wrk"
+SRC_URI="https://www.github.com/wg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS="amd64 x86"
+LICENSE="Apache-2.0 BSD MIT"
+SLOT="0"
+IUSE="libressl"
+
+CBUILD="dev-lang/luajit:2"
+
+DEPEND="
+ dev-lang/lua:0
+ libressl? ( dev-libs/libressl:0= )
+ !libressl? ( dev-libs/openssl:0= )
+"
+
+RDEPEND="
+ ${CBUILD}
+ ${RDEPEND}
+"
+
+BDEPEND="
+ ${CBUILD}
+ virtual/pkgconfig
+"
+
+DOCS=(
+ "CHANGES"
+ "NOTICE"
+ "README.md"
+ "SCRIPTING"
+)
+
+PATCHES=( "${FILESDIR}/${P}-r1-makefile.patch" )
+
+src_compile() {
+ myemakeargs=(
+ CC="$(tc-getCC)"
+ VER="${PV}"
+ WITH_LUAJIT="/usr"
+ WITH_OPENSSL="/usr"
+ )
+
+ emake "${myemakeargs[@]}"
+}
+
+src_install() {
+ dobin wrk
+
+ insinto /usr/share/wrk
+ doins -r scripts
+
+ einstalldocs
+}