Skip to content

Commit ff52ebd

Browse files
cho-mBrewTestBot
authored andcommitted
wrk: unbundle LuaJIT and OpenSSL
Closes Homebrew#113104. Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
1 parent e4211cd commit ff52ebd

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

Formula/wrk.rb

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ class Wrk < Formula
33
homepage "https://github.com/wg/wrk"
44
url "https://github.com/wg/wrk/archive/4.2.0.tar.gz"
55
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
614
head "https://github.com/wg/wrk.git", branch: "master"
715

816
bottle do
@@ -14,21 +22,21 @@ class Wrk < Formula
1422
sha256 cellar: :any_skip_relocation, x86_64_linux: "971a44b8fc296eb7148763277306af8e022210f4ed518a0a290c82730bd1bfef"
1523
end
1624

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"
2527

2628
conflicts_with "wrk-trello", because: "both install `wrk` binaries"
2729

2830
def install
2931
ENV.deparallelize
3032
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
3240
bin.install "wrk"
3341
end
3442

0 commit comments

Comments
 (0)