summaryrefslogtreecommitdiffstats
path: root/nodejs/build
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-07-23 21:07:48 +0000
committer Eric Hameleers <alien@slackware.com>2020-07-23 21:07:48 +0000
commitb7bb207f2038705326c196cb4182bb22db25242e (patch)
tree341db64265cc151cb66d9444a720829e65478349 /nodejs/build
parentd451757f7958df43efdfaaa56c4311a889fe96ee (diff)
downloadasb-b7bb207f2038705326c196cb4182bb22db25242e.tar.gz
asb-b7bb207f2038705326c196cb4182bb22db25242e.tar.xz
nodejs: updated to 14.6.0
Diffstat (limited to 'nodejs/build')
-rwxr-xr-xnodejs/build/nodejs.SlackBuild30
1 files changed, 11 insertions, 19 deletions
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 <alien@slackware.com>
# * Update.
+# 13.12.0-1: 13/apr/2020 by Eric Hameleers <alien@slackware.com>
+# * Update.
+# 14.6.0-1: 23/jul/2020 by Eric Hameleers <alien@slackware.com>
+# * 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