homebrew-core/Formula/ruby-build.rb
2018-03-29 00:08:04 -07:00

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/v20180329.tar.gz"
sha256 "4c8610c178ef2fa6bb29d4bcfca52608914632a51a56a5e70aeec8bf0894167b"
head "https://github.com/rbenv/ruby-build.git"
bottle :unneeded
depends_on "autoconf" => :recommended
depends_on "pkg-config" => :recommended
depends_on "openssl" => :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