[notify] npm: 15.5.1 -> 7.4.3; please force an update to this version
This commit is contained in:
parent
ea57f8b042
commit
453c70083f
924
npm/.footprint
924
npm/.footprint
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3ykmoHmalHQw8t7Yjf02UWJYpc++9gxLj9G2GSwi85fYvmfQfUcvG2afOuNfyLFGZ9Clc6tamrmyqBLOzoTNtg8=
|
||||
SHA256 (Pkgfile) = 959df2b03ac3200989125edfa4959471af858f92c607241c0e1d573fb1ae11ac
|
||||
SHA256 (.footprint) = 066be93cba1ebf2ad69239a9bd69663c293bac777587450a0566f74d6155ae87
|
||||
SHA256 (node-v15.5.1.tar.xz) = 2c229acc2d4d47a872f0401c1dc4fa92d72317ca867609a3402a78fd78236b61
|
||||
RWSagIOpLGJF33D9Mi0eIul0QQt31jVD6uKhlvR+SdrRf0OvTtPyAvKZmuIbGtrPhOXJLKal46s9xQe3qlefTJZ7uYiW650K7AU=
|
||||
SHA256 (Pkgfile) = 53e764614095046abff002e5589b6d81927c6eae97148cbd72a44604e38e81ef
|
||||
SHA256 (.footprint) = 4e98b618f02266a4068ef4a0b9d0bf533d9b271d05d2b03a7a089f2cea3df607
|
||||
SHA256 (npm-7.4.3.tar.gz) = 92ae5b092f55658459f81445a40ca2a10f6a72cfc8d4da8cf4abd5e8a8018886
|
||||
SHA256 (destdir.patch) = b74ee19a9412025067c9d0b5aa5946a651a7bc0dedab4ae147b3e5d1fb569462
|
||||
|
51
npm/Pkgfile
51
npm/Pkgfile
@ -2,42 +2,37 @@
|
||||
# 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
|
||||
version=7.4.3
|
||||
release=1
|
||||
source=(https://nodejs.org/dist/v$version/node-v$version.tar.xz)
|
||||
source=(https://github.com/npm/cli/archive/v$version/$name-$version.tar.gz
|
||||
destdir.patch)
|
||||
|
||||
build() {
|
||||
cd node-v$version
|
||||
cd cli-$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'
|
||||
export NPM_CONFIG_USERCONFIG=$SRC/.npm
|
||||
export NPM_CONFIG_CACHE=$SRC/.npm/cache
|
||||
export GATSBY_TELEMETRY_DISABLED="1"
|
||||
|
||||
./configure ${PKGMK_NODEJS} \
|
||||
--prefix=/usr \
|
||||
--shared-libuv \
|
||||
--shared-zlib \
|
||||
--shared-openssl
|
||||
# -shared-cares
|
||||
# fix some build issues
|
||||
node bin/npm-cli.js install cmark-gfm --no-global --no-timing --no-save
|
||||
patch -Np1 -i $SRC/destdir.patch
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
make mandocs
|
||||
NODE_PATH=/usr/lib/node_modules node bin/npm-cli.js pack
|
||||
NODE_PATH=/usr/lib/node_modules DESTDIR=$PKG node bin/npm-cli.js install -g -f npm-$version.tgz
|
||||
|
||||
rm -r $PKG/usr/include/
|
||||
rm -r $PKG/usr/bin/node
|
||||
rm -rf $PKG/usr/share/{doc,man,systemtap}
|
||||
mkdir -p $PKG/usr/share
|
||||
mv $PKG/usr/lib/node_modules/npm/man $PKG/usr/share/
|
||||
|
||||
# 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
|
||||
find $PKG \(\
|
||||
-iname "README*" -o \
|
||||
-iname "LICENCE" -o \
|
||||
-iname "LICENSE" -o \
|
||||
-iname "CHANGELOG" -o \
|
||||
-iname "AUTHORS*" \)\
|
||||
-exec rm '{}' \+
|
||||
rm -r $PKG/usr/lib/node_modules/npm/docs $PKG/usr/lib/node_modules/npm/changelogs
|
||||
}
|
||||
|
13
npm/destdir.patch
Normal file
13
npm/destdir.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff -Naur cli-7.4.3.orig/node_modules/@npmcli/config/lib/index.js cli-7.4.3/node_modules/@npmcli/config/lib/index.js
|
||||
--- cli-7.4.3.orig/node_modules/@npmcli/config/lib/index.js 2021-01-26 00:33:07.581392623 +0100
|
||||
+++ cli-7.4.3/node_modules/@npmcli/config/lib/index.js 2021-01-26 00:34:40.643350386 +0100
|
||||
@@ -296,6 +296,9 @@
|
||||
|
||||
if (this.env.PREFIX) {
|
||||
this.globalPrefix = this.env.PREFIX
|
||||
+ if (this.env.DESTDIR) {
|
||||
+ this.globalPrefix = join(this.env.DESTDIR, this.globalPrefix)
|
||||
+ }
|
||||
} else if (this.platform === 'win32') {
|
||||
// c:\node\node.exe --> prefix=c:\node\
|
||||
this.globalPrefix = dirname(this.execPath)
|
Loading…
x
Reference in New Issue
Block a user