homebrew-core/Formula/ruby-build.rb
2016-06-03 14:52:25 +01:00

23 lines
630 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/v20160602.tar.gz"
sha256 "4a3d702a9b86876be38c832ba65bce9da451fa9ca8dbee2022e55e72dc3cdd62"
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
system "#{bin}/ruby-build", "--definitions"
end
end