2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-19 09:44:26 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Clucene < Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/clucene/clucene-core-stable/0.9.21/clucene-core-0.9.21.tar.bz2'
|
|
|
|
homepage 'http://sourceforge.net/projects/clucene/'
|
|
|
|
md5 '181cf9a827fd072717d9b09d1a1bda74'
|
2011-05-11 21:48:58 +00:00
|
|
|
head 'git://clucene.git.sourceforge.net/gitroot/clucene/clucene'
|
2009-09-19 09:44:26 +00:00
|
|
|
|
|
|
|
def install
|
2011-05-11 21:48:58 +00:00
|
|
|
if ARGV.build_head?
|
2011-11-22 04:03:04 +00:00
|
|
|
system "cmake . #{std_cmake_parameters}"
|
2011-05-11 21:48:58 +00:00
|
|
|
else
|
2011-11-22 04:03:04 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
2011-05-11 21:48:58 +00:00
|
|
|
end
|
2011-11-22 04:03:04 +00:00
|
|
|
|
|
|
|
# Install in parallel. See:
|
|
|
|
# https://github.com/mxcl/homebrew/issues/8712
|
|
|
|
ENV.j1
|
2009-09-19 09:44:26 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|