2022-08-31 21:57:35 +03:00
|
|
|
distributable:
|
|
|
|
url: https://nodejs.org/dist/v{{ version }}/node-v{{ version }}.tar.xz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2024-04-29 17:12:59 +03:00
|
|
|
github: nodejs/node/tags
|
2022-08-31 21:57:35 +03:00
|
|
|
|
2022-10-30 17:32:32 +03:00
|
|
|
companions:
|
|
|
|
npmjs.com: '*'
|
|
|
|
|
2022-08-31 21:57:35 +03:00
|
|
|
dependencies:
|
2023-10-18 22:26:10 +03:00
|
|
|
# prior builds of nodejs used our icu4c
|
2023-06-16 21:09:48 +03:00
|
|
|
unicode.org: ^71
|
2022-08-31 21:57:35 +03:00
|
|
|
openssl.org: 1.1
|
|
|
|
zlib.net: 1
|
2024-05-17 00:30:11 +03:00
|
|
|
linux:
|
|
|
|
gnu.org/gcc: '*' # libc++, since 22.2.0
|
2022-08-31 21:57:35 +03:00
|
|
|
|
2022-10-20 19:36:12 +03:00
|
|
|
provides:
|
|
|
|
- bin/node
|
|
|
|
|
2022-11-25 19:03:11 +03:00
|
|
|
interprets:
|
|
|
|
extensions: js
|
|
|
|
args: node
|
|
|
|
|
2022-08-31 21:57:35 +03:00
|
|
|
build:
|
|
|
|
dependencies:
|
2023-10-11 21:33:19 +03:00
|
|
|
python.org: ~3.9
|
|
|
|
script:
|
|
|
|
- run: python configure.py $ARGS
|
|
|
|
if: <14
|
|
|
|
- run: ./configure $ARGS
|
|
|
|
if: '>=14'
|
2024-04-24 22:30:00 +03:00
|
|
|
# v22 didn't include iomanip for std::precision in one file
|
|
|
|
- run: |
|
|
|
|
sed -i '/wasm-disassembler.h/a\
|
|
|
|
\
|
|
|
|
#include <iomanip>' wasm-disassembler.cc
|
|
|
|
working-directory: deps/v8/src/wasm
|
|
|
|
if: ^22
|
|
|
|
|
2023-10-11 21:33:19 +03:00
|
|
|
- make --jobs {{ hw.concurrency }} install
|
2022-08-31 21:57:35 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
2023-10-02 03:41:57 +03:00
|
|
|
- --without-npm
|
|
|
|
- --prefix={{ prefix }}
|
|
|
|
- --shared-openssl
|
|
|
|
- --shared-zlib
|
2023-03-05 03:14:02 +03:00
|
|
|
linux/x86-64:
|
|
|
|
CFLAGS: -fPIC
|
|
|
|
CXXFLAGS: -fPIC
|
|
|
|
LDFLAGS: -pie
|
2022-08-31 21:57:35 +03:00
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
out=$(node $FIXTURE)
|
|
|
|
test "$out" = "Hello, world!"
|
2023-10-02 03:41:57 +03:00
|
|
|
fixture: console.log("Hello, world!");
|