aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/ruby.rb')
-rw-r--r--Library/Formula/ruby.rb35
1 files changed, 18 insertions, 17 deletions
diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb
index b3321d11c..a4e622e63 100644
--- a/Library/Formula/ruby.rb
+++ b/Library/Formula/ruby.rb
@@ -1,9 +1,10 @@
-require 'formula'
+require "formula"
class Ruby < Formula
- homepage 'https://www.ruby-lang.org/'
+ homepage "https://www.ruby-lang.org/"
url "http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.3.tar.bz2"
sha256 "36ce72f84ae4129f6cc66e33077a79d87b018ea7bf1dbc3d353604bf006f76d6"
+ revision 1
bottle do
sha1 "34c2401deda99d4eebce57cb8322b023f3c444da" => :mavericks
@@ -12,23 +13,23 @@ class Ruby < Formula
end
head do
- url 'http://svn.ruby-lang.org/repos/ruby/trunk/'
+ url "http://svn.ruby-lang.org/repos/ruby/trunk/"
depends_on "autoconf" => :build
end
option :universal
- option 'with-suffix', 'Suffix commands with "21"'
- option 'with-doc', 'Install documentation'
- option 'with-tcltk', 'Install with Tcl/Tk support'
-
- depends_on 'pkg-config' => :build
- depends_on 'readline' => :recommended
- depends_on 'gdbm' => :optional
- depends_on 'gmp' => :optional
- depends_on 'libffi' => :optional
- depends_on 'libyaml'
- depends_on 'openssl'
- depends_on :x11 if build.with? 'tcltk'
+ option "with-suffix", "Suffix commands with '21'"
+ option "with-doc", "Install documentation"
+ option "with-tcltk", "Install with Tcl/Tk support"
+
+ depends_on "pkg-config" => :build
+ depends_on "readline" => :recommended
+ depends_on "gdbm" => :optional
+ depends_on "gmp" => :optional
+ depends_on "libffi" => :optional
+ depends_on "libyaml"
+ depends_on "openssl"
+ depends_on :x11 if build.with? "tcltk"
fails_with :llvm do
build 2326
@@ -70,7 +71,7 @@ class Ruby < Formula
system "./configure", *args
system "make"
- system "make install"
+ system "make", "install"
# Customize rubygems to look/install in the global gem directory
# instead of in the Cellar, making gems last across reinstalls
@@ -142,7 +143,7 @@ class Ruby < Formula
end
test do
- output = `#{bin}/ruby -e 'puts "hello"'`
+ output = `#{bin}/ruby -e "puts 'hello'"`
assert_equal "hello\n", output
assert_equal 0, $?.exitstatus
end