homebrew-core/Formula/node-build.rb

23 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.5.10.tar.gz"
sha256 "bf9b3a97df3018eeb972e975bae41e311edaec5b567bc7042841606b976298bf"
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