aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-07-11 14:22:50 -0500
committerJack Nagel2014-07-11 14:23:32 -0500
commit1b3561742df472eda6dee757dcc64716d06818d5 (patch)
tree28711d9e9a21ba48e51a092124cd0337d9af1816 /Library/Formula
parent9acd4c5bd9b39e5f59a4f1a1eb68c23df5ad8885 (diff)
downloadhomebrew-1b3561742df472eda6dee757dcc64716d06818d5.tar.bz2
kytea: apply patch to stable only
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/kytea.rb24
1 files changed, 13 insertions, 11 deletions
diff --git a/Library/Formula/kytea.rb b/Library/Formula/kytea.rb
index 8ec249d01..58448494b 100644
--- a/Library/Formula/kytea.rb
+++ b/Library/Formula/kytea.rb
@@ -2,8 +2,18 @@ require 'formula'
class Kytea < Formula
homepage 'http://www.phontron.com/kytea/'
- url 'http://www.phontron.com/kytea/download/kytea-0.4.6.tar.gz'
- sha1 '2fb22c64a7babff26d95874877d83a9ef1f09617'
+
+ stable do
+ url 'http://www.phontron.com/kytea/download/kytea-0.4.6.tar.gz'
+ sha1 '2fb22c64a7babff26d95874877d83a9ef1f09617'
+
+ # Upstream patch to fix compilation on OS X
+ patch :p1 do
+ url "https://github.com/neubig/kytea/commit/782553f61bde4f3366f946c9a390500c028fa17f.diff"
+ sha1 "260d62738e53622873b1d467b44576860e5141fe"
+ end
+ end
+
head do
url 'https://github.com/neubig/kytea.git', :branch => 'master'
depends_on 'autoconf' => :build
@@ -11,16 +21,8 @@ class Kytea < Formula
depends_on 'libtool' => :build
end
- # Upstream patch to fix compilation on OS X
- patch :p1 do
- url "https://github.com/neubig/kytea/commit/782553f61bde4f3366f946c9a390500c028fa17f.diff"
- sha1 "260d62738e53622873b1d467b44576860e5141fe"
- end
-
def install
- if build.head?
- system "autoreconf", "-i"
- end
+ system "autoreconf", "-i" if build.head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"