Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 11 additions & 15 deletions Formula/d/deno.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
class Deno < Formula
desc "Secure runtime for JavaScript and TypeScript"
homepage "https://deno.com/"
url "https://github.com/denoland/deno/releases/download/v1.42.1/deno_src.tar.gz"
sha256 "38c30012cec6f969903df5eef20dc9208951bb7913d665baacb12c8c1f2250a7"
url "https://github.com/denoland/deno/releases/download/v1.42.2/deno_src.tar.gz"
sha256 "fd9bdac501520c22c0532117196cb7951ff884541023a01001033190608f2e2a"
license "MIT"
head "https://github.com/denoland/deno.git", branch: "main"

bottle do
sha256 cellar: :any, arm64_sonoma: "81050d76837cc81f8151341a759d654d9a09fe802b3ac9d485aba7a62cea20a3"
sha256 cellar: :any, arm64_ventura: "5a88717da0ed416417646bbe0aecfb222986240bf8d4840eb845288819b1fc9d"
sha256 cellar: :any, arm64_monterey: "c699f5a4075b9acaaf9bfb08651bf51b06301831f5bbe3680c2800f6d2f375b2"
sha256 cellar: :any, sonoma: "b2fd74fea76472de419e6efe8c748ade683a5433bf58bef32176b41332f7df0b"
sha256 cellar: :any, ventura: "224204f7c61a40f2179a367361f95f9aa95cbc3a7d393d170dc1f4a92880fbb3"
sha256 cellar: :any, monterey: "207377b5aa9bffaa48dd967b5bc0a476e9f6d0da6af79391581e433a94c970d2"
sha256 cellar: :any_skip_relocation, x86_64_linux: "dc79809ed9714201c1a22e8bb093b8096f182e60eb75ca9f475589e1478f6a0e"
sha256 cellar: :any, arm64_sonoma: "afa85b20cafd7f674c347d072202adbc735eb3033b83b2d6560cc9ecdc0aff97"
sha256 cellar: :any, arm64_ventura: "20634a1cabb0f0fc6109855c0491ee36075b26fba8b15f985c82fd8db7de3eab"
sha256 cellar: :any, arm64_monterey: "32a5f20e695e937839f655c50edf99bd164fae20740cac4937a9a2619c6e2120"
sha256 cellar: :any, sonoma: "493ca0d606b999f9939a3cdc1b86ce2185c0cb8136248e435c43515153119be9"
sha256 cellar: :any, ventura: "138b5cc671fb7162aee2851831effda6d8fdc07ed88437ff24186bbc823c2ad6"
sha256 cellar: :any, monterey: "c85b632b046df020e21a43365273e50ff7deb9280279dc902e05a897aeba81ef"
sha256 cellar: :any_skip_relocation, x86_64_linux: "934426f32f9427529e0c8768c589f8018f99ac8da4fef4d612595d9d80eb3448"
end

depends_on "cmake" => :build
Expand Down Expand Up @@ -45,7 +45,7 @@ class Deno < Formula
# Use the version of `v8` crate at: https://github.com/denoland/deno/blob/v#{version}/Cargo.lock
# Search for 'name = "v8"' (without single quotes).
resource "rusty_v8" do
url "https://static.crates.io/crates/v8/v8-0.89.0.crate", using: :nounzip
url "https://static.crates.io/crates/v8/v8-0.89.0.crate"
sha256 "fe2197fbef82c98f7953d13568a961d4e1c663793b5caf3c74455a13918cdf33"
end

Expand Down Expand Up @@ -77,11 +77,7 @@ class Deno < Formula
def install
# Work around files missing from crate
# TODO: Remove this at the same time as `rusty_v8` + `v8` resources
(buildpath/"../rusty_v8").mkpath
resource("rusty_v8").stage do |r|
system "tar", "-C", buildpath/"../rusty_v8",
"--strip-components", "1", "-xzvf", "v8-#{r.version}.crate"
end
resource("rusty_v8").stage buildpath/"../rusty_v8"
resource("v8").stage do
cp_r "tools/builtins-pgo", buildpath/"../rusty_v8/v8/tools/builtins-pgo"
end
Expand Down