require 'formula' class RubyBuild < Formula homepage 'https://github.com/sstephenson/ruby-build' url 'https://github.com/sstephenson/ruby-build/archive/v20131030.tar.gz' sha1 '64a3728d9bc9e81361036b87b843522b7bd152f8' head 'https://github.com/sstephenson/ruby-build.git' depends_on 'autoconf' => [:recommended, :run] depends_on 'pkg-config' => [:recommended, :run] depends_on 'libyaml' => :recommended depends_on 'openssl' => :optional def install ENV['PREFIX'] = prefix system "./install.sh" end test do system "#{bin}/ruby-build --version | grep #{version}" end end