homebrew-core/Formula/node-build.rb
2017-11-11 08:20:14 -08:00

22 lines
604 B
Ruby

class NodeBuild < Formula
desc "Install NodeJS versions"
homepage "https://github.com/nodenv/node-build"
url "https://github.com/nodenv/node-build/archive/v2.6.18.tar.gz"
sha256 "c8279f233e40e5ab39e63730c4df1eb812dd5e69c183e097e79fb9da0aa740f4"
head "https://github.com/nodenv/node-build.git"
bottle :unneeded
depends_on "autoconf" => [:recommended, :run]
depends_on "pkg-config" => [:recommended, :run]
depends_on "openssl" => :recommended
def install
ENV["PREFIX"] = prefix
system "./install.sh"
end
test do
system "#{bin}/node-build", "--definitions"
end
end