Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

b*: use std_npm_args #178967

Merged
merged 12 commits into from
Aug 1, 2024
20 changes: 10 additions & 10 deletions Formula/b/babel.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "language/node"
require "json"

class Babel < Formula
Expand All @@ -9,13 +8,14 @@ class Babel < Formula
license "MIT"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "4e1909b2f685fb27c48edb0b1796c7978094378602decc65d6e2a55dde70fccf"
sha256 cellar: :any_skip_relocation, arm64_ventura: "4e1909b2f685fb27c48edb0b1796c7978094378602decc65d6e2a55dde70fccf"
sha256 cellar: :any_skip_relocation, arm64_monterey: "4e1909b2f685fb27c48edb0b1796c7978094378602decc65d6e2a55dde70fccf"
sha256 cellar: :any_skip_relocation, sonoma: "bb5ef195bc8b9df1db4ba6853e5039b2a517711739cf913a5abafde072faa6b2"
sha256 cellar: :any_skip_relocation, ventura: "bb5ef195bc8b9df1db4ba6853e5039b2a517711739cf913a5abafde072faa6b2"
sha256 cellar: :any_skip_relocation, monterey: "4e1909b2f685fb27c48edb0b1796c7978094378602decc65d6e2a55dde70fccf"
sha256 cellar: :any_skip_relocation, x86_64_linux: "9af7f9fd8b98b7e1aad7b6027241f75dc491a9ee4292db01e2620de818fc451b"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "6dd5647d696698bb8a880823ddb5211d2a3fad7746e08c28623ca535a5052078"
sha256 cellar: :any_skip_relocation, arm64_ventura: "6dd5647d696698bb8a880823ddb5211d2a3fad7746e08c28623ca535a5052078"
sha256 cellar: :any_skip_relocation, arm64_monterey: "6dd5647d696698bb8a880823ddb5211d2a3fad7746e08c28623ca535a5052078"
sha256 cellar: :any_skip_relocation, sonoma: "6dd5647d696698bb8a880823ddb5211d2a3fad7746e08c28623ca535a5052078"
sha256 cellar: :any_skip_relocation, ventura: "6dd5647d696698bb8a880823ddb5211d2a3fad7746e08c28623ca535a5052078"
sha256 cellar: :any_skip_relocation, monterey: "6dd5647d696698bb8a880823ddb5211d2a3fad7746e08c28623ca535a5052078"
sha256 cellar: :any_skip_relocation, x86_64_linux: "093bd57c05ed3a658e43bbe8f83d3321c01f7a365d2e5e38f70325cafc23024f"
end

depends_on "node"
Expand All @@ -30,10 +30,10 @@ def install
buildpath.install resource("babel-cli")

cd buildpath/"node_modules/@babel/core" do
system "npm", "install", *Language::Node.local_npm_install_args, "--production"
system "npm", "install", *std_npm_args(prefix: false), "--production"
end

system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args
bin.install_symlink Dir["#{libexec}/bin/*"]
end

Expand Down
19 changes: 9 additions & 10 deletions Formula/b/bash-language-server.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class BashLanguageServer < Formula
desc "Language Server for Bash"
homepage "https://github.com/bash-lsp/bash-language-server"
Expand All @@ -8,19 +6,20 @@ class BashLanguageServer < Formula
license "MIT"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "2367c9eb277dad9e05964c8e8a8039efab7c4e0e03f95e7ddfa3b8ced9b39f3a"
sha256 cellar: :any_skip_relocation, arm64_ventura: "2367c9eb277dad9e05964c8e8a8039efab7c4e0e03f95e7ddfa3b8ced9b39f3a"
sha256 cellar: :any_skip_relocation, arm64_monterey: "2367c9eb277dad9e05964c8e8a8039efab7c4e0e03f95e7ddfa3b8ced9b39f3a"
sha256 cellar: :any_skip_relocation, sonoma: "2367c9eb277dad9e05964c8e8a8039efab7c4e0e03f95e7ddfa3b8ced9b39f3a"
sha256 cellar: :any_skip_relocation, ventura: "2367c9eb277dad9e05964c8e8a8039efab7c4e0e03f95e7ddfa3b8ced9b39f3a"
sha256 cellar: :any_skip_relocation, monterey: "2367c9eb277dad9e05964c8e8a8039efab7c4e0e03f95e7ddfa3b8ced9b39f3a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e709a525dda8e236a868884bab24c15b6ea19ae4b1dad823578dc8ec785387eb"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "51ba85e12eebbb1f73c17113ee5cf4db979519a2ee8d61c31b652c841b15fda4"
sha256 cellar: :any_skip_relocation, arm64_ventura: "51ba85e12eebbb1f73c17113ee5cf4db979519a2ee8d61c31b652c841b15fda4"
sha256 cellar: :any_skip_relocation, arm64_monterey: "51ba85e12eebbb1f73c17113ee5cf4db979519a2ee8d61c31b652c841b15fda4"
sha256 cellar: :any_skip_relocation, sonoma: "51ba85e12eebbb1f73c17113ee5cf4db979519a2ee8d61c31b652c841b15fda4"
sha256 cellar: :any_skip_relocation, ventura: "51ba85e12eebbb1f73c17113ee5cf4db979519a2ee8d61c31b652c841b15fda4"
sha256 cellar: :any_skip_relocation, monterey: "51ba85e12eebbb1f73c17113ee5cf4db979519a2ee8d61c31b652c841b15fda4"
sha256 cellar: :any_skip_relocation, x86_64_linux: "1c002af8e83868ebb2664838b79c00f7e4405448547ea5e3d64b889ea2e4f67f"
end

