aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpi <pi@FreeBSD.org>2016-05-05 21:44:59 +0800
committerpi <pi@FreeBSD.org>2016-05-05 21:44:59 +0800
commit4152ac0f82877a859b6dcfe464f2bab03109e6b4 (patch)
treecc7079edc0a8cf0328395409ee882f1e7798949e
parent5bc8dbaf4436c63e5238997427cf18e3c65d2a1c (diff)
downloadfreebsd-ports-gnome-4152ac0f82877a859b6dcfe464f2bab03109e6b4.tar.gz
freebsd-ports-gnome-4152ac0f82877a859b6dcfe464f2bab03109e6b4.tar.zst
freebsd-ports-gnome-4152ac0f82877a859b6dcfe464f2bab03109e6b4.zip
www/node: 5.11.0 -> 6.0.0
New port: www/node5, to ease migration from node-5.x to node-6.x This new major version of Node.js delivers significant improvements in performance, reliability, usability and security. Module loading is nearly four times faster than in Node.js v4, tests and documentation have seen significant improvements, usability of the Buffer and File System APIs have been improved, and Node.js now supports 93% of ES6 language features, thanks to V8 version 5.0. The full release announcement can be read here: https://nodejs.org/en/blog/release/v6.0.0/ The full changelog is available on Github: https://github.com/nodejs/node/commit/ce3e3c5fe15479475c068482c48eb9cbf1ac9df5 For node5: node.js v5.x will only be supported for a few months to give people time to move to v6. This new port is marked as deprecated with an expiration date of July 1, allowing all of May and June to transition. See https://nodejs.org/en/blog/release/v6.0.0/#what-about-node-js-v5 PR: 209215, 209216 Submitted by: Bradley T. Hughes <bradleythughes@fastmail.fm> (maintainer)
-rw-r--r--UPDATING17
-rw-r--r--www/Makefile1
-rw-r--r--www/node/Makefile5
-rw-r--r--www/node/distinfo4
-rw-r--r--www/node/pkg-plist1
-rw-r--r--www/node5/Makefile78
-rw-r--r--www/node5/distinfo2
-rw-r--r--www/node5/files/patch-deps_v8_src_compiler_instruction.h (renamed from www/node/files/patch-deps_v8_src_compiler_instruction.h)4
-rw-r--r--www/node5/files/patch-deps_v8_src_compiler_js-type-feedback.h (renamed from www/node/files/patch-deps_v8_src_compiler_js-type-feedback.h)4
-rw-r--r--www/node5/files/patch-deps_v8_src_log-utils.h12
-rw-r--r--www/node5/files/patch-deps_v8_src_zone-containers.h (renamed from www/node/files/patch-deps_v8_src_zone-containers.h)4
-rw-r--r--www/node5/pkg-descr3
-rw-r--r--www/node5/pkg-message1
-rw-r--r--www/node5/pkg-plist134
14 files changed, 259 insertions, 11 deletions
diff --git a/UPDATING b/UPDATING
index 870a9bbc60c8..a2e63abd91de 100644
--- a/UPDATING
+++ b/UPDATING
@@ -5,6 +5,23 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
+20160505:
+ AFFECTS: Users of www/node
+ AUTHOR: bradleythughes@fastmail.fm
+
+ The www/node port has been updated to node.js v6.0.0, the latest
+ upstream release. Users of node.js v5.x are encouraged to upgrade as
+ soon as possible, as upstream support will end two months from now.
+
+ The www/node5 port has been created to aid users transition. Use one of
+ the following commands to continue using node.js v5.x:
+
+ # pkg install node5
+ or
+ # portmaster -o www/node5 www/node
+ or
+ # portupgrade -o www/node5 www/node
+
20160503:
AFFECTS: users of security/libressl
AUTHOR: brnrd@FreeBSD.org
diff --git a/www/Makefile b/www/Makefile
index ad392d8e9391..0e4d9fbf85c7 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -556,6 +556,7 @@
SUBDIR += node010
SUBDIR += node012
SUBDIR += node4
+ SUBDIR += node5
SUBDIR += nostromo
SUBDIR += npapi-vlc
SUBDIR += npapi-xine
diff --git a/www/node/Makefile b/www/node/Makefile
index 42174e67ab6d..c4eda6945fed 100644
--- a/www/node/Makefile
+++ b/www/node/Makefile
@@ -1,14 +1,13 @@
-# Created by: Jin-Sih Lin <linpct@gmail.com>
# $FreeBSD$
PORTNAME= node
-PORTVERSION= 5.11.0
+PORTVERSION= 6.0.0
DISTVERSIONPREFIX= v
CATEGORIES= www
MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/
MAINTAINER= bradleythughes@fastmail.fm
-COMMENT= V8 JavaScript for client and server (5.x)
+COMMENT= V8 JavaScript for client and server (6.x)
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
diff --git a/www/node/distinfo b/www/node/distinfo
index 39f376bf7579..feb2c2a10bdc 100644
--- a/www/node/distinfo
+++ b/www/node/distinfo
@@ -1,2 +1,2 @@
-SHA256 (node-v5.11.0.tar.gz) = ef41b01a9e49de5a5d160071166f911d0bc9ff6a0bd0e88ea4863df572d95e91
-SIZE (node-v5.11.0.tar.gz) = 22682857
+SHA256 (node-v6.0.0.tar.gz) = 6db56d81a4e07ff4017809ad4ee49a5256fad804cd8527f8724f8e149e3dfc32
+SIZE (node-v6.0.0.tar.gz) = 20525111
diff --git a/www/node/pkg-plist b/www/node/pkg-plist
index 9d64fe811913..5a1e15827d71 100644
--- a/www/node/pkg-plist
+++ b/www/node/pkg-plist
@@ -122,6 +122,7 @@ include/node/uv-version.h
include/node/uv-win.h
include/node/uv.h
include/node/v8-debug.h
+include/node/v8-experimental.h
include/node/v8-platform.h
include/node/v8-profiler.h
include/node/v8-testing.h
diff --git a/www/node5/Makefile b/www/node5/Makefile
new file mode 100644
index 000000000000..06567cc7f55d
--- /dev/null
+++ b/www/node5/Makefile
@@ -0,0 +1,78 @@
+# $FreeBSD$
+
+PORTNAME= node
+PORTVERSION= 5.11.0
+DISTVERSIONPREFIX= v
+CATEGORIES= www
+MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/
+PKGNAMESUFFIX= 5
+
+MAINTAINER= bradleythughes@fastmail.fm
+COMMENT= V8 JavaScript for client and server (5.x)
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+DEPRECATED= Upstream provides limited support after the release of v6.0.0, see https://nodejs.org/en/blog/release/v6.0.0/#what-about-node-js-v5
+EXPIRATION_DATE= 2016-07-01
+
+OPTIONS_DEFINE= BUNDLED_SSL DOCS
+OPTIONS_DEFAULT=BUNDLED_SSL
+OPTIONS_SUB= yes
+
+BUNDLED_SSL_DESC= Use node's bundled OpenSSL implementation
+BUNDLED_SSL_USE_OFF= OPENSSL=yes
+BUNDLED_SSL_VARS_OFF= WITH_OPENSSL_PORT=yes
+
+USES= compiler execinfo gmake python:2
+HAS_CONFIGURE= yes
+USE_LDCONFIG= yes
+
+CONFLICTS_INSTALL= node-[0-9]* node-devel-[0-9]* node010-[0-9]* node012-[0-9]* iojs-[0-9]* node4-[0-9]*
+
+ONLY_FOR_ARCHS= i386 amd64
+CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} --without-npm --shared-zlib
+PREFIX_RELDEST= ${PREFIX:S,^${DESTDIR},,}
+REINPLACE_ARGS= -i ''
+MAKE_ENV+= CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX}
+
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang
+MAKE_ENV+= LINK=clang++
+CFLAGS+= -Wno-unused-private-field
+.if ${COMPILER_VERSION} >= 33
+CFLAGS+= -Wno-nested-anon-types -Wno-unused-function
+.if ${COMPILER_VERSION} >= 34
+CFLAGS+= -Wno-unused-const-variable
+.endif
+.endif
+.else
+MAKE_ARGS+= strictaliasing=off
+USE_GCC= yes
+.endif
+
+.if empty(PORT_OPTIONS:MBUNDLED_SSL)
+CONFIGURE_ARGS+= --shared-openssl \
+ --shared-openssl-includes=${OPENSSLINC} \
+ --shared-openssl-libpath=${OPENSSLLIB}
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
+ ${WRKSRC}/deps/v8/tools/gyp/v8.gyp
+ @${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \
+ ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e "s|python -c|${PYTHON_CMD} -c|" \
+ ${WRKSRC}/deps/v8/build/toolchain.gypi
+ @${REINPLACE_CMD} -e "s|'python',|'${PYTHON_CMD}',|" \
+ ${WRKSRC}/tools/icu/icu-generic.gyp \
+ ${WRKSRC}/deps/v8/build/shim_headers.gypi \
+ ${WRKSRC}/deps/v8/tools/gyp/v8.gyp \
+ ${WRKSRC}/deps/v8/src/d8.gyp \
+ ${WRKSRC}/node.gyp
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/node
+
+.include <bsd.port.post.mk>
diff --git a/www/node5/distinfo b/www/node5/distinfo
new file mode 100644
index 000000000000..39f376bf7579
--- /dev/null
+++ b/www/node5/distinfo
@@ -0,0 +1,2 @@
+SHA256 (node-v5.11.0.tar.gz) = ef41b01a9e49de5a5d160071166f911d0bc9ff6a0bd0e88ea4863df572d95e91
+SIZE (node-v5.11.0.tar.gz) = 22682857
diff --git a/www/node/files/patch-deps_v8_src_compiler_instruction.h b/www/node5/files/patch-deps_v8_src_compiler_instruction.h
index 9868d91d7b47..b675eb7c2c2f 100644
--- a/www/node/files/patch-deps_v8_src_compiler_instruction.h
+++ b/www/node5/files/patch-deps_v8_src_compiler_instruction.h
@@ -1,5 +1,5 @@
---- deps/v8/src/compiler/instruction.h.orig 2016-03-16 21:22:58.000000000 +0100
-+++ deps/v8/src/compiler/instruction.h 2016-03-24 23:27:23.004854000 +0100
+--- deps/v8/src/compiler/instruction.h.orig 2016-04-21 17:45:24 UTC
++++ deps/v8/src/compiler/instruction.h
@@ -1011,7 +1011,7 @@ class InstructionBlock final : public Zo
typedef ZoneDeque<Constant> ConstantDeque;
diff --git a/www/node/files/patch-deps_v8_src_compiler_js-type-feedback.h b/www/node5/files/patch-deps_v8_src_compiler_js-type-feedback.h
index a203b901872a..85f3c2a6d101 100644
--- a/www/node/files/patch-deps_v8_src_compiler_js-type-feedback.h
+++ b/www/node5/files/patch-deps_v8_src_compiler_js-type-feedback.h
@@ -1,5 +1,5 @@
---- deps/v8/src/compiler/js-type-feedback.h.orig 2016-03-16 21:22:58.000000000 +0100
-+++ deps/v8/src/compiler/js-type-feedback.h 2016-03-24 22:54:54.529827000 +0100
+--- deps/v8/src/compiler/js-type-feedback.h.orig 2016-04-21 17:45:24 UTC
++++ deps/v8/src/compiler/js-type-feedback.h
@@ -33,9 +33,10 @@ class JSTypeFeedbackTable : public ZoneO
private:
friend class JSTypeFeedbackSpecializer;
diff --git a/www/node5/files/patch-deps_v8_src_log-utils.h b/www/node5/files/patch-deps_v8_src_log-utils.h
new file mode 100644
index 000000000000..c681953ae1a7
--- /dev/null
+++ b/www/node5/files/patch-deps_v8_src_log-utils.h
@@ -0,0 +1,12 @@
+--- deps/v8/src/log-utils.h.orig 2015-12-09 04:12:52 UTC
++++ deps/v8/src/log-utils.h
+@@ -5,6 +5,9 @@
+ #ifndef V8_LOG_UTILS_H_
+ #define V8_LOG_UTILS_H_
+
++#include <cstdio>
++#include <cstdarg>
++
+ #include "src/allocation.h"
+ #include "src/base/platform/mutex.h"
+ #include "src/flags.h"
diff --git a/www/node/files/patch-deps_v8_src_zone-containers.h b/www/node5/files/patch-deps_v8_src_zone-containers.h
index 4724e794376e..0ee316010eb9 100644
--- a/www/node/files/patch-deps_v8_src_zone-containers.h
+++ b/www/node5/files/patch-deps_v8_src_zone-containers.h
@@ -1,5 +1,5 @@
---- deps/v8/src/zone-containers.h.orig 2016-03-16 21:22:58.000000000 +0100
-+++ deps/v8/src/zone-containers.h 2016-03-24 23:34:37.741885000 +0100
+--- deps/v8/src/zone-containers.h.orig 2016-04-21 17:45:25 UTC
++++ deps/v8/src/zone-containers.h
@@ -114,12 +114,12 @@ class ZoneSet : public std::set<K, Compa
// a zone allocator.
template <typename K, typename V, typename Compare = std::less<K>>
diff --git a/www/node5/pkg-descr b/www/node5/pkg-descr
new file mode 100644
index 000000000000..079aa9b45c25
--- /dev/null
+++ b/www/node5/pkg-descr
@@ -0,0 +1,3 @@
+node - evented I/O for V8 javascript
+
+WWW: http://nodejs.org/
diff --git a/www/node5/pkg-message b/www/node5/pkg-message
new file mode 100644
index 000000000000..87d7ce8d688e
--- /dev/null
+++ b/www/node5/pkg-message
@@ -0,0 +1 @@
+Note: If you need npm (Node Package Manager), please install www/npm.
diff --git a/www/node5/pkg-plist b/www/node5/pkg-plist
new file mode 100644
index 000000000000..66d027384518
--- /dev/null
+++ b/www/node5/pkg-plist
@@ -0,0 +1,134 @@
+bin/node
+include/node/android-ifaddrs.h
+include/node/ares.h
+include/node/ares_build.h
+include/node/ares_rules.h
+include/node/ares_version.h
+include/node/common.gypi
+include/node/config.gypi
+include/node/libplatform/libplatform.h
+include/node/nameser.h
+include/node/node.h
+include/node/node_buffer.h
+include/node/node_internals.h
+include/node/node_object_wrap.h
+include/node/node_version.h
+%%BUNDLED_SSL%%include/node/openssl/aes.h
+%%BUNDLED_SSL%%include/node/openssl/archs/BSD-x86/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/BSD-x86_64/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/VC-WIN32/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/VC-WIN64A/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/aix-gcc/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/aix64-gcc/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/darwin-i386-cc/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/darwin64-x86_64-cc/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/linux-aarch64/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/linux-armv4/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/linux-elf/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/linux-ppc/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/linux-ppc64/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/linux-x32/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/linux-x86_64/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/linux32-s390x/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/linux64-s390x/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/solaris-x86-gcc/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/archs/solaris64-x86_64-gcc/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/asn1.h
+%%BUNDLED_SSL%%include/node/openssl/asn1_mac.h
+%%BUNDLED_SSL%%include/node/openssl/asn1t.h
+%%BUNDLED_SSL%%include/node/openssl/bio.h
+%%BUNDLED_SSL%%include/node/openssl/blowfish.h
+%%BUNDLED_SSL%%include/node/openssl/bn.h
+%%BUNDLED_SSL%%include/node/openssl/buffer.h
+%%BUNDLED_SSL%%include/node/openssl/camellia.h
+%%BUNDLED_SSL%%include/node/openssl/cast.h
+%%BUNDLED_SSL%%include/node/openssl/cmac.h
+%%BUNDLED_SSL%%include/node/openssl/cms.h
+%%BUNDLED_SSL%%include/node/openssl/comp.h
+%%BUNDLED_SSL%%include/node/openssl/conf.h
+%%BUNDLED_SSL%%include/node/openssl/conf_api.h
+%%BUNDLED_SSL%%include/node/openssl/crypto.h
+%%BUNDLED_SSL%%include/node/openssl/des.h
+%%BUNDLED_SSL%%include/node/openssl/des_old.h
+%%BUNDLED_SSL%%include/node/openssl/dh.h
+%%BUNDLED_SSL%%include/node/openssl/dsa.h
+%%BUNDLED_SSL%%include/node/openssl/dso.h
+%%BUNDLED_SSL%%include/node/openssl/dtls1.h
+%%BUNDLED_SSL%%include/node/openssl/e_os2.h
+%%BUNDLED_SSL%%include/node/openssl/ebcdic.h
+%%BUNDLED_SSL%%include/node/openssl/ec.h
+%%BUNDLED_SSL%%include/node/openssl/ecdh.h
+%%BUNDLED_SSL%%include/node/openssl/ecdsa.h
+%%BUNDLED_SSL%%include/node/openssl/engine.h
+%%BUNDLED_SSL%%include/node/openssl/err.h
+%%BUNDLED_SSL%%include/node/openssl/evp.h
+%%BUNDLED_SSL%%include/node/openssl/hmac.h
+%%BUNDLED_SSL%%include/node/openssl/idea.h
+%%BUNDLED_SSL%%include/node/openssl/krb5_asn.h
+%%BUNDLED_SSL%%include/node/openssl/kssl.h
+%%BUNDLED_SSL%%include/node/openssl/lhash.h
+%%BUNDLED_SSL%%include/node/openssl/md4.h
+%%BUNDLED_SSL%%include/node/openssl/md5.h
+%%BUNDLED_SSL%%include/node/openssl/mdc2.h
+%%BUNDLED_SSL%%include/node/openssl/modes.h
+%%BUNDLED_SSL%%include/node/openssl/obj_mac.h
+%%BUNDLED_SSL%%include/node/openssl/objects.h
+%%BUNDLED_SSL%%include/node/openssl/ocsp.h
+%%BUNDLED_SSL%%include/node/openssl/opensslconf.h
+%%BUNDLED_SSL%%include/node/openssl/opensslv.h
+%%BUNDLED_SSL%%include/node/openssl/ossl_typ.h
+%%BUNDLED_SSL%%include/node/openssl/pem.h
+%%BUNDLED_SSL%%include/node/openssl/pem2.h
+%%BUNDLED_SSL%%include/node/openssl/pkcs12.h
+%%BUNDLED_SSL%%include/node/openssl/pkcs7.h
+%%BUNDLED_SSL%%include/node/openssl/pqueue.h
+%%BUNDLED_SSL%%include/node/openssl/rand.h
+%%BUNDLED_SSL%%include/node/openssl/rc2.h
+%%BUNDLED_SSL%%include/node/openssl/rc4.h
+%%BUNDLED_SSL%%include/node/openssl/ripemd.h
+%%BUNDLED_SSL%%include/node/openssl/rsa.h
+%%BUNDLED_SSL%%include/node/openssl/safestack.h
+%%BUNDLED_SSL%%include/node/openssl/seed.h
+%%BUNDLED_SSL%%include/node/openssl/sha.h
+%%BUNDLED_SSL%%include/node/openssl/srp.h
+%%BUNDLED_SSL%%include/node/openssl/srtp.h
+%%BUNDLED_SSL%%include/node/openssl/ssl.h
+%%BUNDLED_SSL%%include/node/openssl/ssl2.h
+%%BUNDLED_SSL%%include/node/openssl/ssl23.h
+%%BUNDLED_SSL%%include/node/openssl/ssl3.h
+%%BUNDLED_SSL%%include/node/openssl/stack.h
+%%BUNDLED_SSL%%include/node/openssl/symhacks.h
+%%BUNDLED_SSL%%include/node/openssl/tls1.h
+%%BUNDLED_SSL%%include/node/openssl/ts.h
+%%BUNDLED_SSL%%include/node/openssl/txt_db.h
+%%BUNDLED_SSL%%include/node/openssl/ui.h
+%%BUNDLED_SSL%%include/node/openssl/ui_compat.h
+%%BUNDLED_SSL%%include/node/openssl/whrlpool.h
+%%BUNDLED_SSL%%include/node/openssl/x509.h
+%%BUNDLED_SSL%%include/node/openssl/x509_vfy.h
+%%BUNDLED_SSL%%include/node/openssl/x509v3.h
+include/node/pthread-fixes.h
+include/node/stdint-msvc2008.h
+include/node/tree.h
+include/node/uv-aix.h
+include/node/uv-bsd.h
+include/node/uv-darwin.h
+include/node/uv-errno.h
+include/node/uv-linux.h
+include/node/uv-sunos.h
+include/node/uv-threadpool.h
+include/node/uv-unix.h
+include/node/uv-version.h
+include/node/uv-win.h
+include/node/uv.h
+include/node/v8-debug.h
+include/node/v8-platform.h
+include/node/v8-profiler.h
+include/node/v8-testing.h
+include/node/v8-util.h
+include/node/v8-version.h
+include/node/v8.h
+include/node/v8config.h
+@(,,444) man/man1/node.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/gdbinit
+share/systemtap/tapset/node.stp