homebrew-core/Formula/ruby-build.rb
2015-07-19 14:21:13 +01:00

28 lines
938 B
Ruby

class RubyBuild < Formula
desc "Install various Ruby versions and implementations"
homepage "https://github.com/sstephenson/ruby-build"
url "https://github.com/sstephenson/ruby-build/archive/v20150719.tar.gz"
sha256 "b64110a7021575c5eff8da99c1178f18bd6b3858d60c5bee50a291fdec8cf965"
head "https://github.com/sstephenson/ruby-build.git"
bottle do
cellar :any
sha256 "865a1dba53c766869b1a7c513512ce5d1c1947ef0694e50a1bea6235fd707f92" => :yosemite
sha256 "ab8cba77b5ee960abbf189286e691cfa130ba4d25d9a4510fc70bbfe6d5a1fd6" => :mavericks
sha256 "f7de92c3b4f8fdc014dc841a4986404be4a2dff81928e309fdaed900d7b243ed" => :mountain_lion
end
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", "--version"
end
end