@@ -4,16 +4,16 @@ class NodeAT16 < Formula
4
4
url "https://nodejs.org/dist/v16.20.2/node-v16.20.2.tar.xz"
5
5
sha256 "576f1a03c455e491a8d132b587eb6b3b84651fc8974bb3638433dd44d22c8f49"
6
6
license "MIT"
7
+ revision 1
7
8
8
9
bottle do
9
- rebuild 1
10
- sha256 cellar : :any , arm64_sonoma : "27070fb9275d5dd1d4bf816659705acc1048ff947a30cc6b0816900d198fab69"
11
- sha256 cellar : :any , arm64_ventura : "6712e525f435f790df664cf063b18f85973043f8a3817e14764f0e73ba3d14ce"
12
- sha256 cellar : :any , arm64_monterey : "d6849c663947a208dbb494be1433ecea9736896988b7078d41e3ed002eb3d0c5"
13
- sha256 cellar : :any , sonoma : "5422ad0692efb86e6499645e9cc91de15ae688d426991ae24084fe89a76394c3"
14
- sha256 cellar : :any , ventura : "8a163469a0ee7d005efc9ded82e6de9fe80075a207aaaff6c69b675c3fe2e17f"
15
- sha256 cellar : :any , monterey : "7c3eace3570476ba69a6922f1de10dab934112fbf5c5f7ae7a6f1b3f30518f44"
16
- sha256 cellar : :any_skip_relocation , x86_64_linux : "5ade4824e8c644789ac5dcbe03b5e58cf6f07915ebe22771de948a159dd05da9"
10
+ sha256 cellar : :any , arm64_sonoma : "631a5ed1cd7834f440c6165474fe9affca55e9731d21abb42f01ebf3aa8fd1f6"
11
+ sha256 cellar : :any , arm64_ventura : "7efc4bbee5dcd2bfce309895cf9870fa0c652c641d887c37e1061fcbc13c1cf0"
12
+ sha256 cellar : :any , arm64_monterey : "1541329ebab112c5c0ad0cf81d0f81e4ad646587bab5e0824ca7b6849c0d53f6"
13
+ sha256 cellar : :any , sonoma : "70b178141af156260fbd2d1e7d03c1b74bc5878b11b9e4897f9e123e5626518d"
14
+ sha256 cellar : :any , ventura : "bd526bbf8a16f7da6349fb7a0fb3b182784512bf4b527d622529c8c907f3d8d7"
15
+ sha256 cellar : :any , monterey : "e3a8ed83a860e58ff03d4b3045715a26510b988dbeca39ded563cbf679da17e9"
16
+ sha256 cellar : :any_skip_relocation , x86_64_linux : "769953ce120b601f5523298a89df52db171e50053c9311daf3cd9f0ecee71944"
17
17
end
18
18
19
19
keg_only :versioned_formula
@@ -22,18 +22,21 @@ class NodeAT16 < Formula
22
22
deprecate! date : "2023-11-02" , because : :unsupported
23
23
24
24
depends_on "pkg-config" => :build
25
- depends_on "python-setuptools" => :build
26
- depends_on "[email protected] " => :build
25
+ depends_on "[email protected] " => :build
27
26
depends_on "brotli"
28
27
depends_on "c-ares"
29
28
depends_on "icu4c"
30
29
depends_on "libnghttp2"
31
30
depends_on "libuv"
32
31
depends_on "openssl@3"
33
32
34
- uses_from_macos "python" , since : :catalina
35
33
uses_from_macos "zlib"
36
34
35
+ # node-gyp bundled in npm does not support Python 3.12.
36
+ on_system :linux , macos : :mojave_or_older do
37
+
38
+ end
39
+
37
40
fails_with :clang do
38
41
build 1099
39
42
cause "Node requires Xcode CLT 11+"
@@ -42,7 +45,12 @@ class NodeAT16 < Formula
42
45
fails_with gcc : "5"
43
46
44
47
def install
45
- python3 = "python3.12"
48
+ # ../deps/v8/src/base/bit-field.h:43:29: error: integer value 7 is outside
49
+ # the valid range of values [0, 3] for this enumeration type
50
+ # [-Wenum-constexpr-conversion]
51
+ ENV . append_to_cflags "-Wno-enum-constexpr-conversion" if DevelopmentTools . clang_build_version >= 1500
52
+
53
+ python3 = "python3.11"
46
54
# make sure subprocesses spawned by make are using our Python 3
47
55
ENV [ "PYTHON" ] = which ( python3 )
48
56
@@ -90,6 +98,9 @@ def post_install
90
98
# make sure npm can find node
91
99
ENV . prepend_path "PATH" , opt_bin
92
100
ENV . delete "NVM_NODEJS_ORG_MIRROR"
101
+ if OS . linux? || ( OS . mac? && MacOS . version <= :mojave )
102
+ ENV . prepend_path "PATH" , Formula [ "[email protected] " ] . opt_libexec /
"bin"
103
+ end
93
104
assert_equal which ( "node" ) , opt_bin /"node"
94
105
assert_predicate bin /"npm" , :exist? , "npm must exist"
95
106
assert_predicate bin /"npm" , :executable? , "npm must be executable"
0 commit comments