39 lines
1.1 KiB
Ruby
39 lines
1.1 KiB
Ruby
require "formula"
|
|
|
|
class Groonga < Formula
|
|
homepage "http://groonga.org/"
|
|
url "http://packages.groonga.org/source/groonga/groonga-4.0.6.tar.gz"
|
|
sha1 "1ba7431cfca58dba7f5484d2c8013f24f6d8a322"
|
|
|
|
bottle do
|
|
sha1 "93dd670108b2ef9f219827eed3e158c4a8f6a4f6" => :mavericks
|
|
sha1 "1986c599bf78578a148e19cb293079702ab0ee5d" => :mountain_lion
|
|
sha1 "3fa6aa3b485d1395e3e54136868f4ae662b3114f" => :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 "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
|
|
]
|
|
|
|
args << "--enable-benchmark" if build.include? "enable-benchmark"
|
|
args << "--with-mecab" if build.with? "mecab"
|
|
|
|
# ZeroMQ is an optional dependency that will be auto-detected unless we disable it
|
|
system "./configure", *args
|
|
system "make install"
|
|
end
|
|
end
|