fibjs 0.1.0 (new formula)
This commit is contained in:
parent
456910f431
commit
ed92e998ef
1 changed files with 25 additions and 0 deletions
25
Formula/fibjs.rb
Normal file
25
Formula/fibjs.rb
Normal file
|
@ -0,0 +1,25 @@
|
|||
require "formula"
|
||||
|
||||
class Fibjs < Formula
|
||||
homepage "http://fibjs.org"
|
||||
url "https://github.com/xicilion/fibjs/archive/v0.1.0.tar.gz"
|
||||
sha1 "2e933da29ea66eee0a9ff8b604f9e3935c3b90fa"
|
||||
|
||||
head "https://github.com/xicilion/fibjs.git"
|
||||
|
||||
depends_on "cmake" => :build
|
||||
|
||||
def install
|
||||
system "./build", "Release", "-j#{ENV["HOMEBREW_MAKE_JOBS"]}"
|
||||
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
|
Loading…
Reference in a new issue