29 lines
632 B
Ruby
29 lines
632 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.31.tar.gz"
|
|
sha256 "32dff0c5c6a8e1ad97c8ea78fb2ee6426355f78bd0aab5628497bfc5883e95a9"
|
|
license "MIT"
|
|
head "https://github.com/nodenv/node-build.git"
|
|
|
|
livecheck do
|
|
url :stable
|
|
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
|