pkgsrc/lang/nodejs/Makefile.common

86 lines
2.4 KiB
Text
Raw Normal View History

# $NetBSD: Makefile.common,v 1.41 2020/12/16 07:43:13 adam Exp $
Update lang/nodejs to 5.0.0. Move most logic into Makefile.common that will be shared by the LTS lang/nodejs4 package. Notable Changes in 5.0.0: * buffer: (Breaking) Removed both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time * console: (Breaking) Values reported by console.time() now have 3 decimals of accuracy added * fs: - fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument - (Breaking) In fs.readFile(), if an encoding is specified and the internal toString() fails the error is no longer thrown but is passed to the callback - (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if the internal toString() fails the error is no longer thrown but is passed to the callback * http: - Fixed a bug where pipelined http requests would stall - (Breaking) When parsing HTTP, don't add duplicates of the following headers: Retry-After, ETag, Last-Modified, Server, Age, Expires. - (Breaking) The callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError is thrown - (Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. * node: - (Breaking) Deprecated the _linklist module - (Breaking) Removed require.paths and require.registerExtension(), both had been previously set to throw Error when accessed * npm: Upgraded to version 3.3.6 from 2.14.7 * src: (Breaking) Bumped NODE_MODULE_VERSION to 47 from 46 * timers: Attempt to reuse the timer handle for setTimeout().unref(). * tls: - Added ALPN Support - TLS options can now be passed in an object to createSecurePair() - (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. * util: - (Breaking) util.p() was deprecated for years, and has now been removed - (Breaking) util.inherits() can now work with ES6 classes. * v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 - Implements the spread operator - Implements new.target * zlib: Decompression now throws on truncated input (e.g. unexpected end of file) See full release notes with more information at: https://nodejs.org/en/blog/release/v5.0.0/
2015-11-09 21:19:35 +01:00
# used by lang/nodejs/Makefile
# used by lang/nodejs8/Makefile
# used by lang/nodejs10/Makefile
# used by lang/nodejs12/Makefile
Update lang/nodejs to 5.0.0. Move most logic into Makefile.common that will be shared by the LTS lang/nodejs4 package. Notable Changes in 5.0.0: * buffer: (Breaking) Removed both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time * console: (Breaking) Values reported by console.time() now have 3 decimals of accuracy added * fs: - fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument - (Breaking) In fs.readFile(), if an encoding is specified and the internal toString() fails the error is no longer thrown but is passed to the callback - (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if the internal toString() fails the error is no longer thrown but is passed to the callback * http: - Fixed a bug where pipelined http requests would stall - (Breaking) When parsing HTTP, don't add duplicates of the following headers: Retry-After, ETag, Last-Modified, Server, Age, Expires. - (Breaking) The callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError is thrown - (Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. * node: - (Breaking) Deprecated the _linklist module - (Breaking) Removed require.paths and require.registerExtension(), both had been previously set to throw Error when accessed * npm: Upgraded to version 3.3.6 from 2.14.7 * src: (Breaking) Bumped NODE_MODULE_VERSION to 47 from 46 * timers: Attempt to reuse the timer handle for setTimeout().unref(). * tls: - Added ALPN Support - TLS options can now be passed in an object to createSecurePair() - (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. * util: - (Breaking) util.p() was deprecated for years, and has now been removed - (Breaking) util.inherits() can now work with ES6 classes. * v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 - Implements the spread operator - Implements new.target * zlib: Decompression now throws on truncated input (e.g. unexpected end of file) See full release notes with more information at: https://nodejs.org/en/blog/release/v5.0.0/
2015-11-09 21:19:35 +01:00
CATEGORIES= lang
2017-09-03 10:53:04 +02:00
MASTER_SITES= https://nodejs.org/dist/${DISTNAME:S/node-//}/
Update lang/nodejs to 5.0.0. Move most logic into Makefile.common that will be shared by the LTS lang/nodejs4 package. Notable Changes in 5.0.0: * buffer: (Breaking) Removed both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time * console: (Breaking) Values reported by console.time() now have 3 decimals of accuracy added * fs: - fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument - (Breaking) In fs.readFile(), if an encoding is specified and the internal toString() fails the error is no longer thrown but is passed to the callback - (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if the internal toString() fails the error is no longer thrown but is passed to the callback * http: - Fixed a bug where pipelined http requests would stall - (Breaking) When parsing HTTP, don't add duplicates of the following headers: Retry-After, ETag, Last-Modified, Server, Age, Expires. - (Breaking) The callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError is thrown - (Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. * node: - (Breaking) Deprecated the _linklist module - (Breaking) Removed require.paths and require.registerExtension(), both had been previously set to throw Error when accessed * npm: Upgraded to version 3.3.6 from 2.14.7 * src: (Breaking) Bumped NODE_MODULE_VERSION to 47 from 46 * timers: Attempt to reuse the timer handle for setTimeout().unref(). * tls: - Added ALPN Support - TLS options can now be passed in an object to createSecurePair() - (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. * util: - (Breaking) util.p() was deprecated for years, and has now been removed - (Breaking) util.inherits() can now work with ES6 classes. * v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 - Implements the spread operator - Implements new.target * zlib: Decompression now throws on truncated input (e.g. unexpected end of file) See full release notes with more information at: https://nodejs.org/en/blog/release/v5.0.0/
2015-11-09 21:19:35 +01:00
PKGNAME= ${DISTNAME:S/-v/js-/}
MAINTAINER= pkgsrc-users@NetBSD.org
2017-09-03 10:53:04 +02:00
HOMEPAGE= https://nodejs.org/
Update lang/nodejs to 5.0.0. Move most logic into Makefile.common that will be shared by the LTS lang/nodejs4 package. Notable Changes in 5.0.0: * buffer: (Breaking) Removed both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time * console: (Breaking) Values reported by console.time() now have 3 decimals of accuracy added * fs: - fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument - (Breaking) In fs.readFile(), if an encoding is specified and the internal toString() fails the error is no longer thrown but is passed to the callback - (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if the internal toString() fails the error is no longer thrown but is passed to the callback * http: - Fixed a bug where pipelined http requests would stall - (Breaking) When parsing HTTP, don't add duplicates of the following headers: Retry-After, ETag, Last-Modified, Server, Age, Expires. - (Breaking) The callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError is thrown - (Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. * node: - (Breaking) Deprecated the _linklist module - (Breaking) Removed require.paths and require.registerExtension(), both had been previously set to throw Error when accessed * npm: Upgraded to version 3.3.6 from 2.14.7 * src: (Breaking) Bumped NODE_MODULE_VERSION to 47 from 46 * timers: Attempt to reuse the timer handle for setTimeout().unref(). * tls: - Added ALPN Support - TLS options can now be passed in an object to createSecurePair() - (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. * util: - (Breaking) util.p() was deprecated for years, and has now been removed - (Breaking) util.inherits() can now work with ES6 classes. * v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 - Implements the spread operator - Implements new.target * zlib: Decompression now throws on truncated input (e.g. unexpected end of file) See full release notes with more information at: https://nodejs.org/en/blog/release/v5.0.0/
2015-11-09 21:19:35 +01:00
COMMENT= V8 JavaScript for clients and servers
LICENSE= mit
HAS_CONFIGURE= yes
Update lang/nodejs to 6.0.0. This release will become the new LTS later in 2016. The following significant changes have been made since the previous Node.js v5.0.0 release. Buffer - New Buffer constructors have been added #4682 and #5833. - Existing Buffer() and SlowBuffer() constructors have been deprecated in docs #4682 and #5833. - Previously deprecated Buffer APIs are removed #5048, #4594. - Improved error handling #4514. - The Buffer.prototype.lastIndexOf() method has been added #4846. Cluster - Worker emitted as first argument in 'message' event #5361. - The worker.exitedAfterDisconnect property replaces worker.suicide #3743. Console - Calling console.timeEnd() with an unknown label now emits a process warning rather than throwing #5901. Crypto - Improved error handling #3100, #5611. - Simplified Certificate class bindings #5382. - Improved control over FIPS mode #5181. - pbkdf2 digest overloading is deprecated #4047. Dependencies - Reintroduce shared c-ares build support #5775. - V8 updated to 5.0.71.35 #6372. DNS - Add dns.resolvePtr() API to query plain DNS PTR records #4921. Domains - Clear stack when no error handler #4659. Events - The EventEmitter.prototype._events object no longer inherits from Object.prototype #6092. - The EventEmitter.prototype.prependListener() and EventEmitter.prototype.prependOnceListener() methods have been added #6032. File System - The fs.realpath() and fs.realpathSync() methods have been updated to use a more efficient libuv-based implementation. This change includes the removal of the cache argument and the method can throw new errors #3594. - FS apis can now accept and return paths as Buffers #5616. - Error handling and type checking improvements #5616, #5590, #4518, #3917. - fs.read's string interface is deprecated #4525. HTTP - 'clientError' can now be used to return custom errors from an HTTP server #4557.
2016-04-27 17:03:10 +02:00
USE_TOOLS+= bash gmake pkg-config
Update lang/nodejs to 5.0.0. Move most logic into Makefile.common that will be shared by the LTS lang/nodejs4 package. Notable Changes in 5.0.0: * buffer: (Breaking) Removed both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time * console: (Breaking) Values reported by console.time() now have 3 decimals of accuracy added * fs: - fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument - (Breaking) In fs.readFile(), if an encoding is specified and the internal toString() fails the error is no longer thrown but is passed to the callback - (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if the internal toString() fails the error is no longer thrown but is passed to the callback * http: - Fixed a bug where pipelined http requests would stall - (Breaking) When parsing HTTP, don't add duplicates of the following headers: Retry-After, ETag, Last-Modified, Server, Age, Expires. - (Breaking) The callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError is thrown - (Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. * node: - (Breaking) Deprecated the _linklist module - (Breaking) Removed require.paths and require.registerExtension(), both had been previously set to throw Error when accessed * npm: Upgraded to version 3.3.6 from 2.14.7 * src: (Breaking) Bumped NODE_MODULE_VERSION to 47 from 46 * timers: Attempt to reuse the timer handle for setTimeout().unref(). * tls: - Added ALPN Support - TLS options can now be passed in an object to createSecurePair() - (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. * util: - (Breaking) util.p() was deprecated for years, and has now been removed - (Breaking) util.inherits() can now work with ES6 classes. * v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 - Implements the spread operator - Implements new.target * zlib: Decompression now throws on truncated input (e.g. unexpected end of file) See full release notes with more information at: https://nodejs.org/en/blog/release/v5.0.0/
2015-11-09 21:19:35 +01:00
PYTHON_FOR_BUILD_ONLY= yes
Update lang/nodejs to 5.0.0. Move most logic into Makefile.common that will be shared by the LTS lang/nodejs4 package. Notable Changes in 5.0.0: * buffer: (Breaking) Removed both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time * console: (Breaking) Values reported by console.time() now have 3 decimals of accuracy added * fs: - fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument - (Breaking) In fs.readFile(), if an encoding is specified and the internal toString() fails the error is no longer thrown but is passed to the callback - (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if the internal toString() fails the error is no longer thrown but is passed to the callback * http: - Fixed a bug where pipelined http requests would stall - (Breaking) When parsing HTTP, don't add duplicates of the following headers: Retry-After, ETag, Last-Modified, Server, Age, Expires. - (Breaking) The callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError is thrown - (Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. * node: - (Breaking) Deprecated the _linklist module - (Breaking) Removed require.paths and require.registerExtension(), both had been previously set to throw Error when accessed * npm: Upgraded to version 3.3.6 from 2.14.7 * src: (Breaking) Bumped NODE_MODULE_VERSION to 47 from 46 * timers: Attempt to reuse the timer handle for setTimeout().unref(). * tls: - Added ALPN Support - TLS options can now be passed in an object to createSecurePair() - (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. * util: - (Breaking) util.p() was deprecated for years, and has now been removed - (Breaking) util.inherits() can now work with ES6 classes. * v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 - Implements the spread operator - Implements new.target * zlib: Decompression now throws on truncated input (e.g. unexpected end of file) See full release notes with more information at: https://nodejs.org/en/blog/release/v5.0.0/
2015-11-09 21:19:35 +01:00
GCC_REQD+= 4.9.4
Update lang/nodejs to 5.0.0. Move most logic into Makefile.common that will be shared by the LTS lang/nodejs4 package. Notable Changes in 5.0.0: * buffer: (Breaking) Removed both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time * console: (Breaking) Values reported by console.time() now have 3 decimals of accuracy added * fs: - fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument - (Breaking) In fs.readFile(), if an encoding is specified and the internal toString() fails the error is no longer thrown but is passed to the callback - (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if the internal toString() fails the error is no longer thrown but is passed to the callback * http: - Fixed a bug where pipelined http requests would stall - (Breaking) When parsing HTTP, don't add duplicates of the following headers: Retry-After, ETag, Last-Modified, Server, Age, Expires. - (Breaking) The callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError is thrown - (Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. * node: - (Breaking) Deprecated the _linklist module - (Breaking) Removed require.paths and require.registerExtension(), both had been previously set to throw Error when accessed * npm: Upgraded to version 3.3.6 from 2.14.7 * src: (Breaking) Bumped NODE_MODULE_VERSION to 47 from 46 * timers: Attempt to reuse the timer handle for setTimeout().unref(). * tls: - Added ALPN Support - TLS options can now be passed in an object to createSecurePair() - (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. * util: - (Breaking) util.p() was deprecated for years, and has now been removed - (Breaking) util.inherits() can now work with ES6 classes. * v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 - Implements the spread operator - Implements new.target * zlib: Decompression now throws on truncated input (e.g. unexpected end of file) See full release notes with more information at: https://nodejs.org/en/blog/release/v5.0.0/
2015-11-09 21:19:35 +01:00
CONFIG_SHELL= ${PYTHONBIN}
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --shared-cares
CONFIGURE_ARGS+= --shared-libuv
Update lang/nodejs to 5.0.0. Move most logic into Makefile.common that will be shared by the LTS lang/nodejs4 package. Notable Changes in 5.0.0: * buffer: (Breaking) Removed both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time * console: (Breaking) Values reported by console.time() now have 3 decimals of accuracy added * fs: - fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument - (Breaking) In fs.readFile(), if an encoding is specified and the internal toString() fails the error is no longer thrown but is passed to the callback - (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if the internal toString() fails the error is no longer thrown but is passed to the callback * http: - Fixed a bug where pipelined http requests would stall - (Breaking) When parsing HTTP, don't add duplicates of the following headers: Retry-After, ETag, Last-Modified, Server, Age, Expires. - (Breaking) The callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError is thrown - (Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. * node: - (Breaking) Deprecated the _linklist module - (Breaking) Removed require.paths and require.registerExtension(), both had been previously set to throw Error when accessed * npm: Upgraded to version 3.3.6 from 2.14.7 * src: (Breaking) Bumped NODE_MODULE_VERSION to 47 from 46 * timers: Attempt to reuse the timer handle for setTimeout().unref(). * tls: - Added ALPN Support - TLS options can now be passed in an object to createSecurePair() - (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. * util: - (Breaking) util.p() was deprecated for years, and has now been removed - (Breaking) util.inherits() can now work with ES6 classes. * v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 - Implements the spread operator - Implements new.target * zlib: Decompression now throws on truncated input (e.g. unexpected end of file) See full release notes with more information at: https://nodejs.org/en/blog/release/v5.0.0/
2015-11-09 21:19:35 +01:00
CONFIGURE_ARGS+= --shared-zlib
CONFIGURE_ARGS+= --without-npm
PTHREAD_AUTO_VARS= yes
Update lang/nodejs to 5.0.0. Move most logic into Makefile.common that will be shared by the LTS lang/nodejs4 package. Notable Changes in 5.0.0: * buffer: (Breaking) Removed both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time * console: (Breaking) Values reported by console.time() now have 3 decimals of accuracy added * fs: - fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument - (Breaking) In fs.readFile(), if an encoding is specified and the internal toString() fails the error is no longer thrown but is passed to the callback - (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if the internal toString() fails the error is no longer thrown but is passed to the callback * http: - Fixed a bug where pipelined http requests would stall - (Breaking) When parsing HTTP, don't add duplicates of the following headers: Retry-After, ETag, Last-Modified, Server, Age, Expires. - (Breaking) The callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError is thrown - (Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. * node: - (Breaking) Deprecated the _linklist module - (Breaking) Removed require.paths and require.registerExtension(), both had been previously set to throw Error when accessed * npm: Upgraded to version 3.3.6 from 2.14.7 * src: (Breaking) Bumped NODE_MODULE_VERSION to 47 from 46 * timers: Attempt to reuse the timer handle for setTimeout().unref(). * tls: - Added ALPN Support - TLS options can now be passed in an object to createSecurePair() - (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. * util: - (Breaking) util.p() was deprecated for years, and has now been removed - (Breaking) util.inherits() can now work with ES6 classes. * v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 - Implements the spread operator - Implements new.target * zlib: Decompression now throws on truncated input (e.g. unexpected end of file) See full release notes with more information at: https://nodejs.org/en/blog/release/v5.0.0/
2015-11-09 21:19:35 +01:00
2016-02-25 15:42:55 +01:00
CONFIGURE_ENV.NetBSD+= GYP_DEFINES="OS=netbsd"
MAKE_ENV.NetBSD+= GYP_DEFINES="OS=netbsd"
Update lang/nodejs to 5.0.0. Move most logic into Makefile.common that will be shared by the LTS lang/nodejs4 package. Notable Changes in 5.0.0: * buffer: (Breaking) Removed both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time * console: (Breaking) Values reported by console.time() now have 3 decimals of accuracy added * fs: - fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument - (Breaking) In fs.readFile(), if an encoding is specified and the internal toString() fails the error is no longer thrown but is passed to the callback - (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if the internal toString() fails the error is no longer thrown but is passed to the callback * http: - Fixed a bug where pipelined http requests would stall - (Breaking) When parsing HTTP, don't add duplicates of the following headers: Retry-After, ETag, Last-Modified, Server, Age, Expires. - (Breaking) The callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError is thrown - (Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. * node: - (Breaking) Deprecated the _linklist module - (Breaking) Removed require.paths and require.registerExtension(), both had been previously set to throw Error when accessed * npm: Upgraded to version 3.3.6 from 2.14.7 * src: (Breaking) Bumped NODE_MODULE_VERSION to 47 from 46 * timers: Attempt to reuse the timer handle for setTimeout().unref(). * tls: - Added ALPN Support - TLS options can now be passed in an object to createSecurePair() - (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. * util: - (Breaking) util.p() was deprecated for years, and has now been removed - (Breaking) util.inherits() can now work with ES6 classes. * v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 - Implements the spread operator - Implements new.target * zlib: Decompression now throws on truncated input (e.g. unexpected end of file) See full release notes with more information at: https://nodejs.org/en/blog/release/v5.0.0/
2015-11-09 21:19:35 +01:00
.if ${OPSYS} == "Linux" && !exists(/usr/bin/gold)
CONFIGURE_ENV+= GYP_DEFINES="linux_use_gold_flags=0"
.endif
Update lang/nodejs to 5.0.0. Move most logic into Makefile.common that will be shared by the LTS lang/nodejs4 package. Notable Changes in 5.0.0: * buffer: (Breaking) Removed both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time * console: (Breaking) Values reported by console.time() now have 3 decimals of accuracy added * fs: - fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument - (Breaking) In fs.readFile(), if an encoding is specified and the internal toString() fails the error is no longer thrown but is passed to the callback - (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if the internal toString() fails the error is no longer thrown but is passed to the callback * http: - Fixed a bug where pipelined http requests would stall - (Breaking) When parsing HTTP, don't add duplicates of the following headers: Retry-After, ETag, Last-Modified, Server, Age, Expires. - (Breaking) The callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError is thrown - (Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. * node: - (Breaking) Deprecated the _linklist module - (Breaking) Removed require.paths and require.registerExtension(), both had been previously set to throw Error when accessed * npm: Upgraded to version 3.3.6 from 2.14.7 * src: (Breaking) Bumped NODE_MODULE_VERSION to 47 from 46 * timers: Attempt to reuse the timer handle for setTimeout().unref(). * tls: - Added ALPN Support - TLS options can now be passed in an object to createSecurePair() - (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. * util: - (Breaking) util.p() was deprecated for years, and has now been removed - (Breaking) util.inherits() can now work with ES6 classes. * v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 - Implements the spread operator - Implements new.target * zlib: Decompression now throws on truncated input (e.g. unexpected end of file) See full release notes with more information at: https://nodejs.org/en/blog/release/v5.0.0/
2015-11-09 21:19:35 +01:00
REPLACE_PYTHON+= configure
REPLACE_PYTHON+= tools/genv8constants.py
REPLACE_PYTHON+= tools/gyp/pylib/gyp/flock_tool.py
.if ${OPSYS} == "NetBSD"
BUILD_DEPENDS+= lockf-[0-9]*:../../sysutils/lockf
2019-01-10 14:02:41 +01:00
BUILDLINK_TRANSFORM+= rm:-ldl
Update lang/nodejs to 5.0.0. Move most logic into Makefile.common that will be shared by the LTS lang/nodejs4 package. Notable Changes in 5.0.0: * buffer: (Breaking) Removed both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time * console: (Breaking) Values reported by console.time() now have 3 decimals of accuracy added * fs: - fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument - (Breaking) In fs.readFile(), if an encoding is specified and the internal toString() fails the error is no longer thrown but is passed to the callback - (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if the internal toString() fails the error is no longer thrown but is passed to the callback * http: - Fixed a bug where pipelined http requests would stall - (Breaking) When parsing HTTP, don't add duplicates of the following headers: Retry-After, ETag, Last-Modified, Server, Age, Expires. - (Breaking) The callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError is thrown - (Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. * node: - (Breaking) Deprecated the _linklist module - (Breaking) Removed require.paths and require.registerExtension(), both had been previously set to throw Error when accessed * npm: Upgraded to version 3.3.6 from 2.14.7 * src: (Breaking) Bumped NODE_MODULE_VERSION to 47 from 46 * timers: Attempt to reuse the timer handle for setTimeout().unref(). * tls: - Added ALPN Support - TLS options can now be passed in an object to createSecurePair() - (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. * util: - (Breaking) util.p() was deprecated for years, and has now been removed - (Breaking) util.inherits() can now work with ES6 classes. * v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 - Implements the spread operator - Implements new.target * zlib: Decompression now throws on truncated input (e.g. unexpected end of file) See full release notes with more information at: https://nodejs.org/en/blog/release/v5.0.0/
2015-11-09 21:19:35 +01:00
.endif
TEST_TARGET= check
.if defined(TOOLS_PLATFORM.paxctl)
SUBST_CLASSES+= mktools
SUBST_STAGE.mktools= post-configure
# nodejs8
SUBST_FILES.mktools+= out/deps/v8/src/mksnapshot.target.mk
# nodejs10
SUBST_FILES.mktools+= out/deps/v8/gypfiles/mksnapshot.target.mk
# nodejs12
SUBST_FILES.mktools+= out/mkcodecache.target.mk
SUBST_FILES.mktools+= out/tools/v8_gypfiles/mksnapshot.target.mk
# nodejs13
SUBST_FILES.mktools+= out/node_mksnapshot.target.mk
SUBST_SED.mktools+= -e 's|call do_cmd,link)|call do_cmd,link)\${.newline} ${TOOLS_PLATFORM.paxctl} +m $$@|'
2020-03-22 21:28:13 +01:00
SUBST_NOOP_OK.mktools= yes # because of the different affected files
.endif
CFLAGS.SunOS+= -D_FILE_OFFSET_BITS=64
CXXFLAGS.SunOS+= -D_FILE_OFFSET_BITS=64
Update lang/nodejs to 5.0.0. Move most logic into Makefile.common that will be shared by the LTS lang/nodejs4 package. Notable Changes in 5.0.0: * buffer: (Breaking) Removed both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time * console: (Breaking) Values reported by console.time() now have 3 decimals of accuracy added * fs: - fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument - (Breaking) In fs.readFile(), if an encoding is specified and the internal toString() fails the error is no longer thrown but is passed to the callback - (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if the internal toString() fails the error is no longer thrown but is passed to the callback * http: - Fixed a bug where pipelined http requests would stall - (Breaking) When parsing HTTP, don't add duplicates of the following headers: Retry-After, ETag, Last-Modified, Server, Age, Expires. - (Breaking) The callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError is thrown - (Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. * node: - (Breaking) Deprecated the _linklist module - (Breaking) Removed require.paths and require.registerExtension(), both had been previously set to throw Error when accessed * npm: Upgraded to version 3.3.6 from 2.14.7 * src: (Breaking) Bumped NODE_MODULE_VERSION to 47 from 46 * timers: Attempt to reuse the timer handle for setTimeout().unref(). * tls: - Added ALPN Support - TLS options can now be passed in an object to createSecurePair() - (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. * util: - (Breaking) util.p() was deprecated for years, and has now been removed - (Breaking) util.inherits() can now work with ES6 classes. * v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 - Implements the spread operator - Implements new.target * zlib: Decompression now throws on truncated input (e.g. unexpected end of file) See full release notes with more information at: https://nodejs.org/en/blog/release/v5.0.0/
2015-11-09 21:19:35 +01:00
pre-install:
${CHMOD} -R g-w ${WRKSRC}
Update lang/nodejs to 6.0.0. This release will become the new LTS later in 2016. The following significant changes have been made since the previous Node.js v5.0.0 release. Buffer - New Buffer constructors have been added #4682 and #5833. - Existing Buffer() and SlowBuffer() constructors have been deprecated in docs #4682 and #5833. - Previously deprecated Buffer APIs are removed #5048, #4594. - Improved error handling #4514. - The Buffer.prototype.lastIndexOf() method has been added #4846. Cluster - Worker emitted as first argument in 'message' event #5361. - The worker.exitedAfterDisconnect property replaces worker.suicide #3743. Console - Calling console.timeEnd() with an unknown label now emits a process warning rather than throwing #5901. Crypto - Improved error handling #3100, #5611. - Simplified Certificate class bindings #5382. - Improved control over FIPS mode #5181. - pbkdf2 digest overloading is deprecated #4047. Dependencies - Reintroduce shared c-ares build support #5775. - V8 updated to 5.0.71.35 #6372. DNS - Add dns.resolvePtr() API to query plain DNS PTR records #4921. Domains - Clear stack when no error handler #4659. Events - The EventEmitter.prototype._events object no longer inherits from Object.prototype #6092. - The EventEmitter.prototype.prependListener() and EventEmitter.prototype.prependOnceListener() methods have been added #6032. File System - The fs.realpath() and fs.realpathSync() methods have been updated to use a more efficient libuv-based implementation. This change includes the removal of the cache argument and the method can throw new errors #3594. - FS apis can now accept and return paths as Buffers #5616. - Error handling and type checking improvements #5616, #5590, #4518, #3917. - fs.read's string interface is deprecated #4525. HTTP - 'clientError' can now be used to return custom errors from an HTTP server #4557.
2016-04-27 17:03:10 +02:00
post-install:
.if defined(TOOLS_PLATFORM.paxctl)
${TOOLS_PLATFORM.paxctl} +m ${DESTDIR}${PREFIX}/bin/node
.endif
Update lang/nodejs to 6.0.0. This release will become the new LTS later in 2016. The following significant changes have been made since the previous Node.js v5.0.0 release. Buffer - New Buffer constructors have been added #4682 and #5833. - Existing Buffer() and SlowBuffer() constructors have been deprecated in docs #4682 and #5833. - Previously deprecated Buffer APIs are removed #5048, #4594. - Improved error handling #4514. - The Buffer.prototype.lastIndexOf() method has been added #4846. Cluster - Worker emitted as first argument in 'message' event #5361. - The worker.exitedAfterDisconnect property replaces worker.suicide #3743. Console - Calling console.timeEnd() with an unknown label now emits a process warning rather than throwing #5901. Crypto - Improved error handling #3100, #5611. - Simplified Certificate class bindings #5382. - Improved control over FIPS mode #5181. - pbkdf2 digest overloading is deprecated #4047. Dependencies - Reintroduce shared c-ares build support #5775. - V8 updated to 5.0.71.35 #6372. DNS - Add dns.resolvePtr() API to query plain DNS PTR records #4921. Domains - Clear stack when no error handler #4659. Events - The EventEmitter.prototype._events object no longer inherits from Object.prototype #6092. - The EventEmitter.prototype.prependListener() and EventEmitter.prototype.prependOnceListener() methods have been added #6032. File System - The fs.realpath() and fs.realpathSync() methods have been updated to use a more efficient libuv-based implementation. This change includes the removal of the cache argument and the method can throw new errors #3594. - FS apis can now accept and return paths as Buffers #5616. - Error handling and type checking improvements #5616, #5590, #4518, #3917. - fs.read's string interface is deprecated #4525. HTTP - 'clientError' can now be used to return custom errors from an HTTP server #4557.
2016-04-27 17:03:10 +02:00
Update lang/nodejs to 5.0.0. Move most logic into Makefile.common that will be shared by the LTS lang/nodejs4 package. Notable Changes in 5.0.0: * buffer: (Breaking) Removed both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time * console: (Breaking) Values reported by console.time() now have 3 decimals of accuracy added * fs: - fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument - (Breaking) In fs.readFile(), if an encoding is specified and the internal toString() fails the error is no longer thrown but is passed to the callback - (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if the internal toString() fails the error is no longer thrown but is passed to the callback * http: - Fixed a bug where pipelined http requests would stall - (Breaking) When parsing HTTP, don't add duplicates of the following headers: Retry-After, ETag, Last-Modified, Server, Age, Expires. - (Breaking) The callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError is thrown - (Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. * node: - (Breaking) Deprecated the _linklist module - (Breaking) Removed require.paths and require.registerExtension(), both had been previously set to throw Error when accessed * npm: Upgraded to version 3.3.6 from 2.14.7 * src: (Breaking) Bumped NODE_MODULE_VERSION to 47 from 46 * timers: Attempt to reuse the timer handle for setTimeout().unref(). * tls: - Added ALPN Support - TLS options can now be passed in an object to createSecurePair() - (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. * util: - (Breaking) util.p() was deprecated for years, and has now been removed - (Breaking) util.inherits() can now work with ES6 classes. * v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 - Implements the spread operator - Implements new.target * zlib: Decompression now throws on truncated input (e.g. unexpected end of file) See full release notes with more information at: https://nodejs.org/en/blog/release/v5.0.0/
2015-11-09 21:19:35 +01:00
.if ${OPSYS} != "Darwin"
.include "../../devel/libexecinfo/buildlink3.mk"
.endif
BUILDLINK_API_DEPENDS.libuv+= libuv>=1.40
.include "../../devel/libuv/buildlink3.mk"
Update lang/nodejs to 5.0.0. Move most logic into Makefile.common that will be shared by the LTS lang/nodejs4 package. Notable Changes in 5.0.0: * buffer: (Breaking) Removed both 'raw' and 'raws' encoding types from Buffer, these have been deprecated for a long time * console: (Breaking) Values reported by console.time() now have 3 decimals of accuracy added * fs: - fs.readFile*(), fs.writeFile*(), and fs.appendFile*() now also accept a file descriptor as their first argument - (Breaking) In fs.readFile(), if an encoding is specified and the internal toString() fails the error is no longer thrown but is passed to the callback - (Breaking) In fs.read() (using the fs.read(fd, length, position, encoding, callback) form), if the internal toString() fails the error is no longer thrown but is passed to the callback * http: - Fixed a bug where pipelined http requests would stall - (Breaking) When parsing HTTP, don't add duplicates of the following headers: Retry-After, ETag, Last-Modified, Server, Age, Expires. - (Breaking) The callback argument to OutgoingMessage#setTimeout() must be a function or a TypeError is thrown - (Breaking) HTTP methods and header names must now conform to the RFC 2616 "token" rule, a list of allowed characters that excludes control characters and a number of separator characters. * node: - (Breaking) Deprecated the _linklist module - (Breaking) Removed require.paths and require.registerExtension(), both had been previously set to throw Error when accessed * npm: Upgraded to version 3.3.6 from 2.14.7 * src: (Breaking) Bumped NODE_MODULE_VERSION to 47 from 46 * timers: Attempt to reuse the timer handle for setTimeout().unref(). * tls: - Added ALPN Support - TLS options can now be passed in an object to createSecurePair() - (Breaking) The default minimum DH key size for tls.connect() is now 1024 bits and a warning is shown when DH key size is less than 2048 bits. * util: - (Breaking) util.p() was deprecated for years, and has now been removed - (Breaking) util.inherits() can now work with ES6 classes. * v8: (Breaking) Upgraded to 4.6.85.25 from 4.5.103.35 - Implements the spread operator - Implements new.target * zlib: Decompression now throws on truncated input (e.g. unexpected end of file) See full release notes with more information at: https://nodejs.org/en/blog/release/v5.0.0/
2015-11-09 21:19:35 +01:00
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/tool.mk"
.include "../../net/libcares/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"