8153259d8c
Konoha has been reborn in this third iteration of it. It is now called minikonoha, but it still includes a konoha binary. It has the same homepage, but the code is developed on Github. - Use the git url for minikonoha-0.1.0 - Keep the same formula name. - Add an option to run the tests. 8 fail out of 776 in 1 minute. - Tested with mpich2 Fixes Homebrew/homebrew#14950 Closes Homebrew/homebrew#15561. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
25 lines
636 B
Ruby
25 lines
636 B
Ruby
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
|