2accf0ef96
Closes Homebrew/homebrew#26246. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
31 lines
754 B
Ruby
31 lines
754 B
Ruby
require 'formula'
|
|
|
|
class Groonga < Formula
|
|
homepage 'http://groonga.org/'
|
|
url 'http://packages.groonga.org/source/groonga/groonga-3.1.2.tar.gz'
|
|
sha1 '305ef89b6b9f7e1d55719c2299edad0e10d2d203'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'pcre'
|
|
depends_on 'msgpack'
|
|
|
|
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
|
|
]
|
|
|
|
if build.include? 'enable-benchmark'
|
|
args << '--enable-benchmark'
|
|
end
|
|
|
|
# ZeroMQ is an optional dependency that will be auto-detected unless we disable it
|
|
system "./configure", *args
|
|
system "make install"
|
|
end
|
|
end
|