From e0b95f7a45751360e275b4b143b2875cf25761b0 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Fri, 13 Dec 2013 21:09:31 -0500 Subject: [PATCH] clucene: fix --HEAD build Closes Homebrew/homebrew#25191. Signed-off-by: Adam Vandenberg --- Formula/clucene.rb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Formula/clucene.rb b/Formula/clucene.rb index 3b101f8430..cbd2138f91 100644 --- a/Formula/clucene.rb +++ b/Formula/clucene.rb @@ -15,10 +15,14 @@ class Clucene < Formula # 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' - ]} + if build.head? + 'https://gist.github.com/lfranchi/7954811/raw/828176c01a8f2c1c11eff43bf6773242955dabab/CLucene-HEAD-mavericks.patch' + else + {: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 end