From 8aad6616d7b49913ced9beaffa8ba4ff1fd80cb3 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 27 Aug 2012 21:42:31 -0700 Subject: fish: use new dsl --- Library/Formula/fish.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/fish.rb b/Library/Formula/fish.rb index 5e59bfac5..eaf1cef65 100644 --- a/Library/Formula/fish.rb +++ b/Library/Formula/fish.rb @@ -8,8 +8,8 @@ class Fish < Formula head 'git://gitorious.org/fish-shell/fish-shell.git' # Indeed, the head build always builds documentation - depends_on 'doxygen' => :build if ARGV.build_head? - depends_on :autoconf if ARGV.build_head? + depends_on 'doxygen' => :build if build.head? + depends_on :autoconf if build.head? depends_on 'readline' skip_clean 'share/doc' @@ -18,7 +18,7 @@ class Fish < Formula def patches p = [] - unless ARGV.build_head? + unless build.head? # Reduces the timeout in select_try() from 5s to 10ms. # The old timeout would cause fish to frequently freeze for a 5 # second period. @@ -27,7 +27,7 @@ class Fish < Formula end def install - system "autoconf" if ARGV.build_head? + system "autoconf" if build.head? system "./configure", "--prefix=#{prefix}", "--without-xsel" system "make install" end -- cgit v1.2.3