npm: Switch to regular DEPENDS. trunk
authorjperkin <jperkin@pkgsrc.org>
Tue, 10 Jul 2018 15:57:00 +0000
branchtrunk
changeset 310301 9dec70ad3c0e
parent 310300 8b35c38e4080
child 310302 72a90fe78437
npm: Switch to regular DEPENDS. This needs to be able to be installed against any nodejs version, and can be as no native modules are used. Bump PKGREVISION.
lang/npm/Makefile
--- a/lang/npm/Makefile	Tue Jul 10 13:49:22 2018 +0000
+++ b/lang/npm/Makefile	Tue Jul 10 15:57:00 2018 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2018/07/03 05:03:22 adam Exp $
+# $NetBSD: Makefile,v 1.9 2018/07/10 15:57:00 jperkin Exp $
 
 DISTNAME=	npm-6.1.0
+PKGREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	${MASTER_SITE_GITHUB:=npm/}
 GITHUB_TAG=	v${PKGVERSION_NOREV}
@@ -15,6 +16,8 @@
 DISTFILES+=	${DISTNAME}${EXTRACT_SUFX} ${MARKED}.tar.gz
 SITES.${MARKED}.tar.gz=	-https://github.com/markedjs/marked/archive/v${MARKED:S/marked-//}.tar.gz
 
+DEPENDS+=	nodejs-[0-9]*:../../lang/nodejs
+
 USE_TOOLS+=	gmake perl
 
 PYTHON_VERSIONS_INCOMPATIBLE=	34 35 36 37 # required by gyp scripts included
@@ -49,6 +52,5 @@
 	${MV} ${DESTDIR}${PREFIX}/share/man ${DESTDIR}${PREFIX}/${PKGMANDIR}
 .endif
 
-.include "../../lang/nodejs/nodeversion.mk"
 .include "../../lang/python/pyversion.mk"
 .include "../../mk/bsd.pkg.mk"