summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2017-09-17 18:00:04 +0000
committersunpoet <sunpoet@FreeBSD.org>2017-09-17 18:00:04 +0000
commitba7bf500324b31bef4a016903e982ad992b2dab5 (patch)
tree4aad34ccdb9c11ca595fa1991d783c2c138da0e3
parente4f08ef8ae4802c1a719d5d47a8a37b1b46155c7 (diff)
downloadFreeBSD-ports-ba7bf500324b31bef4a016903e982ad992b2dab5.zip
FreeBSD-ports-ba7bf500324b31bef4a016903e982ad992b2dab5.tar.gz
Add NODE4, NODE6 and NODE8 options
-rw-r--r--www/npm/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/www/npm/Makefile b/www/npm/Makefile
index 9cc535d..b90b070 100644
--- a/www/npm/Makefile
+++ b/www/npm/Makefile
@@ -12,10 +12,16 @@ 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
@@ -28,6 +34,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>
.if ${ARCH} == "i386"
OpenPOWER on IntegriCloud