homebrew-core/Formula/ruby-build.rb
2018-06-18 15:34:16 +10: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/v20180618.tar.gz"
sha256 "4c6c0f57ff653802848c947f24df31f7ae6a67754b96fcaab1d513d3c3059edb"
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