22 lines
639 B
Ruby
22 lines
639 B
Ruby
class RubyBuild < Formula
|
|
desc "Install various Ruby versions and implementations"
|
|
homepage "https://github.com/rbenv/ruby-build"
|
|
url "https://github.com/rbenv/ruby-build/archive/v20180822.tar.gz"
|
|
sha256 "36dead9a0031f1b42b876f6d6def0fccdddc7d6277c7968ec649ffde82a4e137"
|
|
head "https://github.com/rbenv/ruby-build.git"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on "autoconf" => :recommended
|
|
depends_on "openssl" => :recommended
|
|
depends_on "pkg-config" => :recommended
|
|
|
|
def install
|
|
ENV["PREFIX"] = prefix
|
|
system "./install.sh"
|
|
end
|
|
|
|
test do
|
|
assert_match "2.0.0", shell_output("#{bin}/ruby-build --definitions")
|
|
end
|
|
end
|