Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Nov 2016 13:01:25 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r426918 - head/www/node7
Message-ID:  <201611231301.uAND1Pta040322@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Wed Nov 23 13:01:25 2016
New Revision: 426918
URL: https://svnweb.freebsd.org/changeset/ports/426918

Log:
  www/node7: add dtrace option and enable by default
  
  Approved by:	bradleythughes@fastmail.fm (maintainer)

Modified:
  head/www/node7/Makefile
  head/www/node7/pkg-plist

Modified: head/www/node7/Makefile
==============================================================================
--- head/www/node7/Makefile	Wed Nov 23 12:51:35 2016	(r426917)
+++ head/www/node7/Makefile	Wed Nov 23 13:01:25 2016	(r426918)
@@ -2,6 +2,7 @@
 
 PORTNAME=	node
 PORTVERSION=	7.1.0
+PORTREVISION=	1
 DISTVERSIONPREFIX=	v
 CATEGORIES=	www
 MASTER_SITES=	http://nodejs.org/dist/v${PORTVERSION}/
@@ -13,9 +14,18 @@ COMMENT=	V8 JavaScript for client and se
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-OPTIONS_DEFINE=	BUNDLED_SSL DOCS NLS
+OPTIONS_DEFINE=	BUNDLED_SSL DOCS NLS DTRACE
+OPTIONS_DEFAULT=	DTRACE
 OPTIONS_SUB=	yes
 
+.if !exists(/usr/sbin/dtrace)
+OPTIONS_EXCLUDE+=	DTRACE
+.endif
+
+OPTIONS_EXCLUDE_FreeBSD_9+=	DTRACE
+OPTIONS_EXCLUDE_FreeBSD_10+=	DTRACE
+OPTIONS_EXCLUDE+=		${OPTIONS_EXCLUDE_${OPSYS}_${OSREL:R}}
+
 BUNDLED_SSL_DESC=		Use node.js's bundled OpenSSL implementation
 BUNDLED_SSL_USES_OFF=		ssl
 BUNDLED_SSL_CONFIGURE_OFF=	--shared-openssl
@@ -23,7 +33,9 @@ BUNDLED_SSL_CONFIGURE_OFF=	--shared-open
 NLS_CONFIGURE_ON=	--with-intl=system-icu
 NLS_LIB_DEPENDS=	libicui18n.so:devel/icu
 
-USES=		compiler:c++11-lib execinfo gmake python:2,build pkgconfig localbase
+USES=		compiler:c++11-lib execinfo gmake python:2,build pkgconfig \
+		localbase shebangfix
+
 HAS_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 
@@ -36,6 +48,8 @@ CONFIGURE_ARGS=	--prefix=${PREFIX_RELDES
 		--shared-libuv \
 		--shared-zlib
 
+SHEBANG_FILES=	tools/specialize_node_d.py tools/genv8constants.py
+
 PREFIX_RELDEST=	${PREFIX:S,^${DESTDIR},,}
 REINPLACE_ARGS=	-i ''
 MAKE_ENV+=	CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX}
@@ -71,6 +85,13 @@ CONFIGURE_ARGS=	--openssl-no-asm
 CXXFLAGS+=	-D_GLIBCXX_USE_C99
 .endif
 
+.if ${PORT_OPTIONS:MDTRACE}
+PLIST_SUB+=	DTRACE=""
+CONFIGURE_ARGS+=	--with-dtrace
+.else
+PLIST_SUB+=	DTRACE="@comment "
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
 		${WRKSRC}/deps/v8/src/v8.gyp

Modified: head/www/node7/pkg-plist
==============================================================================
--- head/www/node7/pkg-plist	Wed Nov 23 12:51:35 2016	(r426917)
+++ head/www/node7/pkg-plist	Wed Nov 23 13:01:25 2016	(r426918)
@@ -110,6 +110,7 @@ include/node/v8-util.h
 include/node/v8-version.h
 include/node/v8.h
 include/node/v8config.h
+%%DTRACE%%lib/dtrace/node.d
 @(,,444) man/man1/node.1.gz
 %%PORTDOCS%%%%DOCSDIR%%/gdbinit
 share/systemtap/tapset/node.stp



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