homebrew-core/Formula/node-build.rb

29 lines
629 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.7.tar.gz"
sha256 "9f5c089133d7bfe0aa4e243c718fd6065447d65162a18b506e98123fe469b7b5"
license "MIT"
head "https://github.com/nodenv/node-build.git"
livecheck do
url :head
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
bottle :unneeded
depends_on "autoconf"
depends_on "openssl@1.1"
depends_on "pkg-config"
def install
ENV["PREFIX"] = prefix
system "./install.sh"
end
test do
system "#{bin}/node-build", "--definitions"
end
end