homebrew-core/Formula/ruby-build.rb
2015-06-05 14:47:57 +01:00

23 lines
643 B
Ruby

require "formula"
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/v20150519.tar.gz"
sha256 "2c1403c8577987b1b161d8fce3e30fd88cfc6f9d553a34cf45a23dd1e33c3c72"
head "https://github.com/sstephenson/ruby-build.git"
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