homebrew-core/Formula/fibjs.rb

32 lines
960 B
Ruby
Raw Normal View History

2014-10-27 16:29:01 +00:00
class Fibjs < Formula
desc "JavaScript on Fiber"
2014-10-27 16:29:01 +00:00
homepage "http://fibjs.org"
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"
bottle do
cellar :any
2015-08-08 10:00:01 +00:00
sha256 "a62f8e9735d61f8dc73781be5ff2997caa84386c227835cb2945ef5b6b58419b" => :yosemite
sha256 "511407e14bc400b1c2bd40840537245a5267b99a1473c6c0e2cd71760163aac3" => :mavericks
sha256 "0bc350e4824213e4f4652f834b5954d7c2e87820b563eef2d9242bc2e7a47681" => :mountain_lion
end
2014-10-27 16:29:01 +00:00
depends_on "cmake" => :build
def install
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