From owner-svn-ports-head@FreeBSD.ORG Thu Feb 19 19:45:33 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9DC99A23; Thu, 19 Feb 2015 19:45:33 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 87035865; Thu, 19 Feb 2015 19:45:33 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1JJjXEx057061; Thu, 19 Feb 2015 19:45:33 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1JJjXcr057060; Thu, 19 Feb 2015 19:45:33 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201502191945.t1JJjXcr057060@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Thu, 19 Feb 2015 19:45:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r379370 - head/www/npm X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2015 19:45:33 -0000 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 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