homebrew-core/Formula/ruby-build.rb
SHIBATA Hiroshi 1ab5d297a1 ruby-build 20170112
Closes #8776.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
2017-01-12 14:04:17 +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/v20170112.tar.gz"
sha256 "456979b820644b944e030598953dd735e4721365a8385f451ddc6ace90a2cab2"
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