fish: use new dsl

This commit is contained in:
Adam Vandenberg committed 2012-08-27 21:42:31 -07:00
1 parent 03c4887bd5
commit 8aad6616d7
1 file changed
+4 -4
+4 -4
View File
@@ -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