Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2021 21:08:21 +0000 (UTC)
From:      Juraj Lutter <otis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r568613 - head/devel/node-gyp
Message-ID:  <202103162108.12GL8L51060039@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: otis
Date: Tue Mar 16 21:08:20 2021
New Revision: 568613
URL: https://svnweb.freebsd.org/changeset/ports/568613

Log:
  devel/node-gyp: Adjust runtime dependency
  
  - Make www/npm also a runtime dependency
  - Link in proper node_modules path
  
  Reported by:	osa
  Reviewed by:	osa
  Approved by:	osa
  Differential Revision:	https://reviews.freebsd.org/D29287

Modified:
  head/devel/node-gyp/Makefile
  head/devel/node-gyp/pkg-plist

Modified: head/devel/node-gyp/Makefile
==============================================================================
--- head/devel/node-gyp/Makefile	Tue Mar 16 21:01:19 2021	(r568612)
+++ head/devel/node-gyp/Makefile	Tue Mar 16 21:08:20 2021	(r568613)
@@ -3,6 +3,7 @@
 PORTNAME=	gyp
 DISTVERSIONPREFIX=	v
 DISTVERSION=	7.1.2
+PORTREVISION=	1
 CATEGORIES=	devel
 PKGNAMEPREFIX=	node-
 
@@ -12,6 +13,7 @@ COMMENT=	Cross-platform command-line tool written in N
 LICENSE=	MIT
 
 BUILD_DEPENDS=	${LOCALBASE}/bin/npm:www/npm
+RUN_DEPENDS=	${LOCALBASE}/bin/npm:www/npm
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	nodejs
@@ -27,5 +29,7 @@ do-install:
 	"! ( -name \.* -or -path *\/\.github\/* -or -name test -or -path *\/test\/* )")
 	${RLN} ${STAGEDIR}${PREFIX}/lib/node_modules/node-gyp/bin/node-gyp.js \
 		${STAGEDIR}${PREFIX}/bin/node-gyp
+	${LN} -s ${LOCALBASE}/lib/node_modules/npm/node_modules \
+		${STAGEDIR}${PREFIX}/lib/node_modules/node-gyp/node_modules
 
 .include <bsd.port.mk>

Modified: head/devel/node-gyp/pkg-plist
==============================================================================
--- head/devel/node-gyp/pkg-plist	Tue Mar 16 21:01:19 2021	(r568612)
+++ head/devel/node-gyp/pkg-plist	Tue Mar 16 21:08:20 2021	(r568613)
@@ -93,3 +93,4 @@ lib/node_modules/node-gyp/macOS_Catalina_acid_test.sh
 lib/node_modules/node-gyp/package.json
 lib/node_modules/node-gyp/src/win_delay_load_hook.cc
 lib/node_modules/node-gyp/update-gyp.py
+lib/node_modules/node-gyp/node_modules



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103162108.12GL8L51060039>