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/v20160330.tar.gz" sha256 "e6cbc01f6db45675927a4a75f3d52cd94f6f397f63dc6ddd7643a0c23c46bcab" 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