2014-05-20 00:41:10 +00:00
|
|
|
require "formula"
|
2011-09-07 02:54:03 +00:00
|
|
|
|
|
|
|
class RubyBuild < Formula
|
2014-05-20 00:41:10 +00:00
|
|
|
head "https://github.com/sstephenson/ruby-build.git"
|
|
|
|
homepage "https://github.com/sstephenson/ruby-build"
|
2014-07-02 08:28:09 +00:00
|
|
|
url "https://github.com/sstephenson/ruby-build/archive/v20140702.tar.gz"
|
|
|
|
sha1 "3b609d6375f1ddcc519c5854ffbb947d3f32ea4e"
|
2011-09-07 02:54:03 +00:00
|
|
|
|
2014-05-20 00:41:10 +00:00
|
|
|
depends_on "autoconf" => [:recommended, :run]
|
|
|
|
depends_on "pkg-config" => [:recommended, :run]
|
|
|
|
depends_on "openssl" => :recommended
|
2013-03-13 08:41:53 +00:00
|
|
|
|
2011-09-07 02:54:03 +00:00
|
|
|
def install
|
2014-05-20 00:41:10 +00:00
|
|
|
ENV["PREFIX"] = prefix
|
2011-09-07 02:54:03 +00:00
|
|
|
system "./install.sh"
|
|
|
|
end
|
2013-10-28 00:44:58 +00:00
|
|
|
|
|
|
|
test do
|
2014-05-09 14:55:24 +00:00
|
|
|
system "#{bin}/ruby-build", "--version"
|
2013-10-28 00:44:58 +00:00
|
|
|
end
|
2011-09-07 02:54:03 +00:00
|
|
|
end
|