Index: head/www/npm/Makefile =================================================================== --- head/www/npm/Makefile (revision 454515) +++ head/www/npm/Makefile (revision 454516) @@ -1,58 +1,58 @@ # Created by: Sunpoet Po-Chuan Hsieh # $FreeBSD$ PORTNAME= npm PORTVERSION= 5.4.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= LOCAL/sunpoet MAINTAINER= sunpoet@FreeBSD.org COMMENT= Node package manager LICENSE= MIT RUN_DEPENDS= gmake:devel/gmake CONFLICTS_INSTALL= npm2 npm3 npm4 OPTIONS_SINGLE= BACKEND OPTIONS_SINGLE_BACKEND= NODE NODE4 NODE6 NODE8 OPTIONS_DEFAULT=NODE NODE_DESC= Use Node.js 9.x (www/node) as backend 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/node8) as backend NO_ARCH= yes NO_BUILD= yes REINPLACE_ARGS= -i '' USES= cpe python:2,run shebangfix tar:xz CPE_VENDOR= npmjs CPE_PRODUCT= node_packaged_modules SHEBANG_GLOB= *.py SHEBANG_FILES= lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples NODE_RUN_DEPENDS= node>=0.8.0:www/node NODE4_RUN_DEPENDS= node4>=0.8.0:www/node4 NODE6_RUN_DEPENDS= node6>=0.8.0:www/node6 NODE8_RUN_DEPENDS= node8>=0.8.0:www/node8 .include .if ${ARCH} == "i386" # Workaround for kernel bug 178881 EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-bug-178881 .endif post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/etc/man.d/npm.conf @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp @${FIND} ${WRKSRC}/ -name '*.sh' -exec ${REINPLACE_CMD} -e '1 s|/usr/local|${LOCALBASE}|' {} + do-install: cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/ .include Index: head/www/npm/files/patch-node9 =================================================================== --- head/www/npm/files/patch-node9 (nonexistent) +++ head/www/npm/files/patch-node9 (revision 454516) @@ -0,0 +1,12 @@ +--- lib/node_modules/npm/lib/utils/unsupported.js.orig 2017-09-15 00:42:12 UTC ++++ lib/node_modules/npm/lib/utils/unsupported.js +@@ -4,7 +4,8 @@ var supportedNode = [ + {ver: '4', min: '4.7.0'}, + {ver: '6', min: '6.0.0'}, + {ver: '7', min: '7.0.0'}, +- {ver: '8', min: '8.0.0'} ++ {ver: '8', min: '8.0.0'}, ++ {ver: '9', min: '9.0.0'} + ] + var knownBroken = '<4.7.0' + Property changes on: head/www/npm/files/patch-node9 ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property