nodejs: update to 14.16.0.

This commit is contained in:
John 2021-03-21 16:29:54 +01:00
parent c495f4bee9
commit b7da1ec672

View file

@ -1,6 +1,6 @@
# Template file for 'nodejs' # Template file for 'nodejs'
pkgname=nodejs pkgname=nodejs
version=14.15.4 version=14.16.0
revision=1 revision=1
wrksrc="node-v${version}" wrksrc="node-v${version}"
# Need these for host v8 for torque, see https://github.com/nodejs/node/pull/21079 # Need these for host v8 for torque, see https://github.com/nodejs/node/pull/21079
@ -12,12 +12,13 @@ makedepends="libatomic-devel zlib-devel $(vopt_if icu icu-devel)
$(vopt_if ssl openssl-devel) $(vopt_if libuv libuv-devel) $(vopt_if ssl openssl-devel) $(vopt_if libuv libuv-devel)
$(vopt_if http_parser http-parser-devel) $(vopt_if nghttp2 nghttp2-devel) $(vopt_if http_parser http-parser-devel) $(vopt_if nghttp2 nghttp2-devel)
$(vopt_if cares c-ares-devel) $(vopt_if http_parser llhttp-devel)" $(vopt_if cares c-ares-devel) $(vopt_if http_parser llhttp-devel)"
checkdepends="procps-ng"
short_desc="Evented I/O for V8 javascript" short_desc="Evented I/O for V8 javascript"
maintainer="Enno Boland <gottox@voidlinux.org>" maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT" license="MIT"
homepage="https://nodejs.org/" homepage="https://nodejs.org/"
distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz" distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz"
checksum=8610d81b2d4afc3a79afbe6209d510125131c45cae22cac63bb767dcfec1cbf0 checksum=f6b904b06951de4c52089dd4456155d853e835b0dc4640f75458c6eb49f9e8ce
python_version=3 python_version=3
build_options="ssl libuv http_parser icu nghttp2 cares" build_options="ssl libuv http_parser icu nghttp2 cares"
@ -27,7 +28,7 @@ desc_option_http_parser="Enable shared http-parser and llhttp"
desc_option_icu="Enable shared icu" desc_option_icu="Enable shared icu"
desc_option_nghttp2="Enable shared nghttp2" desc_option_nghttp2="Enable shared nghttp2"
desc_option_cares="Enable shared c-ares" desc_option_cares="Enable shared c-ares"
build_options_default="libuv http_parser icu nghttp2 cares" build_options_default="ssl libuv http_parser icu nghttp2 cares"
replaces="iojs>=0" replaces="iojs>=0"
conflicts="nodejs-lts nodejs-lts-10" conflicts="nodejs-lts nodejs-lts-10"
@ -100,6 +101,10 @@ do_build() {
fi fi
} }
do_check() {
make LD="$CXX" LDFLAGS+=-ldl ${makejobs} V=1 test-only
}
do_install() { do_install() {
make LD="$CXX" LDFLAGS+=-ldl DESTDIR="$DESTDIR" install make LD="$CXX" LDFLAGS+=-ldl DESTDIR="$DESTDIR" install
rm $DESTDIR/usr/include/node/openssl -rf rm $DESTDIR/usr/include/node/openssl -rf