mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-03 05:59:45 -05:00
fish: use new dsl
This commit is contained in:
1 parent
03c4887bd5
commit
8aad6616d7
1 file changed
+4
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user