homebrew-core/Formula/groonga.rb
2014-12-30 23:08:25 -05:00

44 lines
1.2 KiB
Ruby

require "formula"
class Groonga < Formula
homepage "http://groonga.org/"
url "http://packages.groonga.org/source/groonga/groonga-4.0.9.tar.gz"
sha1 "0196b3909324f66d303185e67646cba401f23a7e"
bottle do
sha1 "12b94e2102ab23fe0192f2c9f79cd523c22b4ea2" => :yosemite
sha1 "d945ef8bd06bcc31739ab9c21baa398cc4d4f32b" => :mavericks
sha1 "0a0d111c1519b51cce93421427ed7e6e25562646" => :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"
system "make install"
end
end