blob: f8fadc5553f393c1ae670299992481315aba04e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
require 'formula'
class Groonga < Formula
homepage 'http://groonga.org/'
url 'http://packages.groonga.org/source/groonga/groonga-3.1.1.tar.gz'
sha1 '94f008c2b598e9d1e98a4c7a8b6115cc65c7367d'
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
|