aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/clucene.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/clucene.rb b/Library/Formula/clucene.rb
index c04c24704..76044e494 100644
--- a/Library/Formula/clucene.rb
+++ b/Library/Formula/clucene.rb
@@ -10,6 +10,18 @@ class Clucene < Formula
depends_on 'cmake' => :build
end
+ def patches
+ if MacOS.version >= :mavericks
+ # Fix libpthread dependencies in OS X 10.9
+ # Based on MacPorts patches: http://trac.macports.org/ticket/40899
+ # Reported upstream: http://sourceforge.net/p/clucene/bugs/219/
+ {:p0 => [
+ 'https://gist.github.com/tlvince/7934499/raw/d0859996dbda8f4cf643d091ae6b491f0a64da59/CLucene-LuceneThreads.h.diff',
+ 'https://gist.github.com/tlvince/7935339/raw/fd78b1ada278eaf1904e1437efa0f2a1265041a9/CLucene-config-repl_tchar.h.diff'
+ ]}
+ end
+ end
+
def install
if build.head?
system "cmake", ".", *std_cmake_args