2011-12-25 05:24:17 +00:00
|
|
|
class Konoha < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Static scripting language with extensible syntax"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://www.konohascript.org/"
|
|
|
|
url "https://github.com/konoha-project/konoha3/archive/v0.1.tar.gz"
|
|
|
|
sha256 "e7d222808029515fe229b0ce1c4e84d0a35b59fce8603124a8df1aeba06114d3"
|
2012-10-20 05:11:57 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
head "https://github.com/konoha-project/konoha3.git"
|
2013-08-27 13:17:54 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
option "tests", "Verify the build with make test (1 min)"
|
2012-06-14 11:54:42 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "cmake" => :build
|
2013-06-27 03:08:54 +00:00
|
|
|
depends_on :mpi => [:cc, :cxx]
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "pcre"
|
|
|
|
depends_on "json-c"
|
|
|
|
depends_on "sqlite"
|
|
|
|
depends_on "mecab" if MacOS.version >= :mountain_lion
|
2013-08-27 12:39:22 +00:00
|
|
|
depends_on :python # for python glue code
|
2011-12-25 05:24:17 +00:00
|
|
|
|
|
|
|
def install
|
2015-08-03 12:55:31 +00:00
|
|
|
args = std_cmake_args + [".."]
|
|
|
|
mkdir "build" do
|
|
|
|
system "cmake", *args
|
|
|
|
system "make"
|
|
|
|
system "make", "test" if build.include? "tests"
|
|
|
|
system "make", "install"
|
2012-06-14 11:54:42 +00:00
|
|
|
end
|
2011-12-25 05:24:17 +00:00
|
|
|
end
|
|
|
|
end
|