depends_on "node"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args
bin.install_symlink Dir["#{libexec}/bin/*"]
end

Expand Down
19 changes: 9 additions & 10 deletions Formula/b/basti.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Basti < Formula
desc "Securely connect to RDS, Elasticache, and other AWS resources in VPCs"
homepage "https://github.com/basti-app/basti"
Expand All @@ -8,19 +6,20 @@ class Basti < Formula
license "MIT"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "ccdc225c3184b6626369992d27d9e9594f8681af7e42a2cba8b1f18270811666"
sha256 cellar: :any_skip_relocation, arm64_ventura: "235b7fa89efbc8c50ee85683bb46a4667c854cc8e8645145c435de9d6c559b90"
sha256 cellar: :any_skip_relocation, arm64_monterey: "1c6b4e79e74888bacf7586a11689b5e9f1f509fdb5be6bfaadc819e2ee0f8ff3"
sha256 cellar: :any_skip_relocation, sonoma: "1e00da4735be049ee43b2607c012bf4218273149ae2a20d379e2a9aa5be91db7"
sha256 cellar: :any_skip_relocation, ventura: "ca29d9563f42bdccc5b55dff60fc5403736ecc838957d4ac63644f1c4a18ce6a"
sha256 cellar: :any_skip_relocation, monterey: "79039c81499c954dac873a457c2e6bacdaab2bce1b2ff38ea208072bb4ade5f6"
sha256 cellar: :any_skip_relocation, x86_64_linux: "22f542de0159104b75ad6b5251383cb629e280fbbe499545b43fd34efd7918b4"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "e19564aeece7fc2749628f1b327717f0ed1aa365f52b40721aaa374aa3058074"
sha256 cellar: :any_skip_relocation, arm64_ventura: "e19564aeece7fc2749628f1b327717f0ed1aa365f52b40721aaa374aa3058074"
sha256 cellar: :any_skip_relocation, arm64_monterey: "e19564aeece7fc2749628f1b327717f0ed1aa365f52b40721aaa374aa3058074"
sha256 cellar: :any_skip_relocation, sonoma: "1e632db83fe49e15bf89f32d16d71a378b3a35107b4763a185a5f84636413c22"
sha256 cellar: :any_skip_relocation, ventura: "1e632db83fe49e15bf89f32d16d71a378b3a35107b4763a185a5f84636413c22"
sha256 cellar: :any_skip_relocation, monterey: "1e632db83fe49e15bf89f32d16d71a378b3a35107b4763a185a5f84636413c22"
sha256 cellar: :any_skip_relocation, x86_64_linux: "907d5b4c78c66add943f6a57e448c559dcf182138ba6133d098b841093157f35"
end

depends_on "node"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args
bin.install_symlink Dir["#{libexec}/bin/*"]

# Remove incompatible pre-built binary, session-manager-plugin
Expand Down
22 changes: 9 additions & 13 deletions Formula/b/bit.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Bit < Formula
desc "Distributed Code Component Manager"
homepage "https://bit.dev"
Expand All @@ -10,16 +8,14 @@ class Bit < Formula
head "https://github.com/teambit/bit.git", branch: "master"

