@@ -3,6 +3,14 @@ class Wrk < Formula
3
3
homepage "https://github.com/wg/wrk"
4
4
url "https://github.com/wg/wrk/archive/4.2.0.tar.gz"
5
5
sha256 "e255f696bff6e329f5d19091da6b06164b8d59d62cb9e673625bdcd27fe7bdad"
6
+ # License is modified Apache 2.0 with addition to Section 4 Redistribution:
7
+ #
8
+ # (e) If the Derivative Work includes substantial changes to features
9
+ # or functionality of the Work, then you must remove the name of
10
+ # the Work, and any derivation thereof, from all copies that you
11
+ # distribute, whether in Source or Object form, except as required
12
+ # in copyright, patent, trademark, and attribution notices.
13
+ license :cannot_represent
6
14
head "https://github.com/wg/wrk.git" , branch : "master"
7
15
8
16
bottle do
@@ -14,21 +22,21 @@ class Wrk < Formula
14
22
sha256 cellar : :any_skip_relocation , x86_64_linux : "971a44b8fc296eb7148763277306af8e022210f4ed518a0a290c82730bd1bfef"
15
23
end
16
24
17
- depends_on "openssl@1.1"
18
-
19
- uses_from_macos "unzip" => :build
20
-
21
- on_linux do
22
- depends_on "makedepend" => :build
23
- depends_on "pkg-config" => :build
24
- end
25
+ depends_on "luajit"
26
+ depends_on "openssl@3"
25
27
26
28
conflicts_with "wrk-trello" , because : "both install `wrk` binaries"
27
29
28
30
def install
29
31
ENV . deparallelize
30
32
ENV [ "MACOSX_DEPLOYMENT_TARGET" ] = MacOS . version
31
- system "make"
33
+ ENV . append_to_cflags "-I#{ Formula [ "luajit" ] . opt_include } /luajit-2.1"
34
+ args = %W[
35
+ WITH_LUAJIT=#{ Formula [ "luajit" ] . opt_prefix }
36
+ WITH_OPENSSL=#{ Formula [ "openssl@3" ] . opt_prefix }
37
+ ]
38
+ args << "VER=#{ version } " unless build . head?
39
+ system "make" , *args
32
40
bin . install "wrk"
33
41
end
34
42
0 commit comments