31 lines
762 B
Ruby
31 lines
762 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.64.tar.gz"
|
|
sha256 "b1ca76a3f95b140344cae747e3fc16af7c64d9698f8bb30a753d46b3e3923531"
|
|
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: "114e61e73e4c2fe2427402f5613382dd301cc2580951ea327286c9a8a06e2e15"
|
|
end
|
|
|
|
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
|