aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/konoha.rb
blob: e0d9324ba93f7d9519f9dcd808c91a9f0724e99d (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
require 'formula'

class Konoha < Formula
  homepage 'http://www.konohascript.org/'
  url 'https://github.com/downloads/konoha-project/minikonoha/minikonoha-0.1.0.tar.gz'
  sha1 '621aa1244c344a9e7be96fb6e6d067bae7f43d64'

  option 'tests', 'Verify the build with make test (1 min)'

  depends_on 'cmake' => :build
  depends_on MPIDependency.new(:cc, :cxx)
  depends_on 'pcre'
  depends_on 'json-c'
  depends_on 'sqlite'

  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