homebrew-core/Formula/groonga.rb
BrewTestBot e95cb935c4 groonga: update 4.0.7 bottle.
Closes Homebrew/homebrew#33706.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-10-29 13:42:02 +00:00

43 lines
1.2 KiB
Ruby

require "formula"
class Groonga < Formula
homepage "http://groonga.org/"
url "http://packages.groonga.org/source/groonga/groonga-4.0.7.tar.gz"
sha1 "b00c56c6d7318fe1a87f6f55366182ace4014a2a"
bottle do
sha1 "2775b6f11f9e37b2c217232a8c1330d96399f247" => :yosemite
sha1 "666f42790d8c1971886af044f01d202158439597" => :mavericks
sha1 "e98db97c283412714a64066c0250c33832f4472f" => :mountain_lion
end
depends_on "pkg-config" => :build
depends_on "pcre"
depends_on "msgpack"
depends_on "mecab" => :optional
depends_on "mecab-ipadic" if build.with? "mecab"
depends_on "lz4" => :optional
depends_on "openssl"
depends_on "glib" if build.include? "enable-benchmark"
option "enable-benchmark", "Enable benchmark program for developer use"
def install
args = %W[
--prefix=#{prefix}
--with-zlib
--disable-zeromq
--with-mruby
--without-libstemmer
]
args << "--enable-benchmark" if build.include? "enable-benchmark"
args << "--with-mecab" if build.with? "mecab"
args << "--with-lz4" if build.with? "lz4"
# ZeroMQ is an optional dependency that will be auto-detected unless we disable it
system "./configure", *args
system "make install"
end
end