homebrew-core/Formula/node-build.rb

31 lines
761 B
Ruby

class NodeBuild < Formula
desc "Install NodeJS versions"
homepage "https://github.com/nodenv/node-build"
url "https://github.com/nodenv/node-build/archive/v4.9.103.tar.gz"
sha256 "68e435771afc5dccf2ed3cd23e817c96a3d1caf29406e02f1440fcd2eafcc5f2"
license "MIT"
head "https://github.com/nodenv/node-build.git", branch: "master"
livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
bottle do
sha256 cellar: :any_skip_relocation, all: "4eab9eed222c59e3326007ec0b08f25003f5bbba237fc056294a320e5780c46a"
end
depends_on "autoconf"
depends_on "openssl@3"
depends_on "pkg-config"
def install
ENV["PREFIX"] = prefix
system "./install.sh"
end
test do
system "#{bin}/node-build", "--definitions"
end
end