blob: af2d34847a1f6a786bc9d583ab0da7a5983b18be (
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
32
33
34
35
36
37
38
  | 
require 'formula'
class Groonga < Formula
  homepage 'http://groonga.org/'
  url 'http://packages.groonga.org/source/groonga/groonga-4.0.1.tar.gz'
  sha1 '96859d352cb6439f8dbe8e5fb55373f796a4a11e'
  bottle do
    sha1 "e39684c9c88a738496ebbcb0ba2e33c21d922043" => :mavericks
    sha1 "7692109f8b2ca457c1ae2a6d7314c24d05cda339" => :mountain_lion
    sha1 "a28d4c0d7de6a8590b8c3a6c1ff0def06485fe84" => :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
    ]
    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
  |