summaryrefslogtreecommitdiff
path: root/homebrew/chakra
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/chakra')
-rw-r--r--homebrew/chakra/.beer36
-rw-r--r--homebrew/chakra/.make.sh-auto9
-rw-r--r--homebrew/chakra/_metadata/description1
-rw-r--r--homebrew/chakra/_metadata/homepage1
-rw-r--r--homebrew/chakra/_metadata/name1
-rw-r--r--homebrew/chakra/_metadata/version1
-rwxr-xr-xhomebrew/chakra/download.sh1
7 files changed, 50 insertions, 0 deletions
diff --git a/homebrew/chakra/.beer b/homebrew/chakra/.beer
new file mode 100644
index 000000000..7a5a5e595
--- /dev/null
+++ b/homebrew/chakra/.beer
@@ -0,0 +1,36 @@
+{
+ "name": "Chakra",
+ "description": "The core part of the JavaScript engine that powers Microsoft Edge",
+ "url": "https://github.com/Microsoft/ChakraCore/archive/v1.11.7.tar.gz",
+ "mirror": null,
+ "homepage": "https://github.com/Microsoft/ChakraCore",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ },
+ {
+ "depend": "icu4c",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "args = [",
+ "\"--lto-thin\",",
+ "\"--icu=#{Formula[\"icu4c\"].opt_include}\",",
+ "\"--extra-defines=U_USING_ICU_NAMESPACE=1\", ",
+ "\"-j=#{ENV.make_jobs}\",",
+ "\"-y\",",
+ "]",
+ "system \"./build.sh\", *args",
+ "system \"./build.sh\", \"--static\", *args",
+ "bin.install \"out/Release/ch\" => \"chakra\"",
+ "include.install Dir[\"out/Release/include/*\"]",
+ "lib.install \"out/Release/libChakraCore.dylib\""
+ ],
+ "version": "1.11.7",
+ "file": "chakra.rb"
+} \ No newline at end of file
diff --git a/homebrew/chakra/.make.sh-auto b/homebrew/chakra/.make.sh-auto
new file mode 100644
index 000000000..80e3ef19f
--- /dev/null
+++ b/homebrew/chakra/.make.sh-auto
@@ -0,0 +1,9 @@
+pkg:setup
+args = [
+"--lto-thin", "--icu=#{Formula["icu4c"].opt_include}", "--extra-defines=U_USING_ICU_NAMESPACE=1",
+"-j=#{ENV.make_jobs}", "-y", ]
+./build.sh *args
+./build.sh --static *args
+bin.install "out/Release/ch" => "chakra"
+include.install Dir["out/Release/include/*"]
+lib.install "out/Release/libChakraCore.dylib"
diff --git a/homebrew/chakra/_metadata/description b/homebrew/chakra/_metadata/description
new file mode 100644
index 000000000..59769681e
--- /dev/null
+++ b/homebrew/chakra/_metadata/description
@@ -0,0 +1 @@
+The core part of the JavaScript engine that powers Microsoft Edge
diff --git a/homebrew/chakra/_metadata/homepage b/homebrew/chakra/_metadata/homepage
new file mode 100644
index 000000000..6a81017e9
--- /dev/null
+++ b/homebrew/chakra/_metadata/homepage
@@ -0,0 +1 @@
+https://github.com/Microsoft/ChakraCore
diff --git a/homebrew/chakra/_metadata/name b/homebrew/chakra/_metadata/name
new file mode 100644
index 000000000..a1c9cf942
--- /dev/null
+++ b/homebrew/chakra/_metadata/name
@@ -0,0 +1 @@
+Chakra
diff --git a/homebrew/chakra/_metadata/version b/homebrew/chakra/_metadata/version
new file mode 100644
index 000000000..29eb2917f
--- /dev/null
+++ b/homebrew/chakra/_metadata/version
@@ -0,0 +1 @@
+1.11.7
diff --git a/homebrew/chakra/download.sh b/homebrew/chakra/download.sh
new file mode 100755
index 000000000..67f0f97e1
--- /dev/null
+++ b/homebrew/chakra/download.sh
@@ -0,0 +1 @@
+wget https://github.com/Microsoft/ChakraCore/archive/v1.11.7.tar.gz \ No newline at end of file