Date: Thu, 19 Feb 2015 19:45:33 +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: r379370 - head/www/npm Message-ID: <201502191945.t1JJjXcr057060@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Thu Feb 19 19:45:32 2015 New Revision: 379370 URL: https://svnweb.freebsd.org/changeset/ports/379370 QAT: https://qat.redports.org/buildarchive/r379370/ Log: - Add NODE and IOJS options: allow to use www/iojs as backend PR: 197390 Requested by: Savagedlight <marieheleneka@gmail.com> Modified: head/www/npm/Makefile Modified: head/www/npm/Makefile ============================================================================== --- head/www/npm/Makefile Thu Feb 19 19:45:26 2015 (r379369) +++ head/www/npm/Makefile Thu Feb 19 19:45:32 2015 (r379370) @@ -11,8 +11,12 @@ COMMENT= Node package manager LICENSE= MIT -OPTIONS_DEFINE= NODE_DEVEL -NODE_DEVEL_DESC=Use www/node-devel instead of www/node +OPTIONS_SINGLE= BACKEND +OPTIONS_SINGLE_BACKEND= IOJS NODE NODE_DEVEL +OPTIONS_DEFAULT=NODE +IOJS_DESC= Use www/iojs as backend +NODE_DESC= Use www/node as backend +NODE_DEVEL_DESC=Use www/node-devel as backend MAKE_ARGS= npm_config_prefix=${STAGEDIR}${PREFIX} NO_BUILD= yes @@ -24,8 +28,9 @@ MANPREFIX= ${PREFIX}/lib/node_modules/np CPE_VENDOR= npmjs CPE_PRODUCT= node_packaged_modules +IOJS_RUN_DEPENDS= iojs>=1.0.0:${PORTSDIR}/www/iojs NODE_DEVEL_RUN_DEPENDS= node-devel>=0.8.0:${PORTSDIR}/www/node-devel -NODE_DEVEL_RUN_DEPENDS_OFF= node>=0.8.0:${PORTSDIR}/www/node +NODE_RUN_DEPENDS= node>=0.8.0:${PORTSDIR}/www/node post-patch: @${REINPLACE_CMD} -e 's|node cli.js|& --cache ${WRKDIR}/.cache|' ${WRKSRC}/Makefile
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502191945.t1JJjXcr057060>