2011-09-07 02:54:03 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class RubyBuild < Formula
|
|
|
|
homepage 'https://github.com/sstephenson/ruby-build'
|
2013-11-23 02:25:07 +00:00
|
|
|
url 'https://github.com/sstephenson/ruby-build/archive/v20131122.1.tar.gz'
|
|
|
|
sha1 '9ee2cf3a64d08e25c13e0d799ff689a997361328'
|
2011-09-07 02:54:03 +00:00
|
|
|
|
|
|
|
head 'https://github.com/sstephenson/ruby-build.git'
|
|
|
|
|
2013-11-04 18:00:06 +00:00
|
|
|
depends_on 'autoconf' => [:recommended, :run]
|
|
|
|
depends_on 'pkg-config' => [:recommended, :run]
|
2013-10-29 01:35:34 +00:00
|
|
|
depends_on 'libyaml' => :recommended
|
|
|
|
depends_on 'openssl' => :optional
|
2013-03-13 08:41:53 +00:00
|
|
|
|
2011-09-07 02:54:03 +00:00
|
|
|
def install
|
|
|
|
ENV['PREFIX'] = prefix
|
|
|
|
system "./install.sh"
|
|
|
|
end
|
2013-10-28 00:44:58 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/ruby-build --version | grep #{version}"
|
|
|
|
end
|
2011-09-07 02:54:03 +00:00
|
|
|
end
|