aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-03-17 13:34:27 -0500
committerJack Nagel2014-03-17 13:41:43 -0500
commitdd660711274adf994e6b815d0eef4f55a0f91aba (patch)
tree9a900d01d0d2afdd72f643f19f53f6971970c4f3 /Library/Formula
parent1c1cb2b4ffdd202a83a545345efb01b43d738397 (diff)
downloadhomebrew-dd660711274adf994e6b815d0eef4f55a0f91aba.tar.bz2
clucene: use checksummed patches
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/clucene.rb44
1 files changed, 26 insertions, 18 deletions
diff --git a/Library/Formula/clucene.rb b/Library/Formula/clucene.rb
index 7987457ef..a36594df0 100644
--- a/Library/Formula/clucene.rb
+++ b/Library/Formula/clucene.rb
@@ -2,30 +2,38 @@ require 'formula'
class Clucene < Formula
homepage 'http://clucene.sourceforge.net'
- url 'https://downloads.sourceforge.net/project/clucene/clucene-core-stable/0.9.21b/clucene-core-0.9.21b.tar.bz2'
- sha1 '8bc505b64f82723c2dc901036cb0607500870973'
- head do
- url 'git://clucene.git.sourceforge.net/gitroot/clucene/clucene'
- depends_on 'cmake' => :build
- end
+ stable do
+ url "https://downloads.sourceforge.net/project/clucene/clucene-core-stable/0.9.21b/clucene-core-0.9.21b.tar.bz2"
+ sha1 "8bc505b64f82723c2dc901036cb0607500870973"
- 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/
- 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'
- ]}
+ # 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/
+ if MacOS.version == :mavericks
+ patch :p0 do
+ url "https://gist.github.com/tlvince/7934499/raw/d0859996dbda8f4cf643d091ae6b491f0a64da59/CLucene-LuceneThreads.h.diff"
+ sha1 "59e672e70d053d79d5b19c422945299ba66f2562"
+ end
+
+ patch :p0 do
+ url "https://gist.github.com/tlvince/7935339/raw/fd78b1ada278eaf1904e1437efa0f2a1265041a9/CLucene-config-repl_tchar.h.diff"
+ sha1 "e6aee206577fc3b751652db6774d32e923b50b0b"
end
end
end
+ head do
+ url "git://clucene.git.sourceforge.net/gitroot/clucene/clucene"
+
+ depends_on "cmake" => :build
+
+ patch do
+ url "https://gist.github.com/lfranchi/7954811/raw/828176c01a8f2c1c11eff43bf6773242955dabab/CLucene-HEAD-mavericks.patch"
+ sha1 "43f89924e85f9df50bf32032f05de153237162f3"
+ end if MacOS.version == :mavericks
+ end
+
def install
if build.head?
system "cmake", ".", *std_cmake_args