From 181c31fdccbde07c9da84a94aaa555110019c4b7 Mon Sep 17 00:00:00 2001 From: Diogo Azevedo Date: Wed, 6 Nov 2019 11:13:45 -0300 Subject: [PATCH] node 13.1.0 Co-authored-by: Christian Moritz --- Aliases/{node@12 => node@13} | 0 Formula/node.rb | 19 ++++++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) rename Aliases/{node@12 => node@13} (100%) diff --git a/Aliases/node@12 b/Aliases/node@13 similarity index 100% rename from Aliases/node@12 rename to Aliases/node@13 diff --git a/Formula/node.rb b/Formula/node.rb index f5462bc417..102dc11290 100644 --- a/Formula/node.rb +++ b/Formula/node.rb @@ -1,8 +1,8 @@ class Node < Formula desc "Platform built on V8 to build network applications" homepage "https://nodejs.org/" - url "https://nodejs.org/dist/v12.12.0/node-v12.12.0.tar.gz" - sha256 "6ce681625c09bc2b2b5757165580e648579e4bc7bce5e246fa6339270eec8bde" + url "https://nodejs.org/dist/v13.1.0/node-v13.1.0.tar.gz" + sha256 "df640a2f151f788d02dc25c91d80fffe06b4c3c72fbdee07ab9abd7c6879d6cd" head "https://github.com/nodejs/node.git" bottle do @@ -13,17 +13,26 @@ class Node < Formula end depends_on "pkg-config" => :build - depends_on "python@2" => :build + depends_on "python" => :build depends_on "icu4c" # We track major/minor from upstream Node releases. # We will accept *important* npm patch releases when necessary. resource "npm" do - url "https://registry.npmjs.org/npm/-/npm-6.11.3.tgz" - sha256 "9e1dbf6a2642df2cef11e68fdc20e29e4ee04bd7c9459fef914cae4bdc587f18" + url "https://registry.npmjs.org/npm/-/npm-6.12.1.tgz" + sha256 "a537fc1d5e8d1187deb4c8debb07b580cfdb4a0e5584feb378e2c66f35d85b9a" + end + + # apply upstream Python 3 compatibility fix for macOS (remove with next version) + patch do + url "https://github.com/nodejs/node/commit/0673dfc0d8944a37e17fbaa683022f4b9e035577.patch?full_index=1" + sha256 "a682d597fb63861a3ae812345ade7ad2b1125b3362317e247b4fb52ecd7532be" end def install + # make sure subprocesses spawned by make are using our Python 3 + ENV["PYTHON"] = Formula["python"].opt_bin/"python3" + # Never install the bundled "npm", always prefer our # installation from tarball for better packaging control. args = %W[--prefix=#{prefix} --without-npm --with-intl=system-icu]