homebrew-core/Formula/ruby-build.rb
Mislav Marohnić 33371307c8
ruby-build 20180822
Closes #31366.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2018-08-22 20:46:20 +08: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/v20180822.tar.gz"
sha256 "36dead9a0031f1b42b876f6d6def0fccdddc7d6277c7968ec649ffde82a4e137"
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