pantry/projects/nodejs.org/package.yml
Jacob Heider 7a2be03565
fix(node) (#176)
* fix(node)

* wip
2023-02-03 23:38:46 -05:00

47 lines
861 B
YAML

distributable:
url: https://nodejs.org/dist/v{{ version }}/node-v{{ version }}.tar.xz
strip-components: 1
versions:
github: nodejs/node/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
tea.xyz/gx/make: '*'
python.org: '>=3.7 <3.11'
freedesktop.org/pkg-config: ^0.29
script: |
./configure $ARGS
make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --without-npm
- --prefix={{ prefix }}
# like, maybe we should include this?
- --without-corepack
- --with-intl=system-icu
- --shared-openssl
- --shared-zlib
test:
script: |
out=$(node $FIXTURE)
test "$out" = "Hello, world!"
fixture:
console.log("Hello, world!");