New package: nodejs-lts-8.9.0

This commit is contained in:
Michael Aldridge 2017-11-24 21:07:06 -08:00
parent 990079654b
commit 769fad6806
7 changed files with 68 additions and 8 deletions

View file

@ -24,6 +24,7 @@ emacs emacs
java-environment openjdk java-environment openjdk
java-runtime openjdk-jre java-runtime openjdk-jre
libudev eudev-libudev libudev eudev-libudev
nodejs-runtime nodejs
ntp-daemon chrony ntp-daemon chrony
phonon-backend phonon-backend-gstreamer phonon-backend phonon-backend-gstreamer
phonon-qt5-backend phonon-qt5-backend-gstreamer phonon-qt5-backend phonon-qt5-backend-gstreamer

View file

@ -1,7 +1,7 @@
# Template file for 'netdata' # Template file for 'netdata'
pkgname=netdata pkgname=netdata
version=1.8.0 version=1.8.0
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="zlib-devel" makedepends="zlib-devel"
@ -23,7 +23,7 @@ post_install() {
netdata-plugins-nodejs_package() { netdata-plugins-nodejs_package() {
short_desc+=" - NodeJS Plugins" short_desc+=" - NodeJS Plugins"
depends="${sourcepkg}>=${version}_${revision} nodejs" depends="${sourcepkg}>=${version}_${revision} virtual?nodejs-runtime"
noarch=yes noarch=yes
pkg_install() { pkg_install() {
vmove usr/libexec/netdata/plugins.d/node.d.plugin vmove usr/libexec/netdata/plugins.d/node.d.plugin

View file

@ -0,0 +1,55 @@
# Template file for 'nodejs-lts'
pkgname=nodejs-lts
version=8.9.0
revision=1
wrksrc=node-v${version}
hostmakedepends="pkg-config python $(vopt_if icu icu)"
makedepends="zlib-devel python-devel $(vopt_if icu icu-devel)
$(vopt_if ssl libressl-devel) $(vopt_if libuv libuv-devel)
$(vopt_if http_parser http-parser-devel)"
short_desc="Evented I/O for V8 javascript"
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
license="MIT"
homepage="https://nodejs.org/"
distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz"
checksum=00b422827f37913576f8e5059c84acab364375cfbfcc083652191165f709de6c
build_options="ssl libuv http_parser icu"
desc_option_libuv="Enable shared libuv"
desc_option_http_parser="Enable shared http-parser"
desc_option_icu="Enable shared icu"
build_options_default="libuv http_parser icu"
replaces="iojs>=0"
conflicts="nodejs"
provides="nodejs-runtime-0_1"
do_configure() {
local _args
export LD="$CXX"
if [ "$CROSS_BUILD" ]; then
case "$XBPS_TARGET_MACHINE" in
arm*) _args="--dest-cpu=arm --without-snapshot" ;;
aarch64*) _args="--dest-cpu=arm64 --without-snapshot" ;;
*) msg_error "$pkgver: cannot be cross compiled for ${XBPS_TARGET_MACHINE}\n" ;;
esac
fi
./configure --prefix=/usr --shared-zlib \
$(vopt_if icu --with-intl=system-icu) \
$(vopt_if http_parser --shared-http-parser) \
$(vopt_if ssl --shared-openssl) \
$(vopt_if libuv --shared-libuv) ${_args}
}
do_build() {
if [ "$CROSS_BUILD" ]; then
make LD="$CXX" LDFLAGS+=-ldl ${makejobs} PORTABLE=1 V=1
else
make LD="$CXX" LDFLAGS+=-ldl ${makejobs} V=1
fi
}
do_install() {
make LD="$CXX" LDFLAGS+=-ldl DESTDIR="$DESTDIR" install
vlicense LICENSE
rm -r $DESTDIR/usr/include
}

View file

@ -0,0 +1,2 @@
site=https://nodejs.org/dist
pattern='v\K[\d.]+(?=\/)'

View file

@ -1,7 +1,7 @@
# Template file for 'nodejs' # Template file for 'nodejs'
pkgname=nodejs pkgname=nodejs
version=9.1.0 version=9.1.0
revision=1 revision=2
wrksrc=node-v${version} wrksrc=node-v${version}
hostmakedepends="pkg-config python $(vopt_if icu icu)" hostmakedepends="pkg-config python $(vopt_if icu icu)"
makedepends="zlib-devel python-devel $(vopt_if icu icu-devel) makedepends="zlib-devel python-devel $(vopt_if icu icu-devel)
@ -21,6 +21,8 @@ desc_option_icu="Enable shared icu"
build_options_default="libuv http_parser icu" build_options_default="libuv http_parser icu"
replaces="iojs>=0" replaces="iojs>=0"
conflicts="nodejs-lts"
provides="nodejs-runtime-0_1"
do_configure() { do_configure() {
local _args local _args

View file

@ -1,8 +1,8 @@
# Template file for 'yarn-bin' # Template file for 'yarn-bin'
pkgname=yarn-bin pkgname=yarn-bin
version=1.3.2 version=1.3.2
revision=1 revision=2
depends="nodejs" depends="virtual?nodejs-runtime"
short_desc="Fast, reliable, and secure dependency management - precompiled binaries" short_desc="Fast, reliable, and secure dependency management - precompiled binaries"
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>" maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
license="2-cause-BSD" license="2-cause-BSD"

View file

@ -1,9 +1,9 @@
# Template file for 'yarn' # Template file for 'yarn'
pkgname=yarn pkgname=yarn
version=1.3.2 version=1.3.2
revision=1 revision=2
hostmakedepends="yarn-bin" hostmakedepends="yarn-bin nodejs"
depends="nodejs" depends="virtual?nodejs-runtime"
short_desc="Fast, reliable, and secure dependency management" short_desc="Fast, reliable, and secure dependency management"
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>" maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
license="2-cause-BSD" license="2-cause-BSD"