Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jul 2014 15:43:40 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r361555 - in head/www/node: . files
Message-ID:  <201407111543.s6BFheJw044208@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Fri Jul 11 15:43:40 2014
New Revision: 361555
URL: http://svnweb.freebsd.org/changeset/ports/361555
QAT: https://qat.redports.org/buildarchive/r361555/

Log:
  1: Upgrade to 0.10.29 [1]
  2: USES=compiler to handle clang/gcc.
  
  PR:		ports/191353
  Submitted by:	amim.knabben[1], me[2]
  Approved by:	maintainer

Added:
  head/www/node/files/
  head/www/node/files/patch-node_constants.cc   (contents, props changed)
Modified:
  head/www/node/Makefile
  head/www/node/distinfo
  head/www/node/pkg-plist

Modified: head/www/node/Makefile
==============================================================================
--- head/www/node/Makefile	Fri Jul 11 15:40:49 2014	(r361554)
+++ head/www/node/Makefile	Fri Jul 11 15:43:40 2014	(r361555)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	node
-PORTVERSION=	0.10.28
+PORTVERSION=	0.10.29
 CATEGORIES=	www
 MASTER_SITES=	http://nodejs.org/dist/v${PORTVERSION}/
 DISTNAME=	${PORTNAME}-v${PORTVERSION}
@@ -14,17 +14,33 @@ LICENSE=	MIT
 
 LIB_DEPENDS=	libexecinfo.so:${PORTSDIR}/devel/libexecinfo
 
+USES=		gmake compiler
 HAS_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 USE_PYTHON=	2
-USES=		gmake
 
 CONFLICTS=	node-0.[02-9][0-9]* node-devel-0.[0-9]*
 
 ONLY_FOR_ARCHS=	i386 amd64
-CONFIGURE_ARGS=	--prefix=${PREFIX_RELDEST} --without-npm
+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=	any
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e '1 s|${SETENV} python|${PYTHON_CMD}|' ${WRKSRC}/configure
@@ -44,4 +60,4 @@ post-install:
 	@${ECHO_MSG} "Note: If you need npm (Node Package Manager), please install www/npm."
 	@${ECHO_MSG}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/www/node/distinfo
==============================================================================
--- head/www/node/distinfo	Fri Jul 11 15:40:49 2014	(r361554)
+++ head/www/node/distinfo	Fri Jul 11 15:43:40 2014	(r361555)
@@ -1,2 +1,2 @@
-SHA256 (node-v0.10.28.tar.gz) = abddc6441e0f208f6ed8a045e0293f713ea7f6dfb2d6a9a2024bf8b1b4617710
-SIZE (node-v0.10.28.tar.gz) = 13554081
+SHA256 (node-v0.10.29.tar.gz) = 47379d01f765f87c1a1498b4e65de30e45201de50334954860d7375a8258b15d
+SIZE (node-v0.10.29.tar.gz) = 13480496

Added: head/www/node/files/patch-node_constants.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/node/files/patch-node_constants.cc	Fri Jul 11 15:43:40 2014	(r361555)
@@ -0,0 +1,20 @@
+--- src/node_constants.orig 2014-06-24 23:09:52.432840733 -0300
++++ src/node_constants.cc 2014-06-24 10:07:23.406890824 -0300
+@@ -19,13 +19,13 @@
+ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
+ 
+-// O_NONBLOCK is not exported unless _XOPEN_SOURCE >= 500.
+-#if defined(_XOPEN_SOURCE) && _XOPEN_SOURCE < 500
+-#undef _XOPEN_SOURCE
++// O_NONBLOCK is not exported unless _XOPEN_SOURCE >= 600.
++#if defined(_XOPEN_SOURCE) && _XOPEN_SOURCE < 600
++# undef _XOPEN_SOURCE
+ #endif
+ 
+ #if !defined(_XOPEN_SOURCE)
+-#define _XOPEN_SOURCE 500
++# define _XOPEN_SOURCE 600
+ #endif
+ 
+ #include "node_constants.h"

Modified: head/www/node/pkg-plist
==============================================================================
--- head/www/node/pkg-plist	Fri Jul 11 15:40:49 2014	(r361554)
+++ head/www/node/pkg-plist	Fri Jul 11 15:43:40 2014	(r361555)
@@ -26,8 +26,6 @@ include/node/v8-profiler.h
 include/node/v8-testing.h
 include/node/v8.h
 include/node/v8stdint.h
-include/node/zconf.h
-include/node/zlib.h
 lib/node_modules/.keepme
 man/man1/node.1.gz
 @dirrmtry include/node/openssl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407111543.s6BFheJw044208>