homebrew-core/Formula/ruby-build.rb
Erik Michaels-Ober 43da267f4e ruby-build 20140420
Closes Homebrew/homebrew#28542.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-04-20 10:25:28 -07:00

22 lines
573 B
Ruby

require 'formula'
class RubyBuild < Formula
homepage 'https://github.com/sstephenson/ruby-build'
url 'https://github.com/sstephenson/ruby-build/archive/v20140420.tar.gz'
sha1 'afc08419c7e1f58da3893d8dbc8478665f449f6e'
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 | grep #{version}"
end
end