bottle do
sha256 arm64_sonoma: "b0c394b10c72d4adfb867fc1b506f6d6757a2bd9305d16d0a9cb792b773c7ed5"
sha256 arm64_ventura: "c61128513cd41645552e4438d6f86f6cd96778c77ca29aa4be380a7d0ff9bfe9"
sha256 arm64_monterey: "25d35baef7bc17a6a2ab9d8f3083925f07c18dd40fa3c79c03e1a1eaeeab12fe"
sha256 arm64_big_sur: "4aef1c99d8073edb373e209c739a490c87c8956434e242aa8fd393419ba3baf7"
sha256 sonoma: "71e9cb25136a1825bbdc88a437999effbafbdd62fd1c22ecaee78e796145cdc7"
sha256 ventura: "ac8fc4aaef48145d1ceed6bbdaa63b58f2b6c993bf65a1ca29817154c04f108b"
sha256 monterey: "1b4cefb9480be0579cc849bed266ee8602d5d074f280c9e2c88c47ed28ac3404"
sha256 big_sur: "387868e05ed7c459fde2b0d7c6eb31f889002bfb2628fa54bcc8a33b91f3c6de"
sha256 catalina: "c8122cc1152f05f8daf5087cc02e864d68246412180c927bca1d2cd06123ac70"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c52d219252d60ad76c2cae5d1358d24d4e1de6b787beb6cf53832b972e89adcc"
rebuild 1
sha256 arm64_sonoma: "b69b3a7ba901fd29b6ef35d47b7248a4219b55336ad1cf04dd2f5cd8268387b8"
sha256 arm64_ventura: "37e5de52910eb4d93ff0d8c1d4348b8d1131b691af23ec0db82be76ba32a6417"
sha256 arm64_monterey: "47b532eb0b388e861e2da67c40cf213d4795277c4f7be59cc949fbac656d0e5f"
sha256 sonoma: "a5b469dc4bfc6937d12296c2c768b9dc3a210c8a9e1fe796213823b7ecd68c19"
sha256 ventura: "cbfe314c2c994b80648167a54ecca3cc3fb09c8824ef88f274d935d98ba8aafd"
sha256 monterey: "57c91e19fbc60897fa432f7028898f75d47395239fce208cb9222f83f78a1ac5"
sha256 cellar: :any_skip_relocation, x86_64_linux: "7d998d44c9e7d076515e9363153c1aeaa4c8ddee77f9554152f6af2fab077764"
end

depends_on "node"
Expand All @@ -31,7 +27,7 @@ class Bit < Formula
conflicts_with "bit-git", because: "both install `bit` binaries"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args
bin.install_symlink libexec.glob("bin/*")

# Remove incompatible pre-built binaries
Expand Down
25 changes: 11 additions & 14 deletions Formula/b/bitwarden-cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class BitwardenCli < Formula
desc "Secure and free password manager for all of your devices"
homepage "https://bitwarden.com/"
Expand All @@ -13,26 +11,25 @@ class BitwardenCli < Formula
end

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "711cc5ac937d834e59a007e4de78347a97c8acfdd94817bab1522a2a6740c8e5"
sha256 cellar: :any_skip_relocation, arm64_ventura: "4b2ef0b7f9dbeea0ec9fe94290c5f5ee79f25ca087a76216a3d6efd5f22b1d3b"
sha256 cellar: :any_skip_relocation, arm64_monterey: "12e01176eeca3dfb9bfcb82ae893f203a3672dbb450041116930e2e9daf3ec4b"
sha256 cellar: :any_skip_relocation, sonoma: "a81f956a41874b4aa6e9a0a342cbcda993b9511e76cda106c7300c1e49059539"
sha256 cellar: :any_skip_relocation, ventura: "c91323e71654a0753fb2b8cc555d84c1fa9ad9262108b92aa18e1bb5e0535b96"
sha256 cellar: :any_skip_relocation, monterey: "c31d3ee2ed80399a5f00c68a9590d32b80927f9a16eea49fa55f41b514e05f6f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "dd14f3cbf054c40792b0f0b9e985fba9e99c20855dcc6e8ec79c4228a16fb18c"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "62981189e5dc48300a569d46e4715971503ccf67961cb8179d5640c79f6273e3"
sha256 cellar: :any_skip_relocation, arm64_ventura: "5885f6bf3a742d7ee3c756e30d0107a9ecd25b1368458611ae5734050f9875bf"
sha256 cellar: :any_skip_relocation, arm64_monterey: "2ed398d05150c71293f934543a149490668cf0edd9cce9b9058d154c5255b367"
sha256 cellar: :any_skip_relocation, sonoma: "182870118b975e4ac4dd5f17571c8fe44563da2ff8da201c25536fcc29875e77"
sha256 cellar: :any_skip_relocation, ventura: "6af180ca8807842a194282a789dfbc944c40b40235fe0e80aa660d1eba75cbda"
sha256 cellar: :any_skip_relocation, monterey: "17d4695f522e1c15e8b56b63c7aa81abe4aab96fdad42e9b3be3fd23be668e67"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b69bff8e769adee84a006cfcdce42471a5cc53a8548cc4ece2c712ec65d13166"
end

