Index: head/www/npm/Makefile =================================================================== --- head/www/npm/Makefile (revision 502939) +++ head/www/npm/Makefile (revision 502940) @@ -1,57 +1,58 @@ # Created by: Sunpoet Po-Chuan Hsieh # $FreeBSD$ PORTNAME= npm PORTVERSION= 6.9.0 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= LOCAL/sunpoet MAINTAINER= sunpoet@FreeBSD.org COMMENT= Node package manager LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/lib/node_modules/npm/LICENSE RUN_DEPENDS= gmake:devel/gmake CONFLICTS_INSTALL?= npm-node10 npm-node8 OPTIONS_SINGLE= BACKEND OPTIONS_SINGLE_BACKEND= NODE NODE10 NODE8 OPTIONS_DEFAULT=NODE NODE_DESC= Use Node.js 11.x/12.x (www/node) as backend NODE10_DESC= Use Node.js 10.x (www/node10) as backend NODE8_DESC= Use Node.js 8.x (www/node8) as backend USES= cpe python:2.7,run shebangfix tar:xz NO_ARCH= yes NO_BUILD= yes REINPLACE_ARGS= -i '' 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 NODE10_RUN_DEPENDS= node10>=0.8.0:www/node10 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-lib_node__modules_npm_node__modules_node-gyp_lib_configure.js =================================================================== --- head/www/npm/files/patch-lib_node__modules_npm_node__modules_node-gyp_lib_configure.js (nonexistent) +++ head/www/npm/files/patch-lib_node__modules_npm_node__modules_node-gyp_lib_configure.js (revision 502940) @@ -0,0 +1,11 @@ +--- lib/node_modules/npm/node_modules/node-gyp/lib/configure.js.orig 2019-05-29 07:53:16 UTC ++++ lib/node_modules/npm/node_modules/node-gyp/lib/configure.js +@@ -29,7 +29,7 @@ exports.usage = 'Generates ' + (win ? 'MSVC project fi + + function configure (gyp, argv, callback) { + +- var python = gyp.opts.python || process.env.PYTHON || 'python2' ++ var python = gyp.opts.python || process.env.PYTHON || 'python2.7' + , buildDir = path.resolve('build') + , configNames = [ 'config.gypi', 'common.gypi' ] + , configs = [] Property changes on: head/www/npm/files/patch-lib_node__modules_npm_node__modules_node-gyp_lib_configure.js ___________________________________________________________________ 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