$OpenBSD: patch-deps_npm_bin_node-gyp-bin_node-gyp,v 1.4 2019/11/24 18:42:28 abieber Exp $
Index: deps/npm/bin/node-gyp-bin/node-gyp
--- deps/npm/bin/node-gyp-bin/node-gyp.orig
+++ deps/npm/bin/node-gyp-bin/node-gyp
@@ -1,6 +1,5 @@
 #!/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
+
+# stop trying to be cute and just call node-gyp with the full path
+
+node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js "$@"