depends_on "node"

def install
Language::Node.setup_npm_environment
system "npm", "ci", "--ignore-scripts"
cli_root = buildpath/"apps/cli" # Bitwarden's source code is a monorepo
cd cli_root do
cd buildpath/"apps/cli" do
# The `oss` build of Bitwarden is a GPL backed build
system "npm", "run", "build:oss:prod", "--ignore-scripts"
cd cli_root/"build" do
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
cd "./build" do
system "npm", "install", *std_npm_args
bin.install_symlink Dir[libexec/"bin/*"]
end
end
Expand Down
22 changes: 9 additions & 13 deletions Formula/b/bower.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Bower < Formula
desc "Package manager for the web"
homepage "https://bower.io/"
Expand All @@ -8,22 +6,20 @@ class Bower < Formula
license "MIT"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "4a7cf654c72c83b4a8174d3f7032d23973f2ea006af124d89b22572112c391f0"
sha256 cellar: :any_skip_relocation, arm64_ventura: "4f83f0b7576c438668ad19edcfab2606901bcd5f9092cf62c45b70d8b4778235"
sha256 cellar: :any_skip_relocation, arm64_monterey: "4f83f0b7576c438668ad19edcfab2606901bcd5f9092cf62c45b70d8b4778235"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "4f83f0b7576c438668ad19edcfab2606901bcd5f9092cf62c45b70d8b4778235"
sha256 cellar: :any_skip_relocation, sonoma: "838735f8ef3d7b581bc7380ef13c7f0cb14b04d556ef5d5f97137670b6292234"
sha256 cellar: :any_skip_relocation, ventura: "f155eb229286bef7f21e55ada513c525913b38cc8db1d86a3b47fc7ee9a1f1fe"
sha256 cellar: :any_skip_relocation, monterey: "f155eb229286bef7f21e55ada513c525913b38cc8db1d86a3b47fc7ee9a1f1fe"
sha256 cellar: :any_skip_relocation, big_sur: "f155eb229286bef7f21e55ada513c525913b38cc8db1d86a3b47fc7ee9a1f1fe"
sha256 cellar: :any_skip_relocation, catalina: "f155eb229286bef7f21e55ada513c525913b38cc8db1d86a3b47fc7ee9a1f1fe"
sha256 cellar: :any_skip_relocation, x86_64_linux: "4f83f0b7576c438668ad19edcfab2606901bcd5f9092cf62c45b70d8b4778235"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "3e6ffe74d0b616fce08852c9b92624829b867149d990bd0bcc36f45b802e0016"
sha256 cellar: :any_skip_relocation, arm64_ventura: "3e6ffe74d0b616fce08852c9b92624829b867149d990bd0bcc36f45b802e0016"
sha256 cellar: :any_skip_relocation, arm64_monterey: "3e6ffe74d0b616fce08852c9b92624829b867149d990bd0bcc36f45b802e0016"
sha256 cellar: :any_skip_relocation, sonoma: "5e40c22cfa9946b9bf731953c371b9793808754b6903037276be89b7c4c479b5"
sha256 cellar: :any_skip_relocation, ventura: "5e40c22cfa9946b9bf731953c371b9793808754b6903037276be89b7c4c479b5"
sha256 cellar: :any_skip_relocation, monterey: "5e40c22cfa9946b9bf731953c371b9793808754b6903037276be89b7c4c479b5"
sha256 cellar: :any_skip_relocation, x86_64_linux: "771a98dc248a03e567cf7dee75bb4711dd51ff9ff36df04186642c86d8f22263"
end

depends_on "node"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
system "npm", "install", *std_npm_args
bin.install_symlink Dir["#{libexec}/bin/*"]
end

Expand Down
Loading