pantry/projects/nodejs.org/package.yml

59 lines
1.1 KiB
YAML
Raw Normal View History

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:
2023-04-08 14:03:25 +03:00
github: nodejs/node/releases/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-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
provides:
- bin/node
interprets:
extensions: js
args: node
2022-08-31 21:57:35 +03:00
build:
dependencies:
2023-07-19 01:58:36 +03:00
# otherwise, we hit https://reviews.llvm.org/D131307
linux:
llvm.org: '<16'
gnu.org/make: '*'
python.org: ~3.9
freedesktop.org/pkg-config: ^0.29
script:
- run: python configure.py $ARGS
if: <14
- run: ./configure $ARGS
if: '>=14'
- make --jobs {{ hw.concurrency }} install
2022-08-31 21:57:35 +03:00
env:
ARGS:
- --without-npm
- --prefix={{ prefix }}
# like, maybe we should include this?
- --with-intl=system-icu
- --shared-openssl
- --shared-zlib
linux:
CC: clang
CXX: clang++
AS: llvm-as
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!"
fixture: console.log("Hello, world!");