31 lines
761 B
Ruby
31 lines
761 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.104.tar.gz"
|
|
sha256 "d3be1623a9b8407bdadc60f4da99075739aef8e5bb8893ee1f4fcf9c0b84662e"
|
|
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: "82693c35764b3c4f9ce2ce107426c58c7c5e97e428bcbb9c9c3dd683549f9728"
|
|
end
|
|
|
|
depends_on "autoconf"
|
|
depends_on "openssl@3"
|
|
depends_on "pkg-config"
|
|
|
|
def install
|
|
ENV["PREFIX"] = prefix
|
|
system "./install.sh"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/node-build", "--definitions"
|
|
end
|
|
end
|