From b6768f0cd596783efd2fd05c304a46cf1a5d9d96 Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Fri, 19 Oct 2012 22:11:57 -0700 Subject: konoha 0.1.0 (minikonoha) 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 #14950 Closes #15561. Signed-off-by: Adam Vandenberg --- Library/Formula/konoha.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Formula/konoha.rb b/Library/Formula/konoha.rb index 51bc2ba82..e0d9324ba 100644 --- a/Library/Formula/konoha.rb +++ b/Library/Formula/konoha.rb @@ -2,8 +2,10 @@ require 'formula' class Konoha < Formula homepage 'http://www.konohascript.org/' - url 'http://konoha.googlecode.com/files/konoha-1.0.0-952.tar.gz' - sha1 'c4cfdc956bd583f8c3e8e696eeb0316ca78b1389' + 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) @@ -13,9 +15,10 @@ class Konoha < Formula def install args = std_cmake_args + ['..'] - cd 'build' do + mkdir 'build' do system 'cmake', *args system 'make' + system 'make test' if build.include? 'tests' system 'make install' end end -- cgit v1.2.3