1 |
commit: 3117fbc5df26ac4b524ef75fdb9e34813ce1f923 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 10 14:36:33 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 10 16:22:09 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3117fbc5 |
7 |
|
8 |
app-benchmarks/wrk: Fix luajit deps |
9 |
|
10 |
Closes: https://bugs.gentoo.org/721924 |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
app-benchmarks/wrk/wrk-4.1.0-r2.ebuild | 62 ++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 62 insertions(+) |
16 |
|
17 |
diff --git a/app-benchmarks/wrk/wrk-4.1.0-r2.ebuild b/app-benchmarks/wrk/wrk-4.1.0-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..23ba20045cb |
20 |
--- /dev/null |
21 |
+++ b/app-benchmarks/wrk/wrk-4.1.0-r2.ebuild |
22 |
@@ -0,0 +1,62 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+inherit toolchain-funcs |
29 |
+ |
30 |
+DESCRIPTION="A HTTP benchmarking tool" |
31 |
+HOMEPAGE="https://www.github.com/wg/wrk" |
32 |
+SRC_URI="https://www.github.com/wg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+KEYWORDS="amd64 x86" |
35 |
+LICENSE="Apache-2.0 BSD MIT" |
36 |
+SLOT="0" |
37 |
+IUSE="libressl" |
38 |
+ |
39 |
+CBUILD="dev-lang/luajit:2" |
40 |
+ |
41 |
+DEPEND=" |
42 |
+ dev-lang/lua:0 |
43 |
+ libressl? ( dev-libs/libressl:0= ) |
44 |
+ !libressl? ( dev-libs/openssl:0= ) |
45 |
+" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ ${CBUILD} |
49 |
+ ${RDEPEND} |
50 |
+" |
51 |
+ |
52 |
+BDEPEND=" |
53 |
+ ${CBUILD} |
54 |
+ virtual/pkgconfig |
55 |
+" |
56 |
+ |
57 |
+DOCS=( |
58 |
+ "CHANGES" |
59 |
+ "NOTICE" |
60 |
+ "README.md" |
61 |
+ "SCRIPTING" |
62 |
+) |
63 |
+ |
64 |
+PATCHES=( "${FILESDIR}/${P}-r1-makefile.patch" ) |
65 |
+ |
66 |
+src_compile() { |
67 |
+ myemakeargs=( |
68 |
+ CC="$(tc-getCC)" |
69 |
+ VER="${PV}" |
70 |
+ WITH_LUAJIT="/usr" |
71 |
+ WITH_OPENSSL="/usr" |
72 |
+ ) |
73 |
+ |
74 |
+ emake "${myemakeargs[@]}" |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ dobin wrk |
79 |
+ |
80 |
+ insinto /usr/share/wrk |
81 |
+ doins -r scripts |
82 |
+ |
83 |
+ einstalldocs |
84 |
+} |