homebrew-core/Formula/ruby-build.rb
2018-06-01 00:48:10 -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/v20180601.tar.gz"
sha256 "800927f02330a39ea2cb2326cec9e8cbc2302fc36ecb50c78c31aca93adbcf4b"
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