Commit 959f243b authored by otis's avatar otis
Browse files

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
parent bcb63758
......@@ -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 Node.js
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>
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment