homebrew-core/Formula/fibjs.rb

33 lines
988 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.7/fibjs-0.1.7-fullsrc.zip"
sha256 "92dfef31422c848816f992bd651f029837d4788c66acb83c8b93a084dec257ae"
2014-10-27 16:29:01 +00:00
head "https://github.com/xicilion/fibjs.git"
bottle do
2015-09-19 13:27:01 +00:00
cellar :any_skip_relocation
2015-10-25 17:00:44 +00:00
revision 1
sha256 "c72b7627b6e3a8bca4219abd2e3f2d41261815f5df2a1a4d4386077a434c7aa9" => :el_capitan
sha256 "40878d250cee1260b1262c124e1736d2a4c1f9526edcf7e707402e92c1965faa" => :yosemite
sha256 "67a6f871801208598b647160af3779525fa366f8bfb47d663972a43091ebc881" => :mavericks
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