Skip to content

Commit a001b5f

Browse files
authored
Merge pull request Homebrew#194334 from thedodd/update-trunk.rb-1728907809
trunk 0.21.0
2 parents 1e5c9d9 + 1c06a0b commit a001b5f

File tree

1 file changed

+25
-15
lines changed

1 file changed

+25
-15
lines changed

Formula/t/trunk.rb

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,46 @@
11
class Trunk < Formula
22
desc "Build, bundle & ship your Rust WASM application to the web"
33
homepage "https://trunkrs.dev/"
4-
url "https://github.com/trunk-rs/trunk/archive/refs/tags/v0.20.3.tar.gz"
5-
sha256 "388d42cef7b8e78081c3371f31e11db6aba69b65c5c89ccf2f0d537922e4ddce"
4+
url "https://github.com/trunk-rs/trunk/archive/refs/tags/v0.21.0.tar.gz"
5+
sha256 "648ff0f89fe461d4977f389e38c5780cd79762ff5caf81e610c37461ea4801d9"
66
license any_of: ["Apache-2.0", "MIT"]
77
head "https://github.com/trunk-rs/trunk.git", branch: "main"
88

99
bottle do
10-
sha256 cellar: :any_skip_relocation, arm64_sequoia: "b82cde9a326c740d8f9618216ead5bd2451f493f163cf9dbecabc191a9fbfe1a"
11-
sha256 cellar: :any_skip_relocation, arm64_sonoma: "225960f46ef7bb1fd7fc1cadc4acbc5d28c63b464787f915d1412a8ed1c90063"
12-
sha256 cellar: :any_skip_relocation, arm64_ventura: "ecf10a431d211be0fd580ecbe04d01e4905f6bbf70c9184a90b5b9371ee32d03"
13-
sha256 cellar: :any_skip_relocation, arm64_monterey: "f40dbc5c8b598a82ac412392d1c82c44f62d3bb2dba3c2af45bfe35957939fc5"
14-
sha256 cellar: :any_skip_relocation, sonoma: "8ebe24c4876cc64c3058da67a916676bd665d98b7fad334950a37422989f0597"
15-
sha256 cellar: :any_skip_relocation, ventura: "2bad73afc354e3b2efbb6aaf9f5c197417be456b1a9d659ca12ea3195ef5f421"
16-
sha256 cellar: :any_skip_relocation, monterey: "1db08c37f33e5ce2a5eca4e370806ba3bb7f98fa541ff6ef2275d12da7bd0c70"
17-
sha256 cellar: :any_skip_relocation, x86_64_linux: "438dc11fa6e20c369e671959cef235aebbb5f81ebf0228ec0b375ed3868b5604"
10+
sha256 cellar: :any, arm64_sequoia: "4d58d1521310372e7e7b8b5eafa628c0a5b85b7c4fe200615ed9a296b3f673b1"
11+
sha256 cellar: :any, arm64_sonoma: "d2b3daa89791ee212c7bcd7a6dd7988ba0fb62c57d98f314e09e5ef9ef4b011f"
12+
sha256 cellar: :any, arm64_ventura: "5671d501ec6e13b4e41fb8397089f347f335930bdf073ceb407a513499529617"
13+
sha256 cellar: :any, sonoma: "39e76eed3e4f311e1b98731c9ac486e0fd10ede505fe1dc57f5ccffe95ecf5b3"
14+
sha256 cellar: :any, ventura: "dfe91a68b3d9f853fe96c83340550a3d67ab04f27dc91fbc8566ec14c60a4ead"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "1989dedcf63ca26f23b1830b86cae42325d1e482369b6c0cc5477780b4813beb"
1816
end
1917

2018
depends_on "pkg-config" => :build
2119
depends_on "rust" => :build
20+
depends_on "openssl@3"
2221

2322
uses_from_macos "bzip2"
2423

25-
on_linux do
26-
depends_on "openssl@3"
27-
end
28-
2924
def install
25+
# Ensure that the `openssl` crate picks up the intended library.
26+
ENV["OPENSSL_DIR"] = Formula["openssl@3"].opt_prefix
27+
ENV["OPENSSL_NO_VENDOR"] = "1"
28+
3029
system "cargo", "install", *std_cargo_args
3130
end
3231

3332
test do
34-
assert_match "ConfigOpts {\n", shell_output("#{bin}/trunk config show")
33+
ENV["TRUNK_CONFIG"] = testpath/"Trunk.toml"
34+
(testpath/"Trunk.toml").write <<~EOS
35+
trunk-version = ">=0.19.0"
36+
37+
[build]
38+
target = "index.html"
39+
dist = "dist"
40+
EOS
41+
42+
assert_match "Configuration {\n", shell_output("#{bin}/trunk config show")
43+
44+
assert_match version.to_s, shell_output("#{bin}/trunk --version")
3545
end
3646
end

0 commit comments

Comments
 (0)