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

esbuild: build from source #177251

Merged
merged 2 commits into from
Jul 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions Formula/e/esbuild.rb
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
require "language/node"

class Esbuild < Formula
desc "Extremely fast JavaScript bundler and minifier"
homepage "https://esbuild.github.io/"
url "https://registry.npmjs.org/esbuild/-/esbuild-0.23.0.tgz"
sha256 "1ba7823555e8960f2f2fac0b6656840f8de88c2237c00cb666229a887dc81fa7"
url "https://github.com/evanw/esbuild/archive/refs/tags/v0.23.0.tar.gz"
sha256 "473d4d322ddc35f3620d37ecd5d6f40890f33923eeaafa96f5d87db9587e77af"
license "MIT"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "12311234421be478115e187c9013f91ccc8bb12145c3f7dc92c46d89e2bad6d5"
sha256 cellar: :any_skip_relocation, arm64_ventura: "12311234421be478115e187c9013f91ccc8bb12145c3f7dc92c46d89e2bad6d5"
sha256 cellar: :any_skip_relocation, arm64_monterey: "12311234421be478115e187c9013f91ccc8bb12145c3f7dc92c46d89e2bad6d5"
sha256 cellar: :any_skip_relocation, sonoma: "46fd5d8cdf17a57939e8b72cfbdc2df4c73d21cca0666b7ded387d7a5b9429be"
sha256 cellar: :any_skip_relocation, ventura: "46fd5d8cdf17a57939e8b72cfbdc2df4c73d21cca0666b7ded387d7a5b9429be"
sha256 cellar: :any_skip_relocation, monterey: "46fd5d8cdf17a57939e8b72cfbdc2df4c73d21cca0666b7ded387d7a5b9429be"
sha256 cellar: :any_skip_relocation, x86_64_linux: "cf5ea30dc768145e289400d5e95ef9cfd467641b9ce06781334cda6360d59969"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "98279f532b870d25017a1fb370b308c179e25076a8a225ea5ec959428f111ce2"
sha256 cellar: :any_skip_relocation, arm64_ventura: "0bbe6514b794d5f0e9aafdb4b7f08f418133273f4f1525f58b48d7e8604318b5"
sha256 cellar: :any_skip_relocation, arm64_monterey: "ada0cf2a33099a5fc4a010e7dfca8309454d8915a70d37b07d7f82982776013c"
sha256 cellar: :any_skip_relocation, sonoma: "1f0df1ef1dfd0fb24e8d274704535c5c43c72b6b3b6c49a6f10fbcb13200e922"
sha256 cellar: :any_skip_relocation, ventura: "7f6f1549786b26bdc2137bb6cabfb0b9e7ff8301abfc111a5bf256b33938548d"
sha256 cellar: :any_skip_relocation, monterey: "3cb9a7d924a11e2e3590a634aff74badc259f010dc9ea43bb3b6b6b7d9d39bd0"
sha256 cellar: :any_skip_relocation, x86_64_linux: "85aff4baa388f5404943c781633f79efbd2d28f37f928350beb356f2dc0599d6"
end

depends_on "node"
depends_on "go" => :build
depends_on "node" => :test

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
bin.install_symlink Dir["#{libexec}/bin/*"]
ENV["CGO_ENABLED"] = OS.mac? ? "1" : "0"
system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/esbuild"
end

test do
Expand Down
Loading