mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
be596915c5
closes #2618
60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
distributable:
|
|
url: https://nodejs.org/dist/v{{ version }}/node-v{{ version }}.tar.xz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: nodejs/node/releases/tags
|
|
|
|
companions:
|
|
npmjs.com: '*'
|
|
|
|
dependencies:
|
|
unicode.org: ^71
|
|
openssl.org: 1.1
|
|
zlib.net: 1
|
|
|
|
provides:
|
|
- bin/node
|
|
|
|
interprets:
|
|
extensions: js
|
|
args: node
|
|
|
|
build:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
# otherwise, we hit https://reviews.llvm.org/D131307
|
|
linux:
|
|
llvm.org: '<16'
|
|
tea.xyz/gx/make: '*'
|
|
python.org: '>=3.7 <3.11'
|
|
freedesktop.org/pkg-config: ^0.29
|
|
script: |
|
|
# This is hacky, but it works.
|
|
# Knowing the precise versions to test is difficult, since
|
|
# nodejs develops multiple majors in sync.
|
|
if ./configure --help | grep -- --without-corepack; then
|
|
ARGS="$ARGS --without-corepack"
|
|
fi
|
|
|
|
./configure $ARGS
|
|
make --jobs {{ hw.concurrency }} install
|
|
env:
|
|
ARGS:
|
|
- --without-npm
|
|
- --prefix={{ prefix }}
|
|
# like, maybe we should include this?
|
|
- --with-intl=system-icu
|
|
- --shared-openssl
|
|
- --shared-zlib
|
|
linux/x86-64:
|
|
CFLAGS: -fPIC
|
|
CXXFLAGS: -fPIC
|
|
LDFLAGS: -pie
|
|
|
|
test:
|
|
script: |
|
|
out=$(node $FIXTURE)
|
|
test "$out" = "Hello, world!"
|
|
fixture:
|
|
console.log("Hello, world!");
|