Skip to content
This repository has been archived by the owner on Dec 9, 2017. It is now read-only.

Commit

Permalink
Add Chakra formula
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Apr 25, 2017
1 parent a1dcbc5 commit 3b636ce
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Formula/chakra.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class Chakra < Formula
desc "The core part of the Chakra JavaScript engine that powers Microsoft Edge"
homepage "https://github.com/Microsoft/ChakraCore"
url "https://aka.ms/chakracore/cc_osx_x64_2_0_0.tar.gz"
sha256 "a546eb1735b2fb0054f2aca592596ede09f3d613b81ce10bc6d216e0dd19c2e6"

def install
lib.install "ChakraCoreFiles/lib/libChakraCore.dylib"
bin.install "ChakraCoreFiles/bin/ch" => "chakra"
end

test do
(testpath/"test.js").write("print('Hello!');\n")
assert_equal "Hello!", shell_output("#{bin}/chakra test.js").chomp
end
end

0 comments on commit 3b636ce

Please sign in to comment.