homebrew-core/Formula/ruby-build.rb
2018-03-19 03:12: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/v20180224.tar.gz"
sha256 "5e3f80489b1deda4232b9b0f9b956e275647862500d1901f0e5859ff23bde7ac"
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