2014-10-27 16:29:01 +00:00
|
|
|
class Fibjs < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "JavaScript on Fiber"
|
2014-10-27 16:29:01 +00:00
|
|
|
homepage "http://fibjs.org"
|
2015-08-08 07:47:01 +00:00
|
|
|
url "https://github.com/xicilion/fibjs/releases/download/v0.1.4/fibjs-0.1.4-fullsrc.zip"
|
|
|
|
sha256 "e9c316f601254851c420f214d0b8c136f76dcc29f07b5c8f62caf3e20c2bee80"
|
2014-10-27 16:29:01 +00:00
|
|
|
|
|
|
|
head "https://github.com/xicilion/fibjs.git"
|
|
|
|
|
2014-10-27 17:46:11 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-08-08 10:00:01 +00:00
|
|
|
sha256 "a62f8e9735d61f8dc73781be5ff2997caa84386c227835cb2945ef5b6b58419b" => :yosemite
|
|
|
|
sha256 "511407e14bc400b1c2bd40840537245a5267b99a1473c6c0e2cd71760163aac3" => :mavericks
|
|
|
|
sha256 "0bc350e4824213e4f4652f834b5954d7c2e87820b563eef2d9242bc2e7a47681" => :mountain_lion
|
2014-10-27 17:46:11 +00:00
|
|
|
end
|
|
|
|
|
2014-10-27 16:29:01 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
|
|
|
|
def install
|
2015-01-14 01:11:22 +00:00
|
|
|
system "./build", "Release", "-j#{ENV.make_jobs}"
|
2014-10-27 16:29:01 +00:00
|
|
|
bin.install "bin/Darwin_Release/fibjs"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
path = testpath/"test.js"
|
|
|
|
path.write "console.log('hello');"
|
|
|
|
|
|
|
|
output = `#{bin}/fibjs #{path}`.strip
|
|
|
|
assert_equal "hello", output
|
|
|
|
assert_equal 0, $?.exitstatus
|
|
|
|
end
|
|
|
|
end
|