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-10-23 18:18:06 +00:00
|
|
|
url "https://github.com/xicilion/fibjs/releases/download/v0.1.7/fibjs-0.1.7-fullsrc.zip"
|
2015-10-25 07:44:42 +00:00
|
|
|
sha256 "92dfef31422c848816f992bd651f029837d4788c66acb83c8b93a084dec257ae"
|
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
|
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
|
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
|