homebrew-core/Formula/ruby-build.rb
SHIBATA Hiroshi 77974a6763 ruby-build 20161121
Closes #7120.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
2016-11-21 14:23:10 +01: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/v20161121.tar.gz"
sha256 "331359e39d47ff39da9c2d73d47a76ae88725181c8ba192a2b6ea6d4bd472a6a"
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