2015-11-03 05:16:53 +00:00
|
|
|
class NodeBuild < Formula
|
|
|
|
desc "Install NodeJS versions"
|
2016-01-22 21:16:15 +00:00
|
|
|
homepage "https://github.com/nodenv/node-build"
|
2016-02-01 16:05:12 +00:00
|
|
|
url "https://github.com/nodenv/node-build/archive/v2.1.4.tar.gz"
|
|
|
|
sha256 "746eac782b4e586aa6d35150005dadc49ef27597b63adc996929b462674ddbc9"
|
2016-01-22 21:16:15 +00:00
|
|
|
head "https://github.com/nodenv/node-build.git"
|
2015-11-03 05:16:53 +00:00
|
|
|
|
|
|
|
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
|