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

mako 0.7.4 (new formula) #176268

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1528,6 +1528,7 @@ mailutils
makedepend
makensis
makepkg
mako
man-db
manifest-tool
mantra
Expand Down
29 changes: 29 additions & 0 deletions Formula/m/mako.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
require "language/node"

Check notice on line 1 in Formula/m/mako.rb

View workflow job for this annotation

GitHub Actions / Linux

Installed previously built bottle for mako from

:106e9a6a472 (Merge 8e04d124d93b4ca5517c698d092b97e5422eb470 into 36bcc1f8b65abaf1a5ec2d542f92c0dcc0f9cd41, 2024-07-03)

Check notice on line 1 in Formula/m/mako.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

Installed previously built bottle for mako from

:106e9a6a472 (Merge 8e04d124d93b4ca5517c698d092b97e5422eb470 into 36bcc1f8b65abaf1a5ec2d542f92c0dcc0f9cd41, 2024-07-03)

Check notice on line 1 in Formula/m/mako.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

Installed previously built bottle for mako from

:106e9a6a472 (Merge 8e04d124d93b4ca5517c698d092b97e5422eb470 into 36bcc1f8b65abaf1a5ec2d542f92c0dcc0f9cd41, 2024-07-03)

Check notice on line 1 in Formula/m/mako.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

Installed previously built bottle for mako from

:106e9a6a472 (Merge 8e04d124d93b4ca5517c698d092b97e5422eb470 into 36bcc1f8b65abaf1a5ec2d542f92c0dcc0f9cd41, 2024-07-03)

Check notice on line 1 in Formula/m/mako.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

Installed previously built bottle for mako from

:106e9a6a472 (Merge 8e04d124d93b4ca5517c698d092b97e5422eb470 into 36bcc1f8b65abaf1a5ec2d542f92c0dcc0f9cd41, 2024-07-03)

Check notice on line 1 in Formula/m/mako.rb

View workflow job for this annotation

GitHub Actions / macOS 12-x86_64

Installed previously built bottle for mako from

:106e9a6a472 (Merge 8e04d124d93b4ca5517c698d092b97e5422eb470 into 36bcc1f8b65abaf1a5ec2d542f92c0dcc0f9cd41, 2024-07-03)

Check notice on line 1 in Formula/m/mako.rb

View workflow job for this annotation

GitHub Actions / macOS 12-arm64

Installed previously built bottle for mako from

:106e9a6a472 (Merge 8e04d124d93b4ca5517c698d092b97e5422eb470 into 36bcc1f8b65abaf1a5ec2d542f92c0dcc0f9cd41, 2024-07-03)

class Mako < Formula
desc "Production-grade web bundler based on Rust"
homepage "https://makojs.dev"
url "https://registry.npmjs.org/@umijs/mako/-/mako-0.7.4.tgz"
sha256 "766b99d3116941f67f19cb055c8817c37f52dd1cbeb3b8953e64a3b085a1c38a"
license "MIT"

depends_on "node"

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

# Remove incompatible pre-built binaries
os = OS.kernel_name.downcase
arch = Hardware::CPU.intel? ? "x64" : Hardware::CPU.arch.to_s
libexec.glob("lib/node_modules/@umijs/mako/node_modules/nice-napi/prebuilds/*")
.each { |dir| dir.rmtree if dir.basename.to_s != "#{os}-#{arch}" }
end

test do
assert_match version.to_s, shell_output("#{bin}/mako --version")

output = shell_output("#{bin}/mako build 2>&1", 1)
assert_match(/Load config failed/, output)
end
end
Loading