2011-12-25 05:24:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Konoha < Formula
|
2012-06-14 11:54:42 +00:00
|
|
|
homepage 'http://www.konohascript.org/'
|
2012-10-20 05:11:57 +00:00
|
|
|
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)'
|
2012-06-14 11:54:42 +00:00
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
2012-07-06 23:31:44 +00:00
|
|
|
depends_on MPIDependency.new(:cc, :cxx)
|
2012-06-14 11:54:42 +00:00
|
|
|
depends_on 'pcre'
|
|
|
|
depends_on 'json-c'
|
|
|
|
depends_on 'sqlite'
|
2011-12-25 05:24:17 +00:00
|
|
|
|
|
|
|
def install
|
2012-06-14 11:54:42 +00:00
|
|
|
args = std_cmake_args + ['..']
|
2012-10-20 05:11:57 +00:00
|
|
|
mkdir 'build' do
|
2012-06-14 11:54:42 +00:00
|
|
|
system 'cmake', *args
|
|
|
|
system 'make'
|
2012-10-20 05:11:57 +00:00
|
|
|
system 'make test' if build.include? 'tests'
|
2012-06-14 11:54:42 +00:00
|
|
|
system 'make install'
|
|
|
|
end
|
2011-12-25 05:24:17 +00:00
|
|
|
end
|
|
|
|
end
|