From b7bb207f2038705326c196cb4182bb22db25242e Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Thu, 23 Jul 2020 21:07:48 +0000 Subject: nodejs: updated to 14.6.0 --- nodejs/build/nodejs.SlackBuild | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) (limited to 'nodejs/build') diff --git a/nodejs/build/nodejs.SlackBuild b/nodejs/build/nodejs.SlackBuild index 5d01751d..95e54aab 100755 --- a/nodejs/build/nodejs.SlackBuild +++ b/nodejs/build/nodejs.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh # $Id$ -# Copyright 2017, 2018 Eric Hameleers, Eindhoven, NL +# Copyright 2017, 2018, 2020 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -43,6 +43,10 @@ # * Update. # 8.12.0-1: 24/oct/2018 by Eric Hameleers # * Update. +# 13.12.0-1: 13/apr/2020 by Eric Hameleers +# * Update. +# 14.6.0-1: 23/jul/2020 by Eric Hameleers +# * Update. # # Run 'sh nodejs.SlackBuild' to build a Slackware package. # The package (.t?z) and .txt file as well as build logs are created in /tmp . @@ -52,7 +56,7 @@ PRGNAM=nodejs SRCNAM=node -VERSION=${VERSION:-8.12.0} +VERSION=${VERSION:-14.6.0} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:-" -j$(nproc) "} TAG=${TAG:-alien} @@ -174,31 +178,19 @@ sed -i deps/npm/test/tap/install-man.js -e "/fs.existsSync/ s/'share',//" # Fix libdir for 64-bit. Even Gentoo thanks Ryan McQuen for # https://github.com/iojs/io.js/issues/504 -sed -i -e "s|lib/|lib${LIBDIRSUFFIX}/|g" tools/install.py -sed -i -e "s/'lib'/'lib${LIBDIRSUFFIX}'/" lib/module.js -sed -i -e "s|\"lib\"|\"lib${LIBDIRSUFFIX}\"|" \ - -e "s/'lib'/'lib${LIBDIRSUFFIX}'/" deps/npm/lib/npm.js - -# Force the use of Python 2: -find -type f -exec sed -i {} \ - -e 's_^#!/usr/bin/env python$_&2_' \ - -e 's_^\(#!/usr/bin/python2\).[45]$_\1_' \ - -e 's_^#!/usr/bin/python$_&2_' \ - -e 's_^\( *exec \+\)python\( \+.*\)$_\1python2\2_'\ - -e 's_^\(.*\)python\( \+-c \+.*\)$_\1python2\2_'\ - -e "s_'python'_'python2'_" \ - \; -find test/ -type f -exec sed -i {} -e 's_python _python2 _' \; +sed -i tools/install.py -e "s|lib/|lib${LIBDIRSUFFIX}/|g" +sed -i deps/npm/lib/npm.js -e "s/'lib'/'lib${LIBDIRSUFFIX}'/" + +# Include the correct header: +sed -i src/node_crypto.cc -e "s|math.h|cmath|" echo Building ... export LDFLAGS="$SLKLDFLAGS" export CXXFLAGS="$SLKCFLAGS" export CFLAGS="$SLKCFLAGS" -PYTHON=python2 \ ./configure \ --prefix=/usr \ - --shared-openssl \ --shared-zlib \ 2>&1 | tee $OUTPUT/configure-${PRGNAM}.log -- cgit v1.2.3-65-gdbad