patch-deps_npm_bin_node-gyp-bin_node-gyp 573 B

123456789101112131415
  1. $OpenBSD: patch-deps_npm_bin_node-gyp-bin_node-gyp,v 1.3 2016/01/29 20:12:04 abieber Exp $
  2. --- deps/npm/bin/node-gyp-bin/node-gyp.orig Wed Dec 23 09:53:37 2015
  3. +++ deps/npm/bin/node-gyp-bin/node-gyp Fri Jan 22 15:29:28 2016
  4. @@ -1,6 +1,5 @@
  5. #!/usr/bin/env sh
  6. -if [ "x$npm_config_node_gyp" = "x" ]; then
  7. - node "`dirname "$0"`/../../node_modules/node-gyp/bin/node-gyp.js" "$@"
  8. -else
  9. - "$npm_config_node_gyp" "$@"
  10. -fi
  11. +
  12. +# stop trying to be cute and just call node-gyp with the full path
  13. +
  14. +node ${LOCALBASE}/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js "$@"