Skip to content

Commit 485e1e5

Browse files
authored
Merge pull request Homebrew#200950 from Homebrew/bump-webtorrent-cli-5.1.3
webtorrent-cli 5.1.3
2 parents 3d6ecb2 + 3babb5c commit 485e1e5

File tree

1 file changed

+33
-15
lines changed

1 file changed

+33
-15
lines changed

Formula/w/webtorrent-cli.rb

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,53 @@
11
class WebtorrentCli < Formula
22
desc "Command-line streaming torrent client"
33
homepage "https://webtorrent.io/"
4-
url "https://registry.npmjs.org/webtorrent-cli/-/webtorrent-cli-4.1.0.tgz"
5-
sha256 "3b7bac7470e65540e45ed92b8b8d70008bbeca36bf96e81318c15bb9dee8b942"
4+
url "https://registry.npmjs.org/webtorrent-cli/-/webtorrent-cli-5.1.3.tgz"
5+
sha256 "54a53ecdacbccf0f6855bd4ef18f4f154576f8346e3b7aef3792b66dd5aaaa1b"
66
license "MIT"
77

88
bottle do
9-
sha256 arm64_sequoia: "ecd646330d6ddbc709a443847e787cf35abc23b43865aa5ba3de186971b5118f"
10-
sha256 arm64_sonoma: "15ab8aafa171323e2e057633f8cfff9f23347cdf7f79777082a5b059d26eb19f"
11-
sha256 arm64_ventura: "be8479b3f65c2a5c11794f53d04ee02357a76bf3c65f5bc410ffc09e805906f8"
12-
sha256 arm64_monterey: "0e582b5e95bd7ae1462caca1b66e796fa83553b75dcf9c1b98b7e4e36f2f57bf"
13-
sha256 arm64_big_sur: "4658471f872e03c58d8f1ace044942a3debb7e6ad9dbf2a1ac9546e93efde890"
14-
sha256 sonoma: "94a07b753cec7f30b5270432acd7002e577cd89f76df36ac1c0834c94dad7743"
15-
sha256 ventura: "7fabff21cbe0391c790a9c05b0a98694ce054223981e012c1d0e65932ff8f63a"
16-
sha256 monterey: "257f5b960d1291aa153aff64eb1785ae36512bb78516d7d2d132d52a9ff44671"
17-
sha256 big_sur: "3dc242aefbede7812f1bf60486f7f6627590942b96e44af31197cfaf088e7d0f"
18-
sha256 catalina: "066aab7a937b40b19e50cc2efe6e336aa89dccbd958022d79e8956a10aa4eaa3"
19-
sha256 cellar: :any_skip_relocation, x86_64_linux: "5b87f6ede3b7fa60052d477c30c12c72f2cf0d2c50223376d05579c5f43e7ee1"
9+
sha256 arm64_sequoia: "2f51039320fd1f4c65622c16387998ea51c75e9cc686f2f28e3f4c8d487948ee"
10+
sha256 arm64_sonoma: "5426246ae8ca317d1400c9c303b8b31fb38ccbe53c29c450b6258203d0ab4aa1"
11+
sha256 arm64_ventura: "255d4b3c1c1f5637c67841c04df5b77d515f2f3aef49fbebd9c1d701b853bb63"
12+
sha256 sonoma: "2e1bb535aa93a68bbaa5da0dd2317ce6e76b7b2ddc325ac13052214fac5fe4c2"
13+
sha256 ventura: "e690cb2c937766b9d500d255f79518937ac010c12a35586f4739e012a7d950b1"
14+
sha256 x86_64_linux: "7684212b75eba13057dada394e1658bfb06d061b67da5e90809837c590eb1eb3"
2015
end
2116

17+
depends_on "cmake" => :build
18+
depends_on "ninja" => :build
2219
depends_on "node"
2320

2421
def install
2522
system "npm", "install", *std_npm_args
2623
bin.install_symlink Dir["#{libexec}/bin/*"]
2724

25+
nm = libexec/"lib/node_modules/webtorrent-cli/node_modules"
26+
27+
# Delete files that references to the Homebrew shims directory
28+
sb = nm/"node-datachannel/build"
29+
rm [
30+
sb/"CMakeFiles/CMakeConfigureLog.yaml",
31+
sb/"CMakeFiles/rules.ninja",
32+
sb/"CMakeFiles/3.31.2/CMakeCXXCompiler.cmake",
33+
sb/"CMakeFiles/3.31.2/CMakeCCompiler.cmake",
34+
sb/"_deps/libdatachannel-subbuild/CMakeLists.txt",
35+
sb/"_deps/libdatachannel-subbuild/libdatachannel-populate-prefix/tmp/libdatachannel-populate-gitclone.cmake",
36+
sb/"_deps/libdatachannel-subbuild/libdatachannel-populate-prefix/tmp/libdatachannel-populate-gitupdate.cmake",
37+
sb/"CMakeCache.txt",
38+
]
39+
2840
# Remove incompatible pre-built binaries
2941
os = OS.kernel_name.downcase
3042
arch = Hardware::CPU.intel? ? "x64" : Hardware::CPU.arch.to_s
31-
libexec.glob("lib/node_modules/webtorrent-cli/node_modules/{bufferutil,utp-native,utf-8-validate}/prebuilds/*")
32-
.each { |dir| rm_r(dir) if dir.basename.to_s != "#{os}-#{arch}" }
43+
pb = nm/"{bare-fs,bare-os,bufferutil,fs-native-extensions,utp-native,utf-8-validate}"
44+
libexec.glob(pb/"prebuilds/*").each do |dir|
45+
rm_r(dir) if dir.basename.to_s != "#{os}-#{arch}"
46+
dir.glob("*.musl.node").map(&:unlink) if OS.linux?
47+
end
48+
49+
# Replace universal binaries with native slices
50+
deuniversalize_machos
3351
end
3452

3553
test do

0 commit comments

Comments
 (0)