1
0
forked from ports/contrib

npm: initial commit, version 15.5.1

This commit is contained in:
Tim Biermann 2021-01-15 11:22:39 +00:00
parent 67be89e7b8
commit 5cbdf7f07e
3 changed files with 2918 additions and 0 deletions

2870
npm/.footprint Normal file

File diff suppressed because it is too large Load Diff

5
npm/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3ykmoHmalHQw8t7Yjf02UWJYpc++9gxLj9G2GSwi85fYvmfQfUcvG2afOuNfyLFGZ9Clc6tamrmyqBLOzoTNtg8=
SHA256 (Pkgfile) = 959df2b03ac3200989125edfa4959471af858f92c607241c0e1d573fb1ae11ac
SHA256 (.footprint) = 066be93cba1ebf2ad69239a9bd69663c293bac777587450a0566f74d6155ae87
SHA256 (node-v15.5.1.tar.xz) = 2c229acc2d4d47a872f0401c1dc4fa92d72317ca867609a3402a78fd78236b61

43
npm/Pkgfile Normal file
View File

@ -0,0 +1,43 @@
# Description: nodejs package manager
# URL: https://nodejs.org/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: nodejs
# Optional: icu brotli ninja
# c-ares wait until a newer release than 1.16.1
name=npm
version=15.5.1
release=1
source=(https://nodejs.org/dist/v$version/node-v$version.tar.xz)
build() {
cd node-v$version
[ -e '/usr/lib/pkgconfig/icu-i18n.pc' ] && PKGMK_NODEJS+=' --with-intl=system-icu'
[ -e '/usr/lib/pkgconfig/libbrotlicommon.pc' ] && PKGMK_NODEJS+=' --shared-brotli'
[ -e '/usr/bin/ninja' ] && PKGMK_NODEJS+=' --ninja'
./configure ${PKGMK_NODEJS} \
--prefix=/usr \
--shared-libuv \
--shared-zlib \
--shared-openssl
# -shared-cares
make
make DESTDIR=$PKG install
rm -r $PKG/usr/include/
rm -r $PKG/usr/bin/node
rm -rf $PKG/usr/share/{doc,man,systemtap}
# clean up
find $PKG -type f \( \
-name 'README.md' -o \
-name 'AUTHORS.md' -o \
-name 'INSTALL.md' -o \
-name 'TODO.org' -o \
-name 'ChangeLog' -o \
-name 'NEWS' \) -delete
}