Skip to content
Permalink
Browse files

switch to https git address

  • Loading branch information...
ry committed Mar 14, 2019
1 parent f3d6d65 commit 1fa548e26b1ebff6bdcd1a9e78fb270563296117
Showing with 16 additions and 12 deletions.
  1. +16 −12 Formula/deno.rb
@@ -3,7 +3,7 @@ class Deno < Formula
homepage "https://deno.land/"
url "https://chromium.googlesource.com/chromium/tools/depot_tools.git",
:revision => "aec259ea62328ce39916607876956239fbce29b8"
version "0.3.2" # the version of the deno checkout, not a depot_tools version
version "0.3.3" # the version of the deno checkout, not a depot_tools version

# depot_tools/GN require Python 2.7+
# depends_on "python@2" => :build
@@ -14,22 +14,20 @@ class Deno < Formula
# https://bugs.chromium.org/p/chromium/issues/detail?id=620127
depends_on :macos => :el_capitan

bottle do
end

def install
# Add depot_tools in PATH
ENV.prepend_path "PATH", buildpath
# Prevent from updating depot_tools on every call
# see https://www.chromium.org/developers/how-tos/depottools#TOC-Disabling-auto-update
ENV["DEPOT_TOOLS_UPDATE"] = "0"
ENV["CHROMIUM_BUILDTOOLS_PATH"] = buildpath + "/deno/buildtools/"

# Initialize and sync gclient
system "gclient", "root"
system "gclient", "config", "--spec", <<~EOS
solutions = [
{
"url": "git@github.com:denoland/deno.git",
"url": "https://github.com/denoland/deno.git",
"managed": False,
"name": "deno",
"custom_deps": {},
@@ -40,24 +38,30 @@ def install
cache_dir = "#{HOMEBREW_CACHE}/gclient_cache"
EOS

# Enter the v8 checkout
#"-r", version,
system "gclient", "sync",
"-j", ENV.make_jobs,
"--no-history",
"-vvv"

cd "deno" do
system "git", "submodule", "update", "--init"
output_path = "target/release/"

gn_args = {
:is_debug => false,
:is_official_build => true,
}

# Transform to args string
gn_args_string = gn_args.map { |k, v| "#{k}=#{v}" }.join(" ")

# Build with gn + ninja
system "gn", "gen", "--args=#{gn_args_string}", output_path

system "gn", "gen", "--args=\"#{gn_args_string}\"", output_path
system "ninja", "-j", ENV.make_jobs, "-C", output_path,
"-v", "deno"

bin.install "target/release/deno"
end
end

0 comments on commit 1fa548e

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.