aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-04-01 15:49:39 -0500
committerJack Nagel2012-04-01 15:51:32 -0500
commita412db42edbe07e7669bfc712bb16691884eb8b4 (patch)
treed662d7cfeeb352241240265e4eb048d3ef2fcdc7 /Library
parent0342d4a0284abd32ab2191c4cbc2aaab07282c36 (diff)
downloadhomebrew-a412db42edbe07e7669bfc712bb16691884eb8b4.tar.bz2
sphinx: fails with clang
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/sphinx.rb27
1 files changed, 11 insertions, 16 deletions
diff --git a/Library/Formula/sphinx.rb b/Library/Formula/sphinx.rb
index ca07fcf81..56e6556f2 100644
--- a/Library/Formula/sphinx.rb
+++ b/Library/Formula/sphinx.rb
@@ -20,14 +20,17 @@ class Sphinx < Formula
cause "ld: rel32 out of range in _GetPrivateProfileString from /usr/lib/libodbc.a(SQLGetPrivateProfileString.o)"
end
- # Patch the configure script to run under clang, preventing the error:
- # configure: error: Gcc version error. Minspec is 3.4
- # Reported upstream:
- # * http://sphinxsearch.com/bugs/view.php?id=1123
- # Discussion:
- # * https://github.com/mxcl/homebrew/issues/10016
- # * https://github.com/mxcl/homebrew/pull/10698
- def patches; DATA; end
+ fails_with :clang do
+ build 318
+ cause <<-EOS.undent
+ configure: error: Gcc version error. Minspec is 3.4
+ http://sphinxsearch.com/bugs/view.php?id=1123
+
+ sphinxexpr.cpp:1799:11: error: use of undeclared identifier 'ExprEval'
+ https://github.com/mxcl/homebrew/issues/10016
+ https://github.com/mxcl/homebrew/pull/10698
+ EOS
+ end
def install
lstem = Pathname.pwd+'libstemmer_c'
@@ -45,14 +48,6 @@ class Sphinx < Formula
args << "--with-pgsql" if which 'pg_config'
args << "--without-mysql" unless which 'mysql'
- # Sphinx 2.0.3 does not build under clang 3.1. It fails with:
- # sphinxexpr.cpp:1799:11: error: use of undeclared identifier 'ExprEval'
- # Discussion:
- # * https://github.com/mxcl/homebrew/issues/10016
- # * https://github.com/mxcl/homebrew/pull/10698
- # FIXME This should be replaced with fails_with_clang once available
- ENV.llvm if ENV.compiler == :clang
-
system "./configure", *args
system "make install"
end