homebrew-core/Formula/ruby-build.rb
2017-07-26 01:28:00 -07:00

22 lines
655 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/v20170726.tar.gz"
sha256 "c6fec3851f2a4ce8ccffafeb5875bd718e8e93e56a0f0b7cda71df7d67438ad6"
head "https://github.com/rbenv/ruby-build.git"
bottle :unneeded
depends_on "autoconf" => [:recommended, :run]
depends_on "pkg-config" => [:recommended, :run]
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