[Midnightbsd-cvs] mports [21047] trunk/www/npm/Makefile: make old versions of node conditional on the build
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Mar 3 23:47:47 EST 2016
Revision: 21047
http://svnweb.midnightbsd.org/mports/?rev=21047
Author: laffer1
Date: 2016-03-03 23:47:47 -0500 (Thu, 03 Mar 2016)
Log Message:
-----------
make old versions of node conditional on the build
Modified Paths:
--------------
trunk/www/npm/Makefile
Property Changed:
----------------
trunk/www/npm/Makefile
Modified: trunk/www/npm/Makefile
===================================================================
--- trunk/www/npm/Makefile 2016-03-04 04:42:12 UTC (rev 21046)
+++ trunk/www/npm/Makefile 2016-03-04 04:47:47 UTC (rev 21047)
@@ -3,6 +3,7 @@
PORTNAME= npm
PORTVERSION= 2.14.7
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= FREEBSD_LOCAL/sunpoet
@@ -11,9 +12,18 @@
LICENSE= mit
+RUN_DEPENDS= gmake:${PORTSDIR}/devel/gmake
+
+OPTIONS_SINGLE= BACKEND
+OPTIONS_SINGLE_BACKEND= NODE NODE012 NODE4
+OPTIONS_DEFAULT=NODE
+NODE_DESC= Use www/node as backend
+NODE012_DESC= Use www/node012 as backend
+NODE4_DESC= Use www/node4 as backend
+
NO_BUILD= yes
REINPLACE_ARGS= -i ''
-USES= cpe tar:xz
+USES= cpe python:2 tar:xz
MANPREFIX= ${PREFIX}/lib/node_modules/npm
@@ -20,11 +30,14 @@
CPE_VENDOR= npmjs
CPE_PRODUCT= node_packaged_modules
+NODE_RUN_DEPENDS= node>=0.8.0:${PORTSDIR}/www/node
+NODE012_RUN_DEPENDS= node012>=0.8.0:${PORTSDIR}/www/node012
+NODE4_RUN_DEPENDS= node4>=0.8.0:${PORTSDIR}/www/node4
+
+BUILD_DEPENDS+= ${RUN_DEPENDS}
+
.include <bsd.mport.options.mk>
-BUILD_DEPENDS+= node>=0.8.0:${PORTSDIR}/www/node
-RUN_DEPENDS+= node>=0.8.0:${PORTSDIR}/www/node
-
post-patch:
@${SED} -i '' -e 's|node cli.js|& --cache ${WRKDIR}/.cache |; /^install: / s| docclean||' ${WRKSRC}/Makefile
@${SED} -i '' -e 's|install -g -f|install -g -f --prefix=${FAKE_DESTDIR}${PREFIX}|' ${WRKSRC}/Makefile
Property changes on: trunk/www/npm/Makefile
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list