blob: 239cd3c38ecb8fc1ab35622a3d61984c08d39054 (
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
 | require 'formula'
class Konoha < Formula
  homepage 'http://www.konohascript.org/'
  url 'https://github.com/konoha-project/konoha3/archive/v0.1.tar.gz'
  sha1 '85ee3527c9a2db2874280e506c09aab8809a6ad5'
  head 'https://github.com/konoha-project/konoha3.git'
  option 'tests', 'Verify the build with make test (1 min)'
  depends_on 'cmake' => :build
  depends_on :mpi => [:cc, :cxx]
  depends_on 'pcre'
  depends_on 'json-c'
  depends_on 'sqlite'
  depends_on 'mecab' if MacOS.version >= :mountain_lion
  depends_on :python # for python glue code
  def install
    args = std_cmake_args + ['..']
    mkdir 'build' do
      system 'cmake', *args
      system 'make'
      system 'make', 'test' if build.include? 'tests'
      system 'make', 'install'
    end
  end
end
 |