2011-03-10 05:11:03 +00:00
|
|
|
class Clucene < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "C++ port of Lucene: high-performance, full-featured text search engine"
|
2014-10-02 17:37:47 +00:00
|
|
|
homepage "http://clucene.sourceforge.net"
|
|
|
|
url "https://downloads.sourceforge.net/project/clucene/clucene-core-unstable/2.3/clucene-core-2.3.3.4.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "ddfdc433dd8ad31b5c5819cc4404a8d2127472a3b720d3e744e8c51d79732eab"
|
2015-08-30 00:45:23 +00:00
|
|
|
head "git://clucene.git.sourceforge.net/gitroot/clucene/clucene"
|
2013-12-10 08:48:04 +00:00
|
|
|
|
2014-07-09 22:04:32 +00:00
|
|
|
bottle do
|
2014-10-02 17:55:15 +00:00
|
|
|
cellar :any
|
2015-08-30 01:03:38 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "182db4f73e058e9d28b77cbbd642c40ecc403fbf1d9dc8357387b2c54dba8d1e" => :yosemite
|
|
|
|
sha256 "f85cdb67e53bc6eb380ae1bd8e087b42faca7c65f665f9719209adfa8aaa7b31" => :mavericks
|
|
|
|
sha256 "97f955d2b9fa3ab41f65d9871f82a357cad400237cbaf553d585bae62207d51f" => :mountain_lion
|
2014-07-09 22:04:32 +00:00
|
|
|
end
|
|
|
|
|
2014-10-02 17:37:47 +00:00
|
|
|
depends_on "cmake" => :build
|
2014-03-17 18:34:27 +00:00
|
|
|
|
2014-10-02 17:37:47 +00:00
|
|
|
# Portability fixes for 10.9+
|
|
|
|
# Upstream ticket: http://sourceforge.net/p/clucene/bugs/219/
|
|
|
|
patch do
|
2015-08-30 00:45:23 +00:00
|
|
|
url "https://raw.githubusercontent.com/DomT4/scripts/46d9672f7/Homebrew_Resources/MacPorts_Import/clucene/r126047/patch-src-shared-CLucene-LuceneThreads.h.diff"
|
|
|
|
mirror "https://trac.macports.org/export/126047/trunk/dports/devel/clucene/files/patch-src-shared-CLucene-LuceneThreads.h.diff"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "42cb23fa6bd66ca8ea1d83a57a650f71e0ad3d827f5d74837b70f7f72b03b490"
|
2014-03-17 18:34:27 +00:00
|
|
|
end
|
|
|
|
|
2014-10-02 17:37:47 +00:00
|
|
|
patch do
|
2015-08-30 00:45:23 +00:00
|
|
|
url "https://raw.githubusercontent.com/DomT4/scripts/46d9672f7/Homebrew_Resources/MacPorts_Import/clucene/r126047/patch-src-shared-CLucene-config-repl_tchar.h.diff"
|
|
|
|
mirror "https://trac.macports.org/export/126047/trunk/dports/devel/clucene/files/patch-src-shared-CLucene-config-repl_tchar.h.diff"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "b7dc735f431df409aac63dcfda9737726999eed4fdae494e9cbc1d3309e196ad"
|
2014-10-02 17:37:47 +00:00
|
|
|
end
|
2011-11-22 04:03:04 +00:00
|
|
|
|
2014-10-02 17:37:47 +00:00
|
|
|
def install
|
2015-08-30 00:45:23 +00:00
|
|
|
mkdir "build" do
|
|
|
|
system "cmake", "..", *std_cmake_args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
2009-09-19 09:44:26 +00:00
|
|
|
end
|
|
|
|
end
|