Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Sep 2017 18:00:04 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r450011 - head/www/npm
Message-ID:  <201709171800.v8HI04Fp075964@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Sep 17 18:00:04 2017
New Revision: 450011
URL: https://svnweb.freebsd.org/changeset/ports/450011

Log:
  Add NODE4, NODE6 and NODE8 options

Modified:
  head/www/npm/Makefile

Modified: head/www/npm/Makefile
==============================================================================
--- head/www/npm/Makefile	Sun Sep 17 17:59:58 2017	(r450010)
+++ head/www/npm/Makefile	Sun Sep 17 18:00:04 2017	(r450011)
@@ -12,11 +12,17 @@ COMMENT=	Node package manager
 
 LICENSE=	MIT
 
-RUN_DEPENDS=	gmake:devel/gmake \
-		node>=0.8.0:www/node
+RUN_DEPENDS=	gmake:devel/gmake
 
-CONFLICTS_INSTALL=	npm2 npm3 npm4
+CONFLICTS_INSTALL?=	npm-node4 npm-node6 npm2 npm3 npm4
 
+OPTIONS_SINGLE=	BACKEND
+OPTIONS_SINGLE_BACKEND=	NODE4 NODE6 NODE8
+OPTIONS_DEFAULT=NODE8
+NODE4_DESC=	Use Node.js 4.x (www/node4) as backend
+NODE6_DESC=	Use Node.js 6.x (www/node6) as backend
+NODE8_DESC=	Use Node.js 8.x (www/node) as backend
+
 NO_ARCH=	yes
 NO_BUILD=	yes
 REINPLACE_ARGS=	-i ''
@@ -27,6 +33,10 @@ CPE_PRODUCT=	node_packaged_modules
 
 SHEBANG_GLOB=	*.py
 SHEBANG_FILES=	lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples
+
+NODE4_RUN_DEPENDS=	node4>=0.8.0:www/node4
+NODE6_RUN_DEPENDS=	node6>=0.8.0:www/node6
+NODE8_RUN_DEPENDS=	node>=0.8.0:www/node
 
 .include <bsd.port.pre.mk>
 



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