From 2076aa8a00e19a0694b86d512889f0e8cd2526ec Mon Sep 17 00:00:00 2001 From: asaka Date: Tue, 28 Oct 2014 00:29:01 +0800 Subject: fibjs 0.1.0 (new formula) --- Library/Formula/fibjs.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Library/Formula/fibjs.rb (limited to 'Library/Formula') diff --git a/Library/Formula/fibjs.rb b/Library/Formula/fibjs.rb new file mode 100644 index 000000000..494118a8f --- /dev/null +++ b/Library/Formula/fibjs.rb @@ -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 -- cgit v1.2.3