Skip to content

Commit

Permalink
dev-util/electron: node-gyp
Browse files Browse the repository at this point in the history
  • Loading branch information
PF4Public committed Jan 28, 2024
1 parent facb353 commit 73c05ff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion dev-util/electron/electron-27.3.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2434,7 +2434,6 @@ src_install() {
insinto "${CHROMIUM_HOME}/node_modules"
doins -r "${WORKDIR}/${NODE_P}/deps/npm"
fperms -R 755 "${CHROMIUM_HOME}/node_modules/npm/bin/"
fperms -R 755 "${CHROMIUM_HOME}/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/"

insinto "/usr/include/electron-${PV%%.*}/"
doins -r out/Release/gen/node_headers/include/node
Expand Down
4 changes: 3 additions & 1 deletion dev-util/electron/electron-28.2.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2423,7 +2423,9 @@ src_install() {
insinto "${CHROMIUM_HOME}/node_modules"
doins -r "${WORKDIR}/${NODE_P}/deps/npm"
fperms -R 755 "${CHROMIUM_HOME}/node_modules/npm/bin/"
fperms -R 755 "${CHROMIUM_HOME}/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/"

insinto "${CHROMIUM_HOME}/node_modules/npm/bin/"
doexe "${FILESDIR}/node-gyp"

insinto "/usr/include/electron-${PV%%.*}/"
doins -r out/Release/gen/node_headers/include/node
Expand Down
6 changes: 6 additions & 0 deletions dev-util/electron/files/node-gyp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
if [ "x$npm_config_node_gyp" = "x" ]; then
node "`dirname "$0"`/../node_modules/node-gyp/bin/node-gyp.js" "$@"
else
"$npm_config_node_gyp" "$@"
fi

0 comments on commit 73c05ff

Please sign in to comment.