|
1 | 1 | class Deno < Formula |
2 | 2 | desc "Secure runtime for JavaScript and TypeScript" |
3 | 3 | homepage "https://deno.com/" |
4 | | - url "https://github.com/denoland/deno/releases/download/v1.42.1/deno_src.tar.gz" |
5 | | - sha256 "38c30012cec6f969903df5eef20dc9208951bb7913d665baacb12c8c1f2250a7" |
| 4 | + url "https://github.com/denoland/deno/releases/download/v1.42.2/deno_src.tar.gz" |
| 5 | + sha256 "fd9bdac501520c22c0532117196cb7951ff884541023a01001033190608f2e2a" |
6 | 6 | license "MIT" |
7 | 7 | head "https://github.com/denoland/deno.git", branch: "main" |
8 | 8 |
|
@@ -45,7 +45,7 @@ class Deno < Formula |
45 | 45 | # Use the version of `v8` crate at: https://github.com/denoland/deno/blob/v#{version}/Cargo.lock |
46 | 46 | # Search for 'name = "v8"' (without single quotes). |
47 | 47 | resource "rusty_v8" do |
48 | | - url "https://static.crates.io/crates/v8/v8-0.89.0.crate", using: :nounzip |
| 48 | + url "https://static.crates.io/crates/v8/v8-0.89.0.crate" |
49 | 49 | sha256 "fe2197fbef82c98f7953d13568a961d4e1c663793b5caf3c74455a13918cdf33" |
50 | 50 | end |
51 | 51 |
|
@@ -77,11 +77,7 @@ class Deno < Formula |
77 | 77 | def install |
78 | 78 | # Work around files missing from crate |
79 | 79 | # TODO: Remove this at the same time as `rusty_v8` + `v8` resources |
80 | | - (buildpath/"../rusty_v8").mkpath |
81 | | - resource("rusty_v8").stage do |r| |
82 | | - system "tar", "-C", buildpath/"../rusty_v8", |
83 | | - "--strip-components", "1", "-xzvf", "v8-#{r.version}.crate" |
84 | | - end |
| 80 | + resource("rusty_v8").stage buildpath/"../rusty_v8" |
85 | 81 | resource("v8").stage do |
86 | 82 | cp_r "tools/builtins-pgo", buildpath/"../rusty_v8/v8/tools/builtins-pgo" |
87 | 83 | end |
|
0 commit comments