I'm running latest ~ of net-libs/nodejs (0.7.8) and installing some modules with npm (ex sqlite3) fail because the command "node-waf" is not found. by googling it seems that this binary should be installed along with node and npm exacutables, maybe it is worth checking the ebuild for some missing instructions thanks Reproducible: Always
also let me add this one while you are looking at the ebuild: npm is installed in /bin/npm while normally in gentoo binaries from packages are in /usr/bin/ (and node is there, indeed). I sincerly don't care about this one but maybe someone else would. Thanks again p.s. I've just manually run ebuild unpack, and compile phases and a node-waf python executable script is in the work/node-0.7.8/tools directory
Upstream changed the buildsystem into a broken mess, ebuild pulls out files one by one. Since it does *not* use waf I assumed that it's not needed. (I lack words to describe the confusion I see there!) Let me try to re-add it ...
I have same issue here. No node-waf for me :( Module developers will heavy need this.
Created attachment 315615 [details, diff] Proposed patch to make node-waf work I ran into the same issues as the OP. I patched the build in my local overlay. I've attached the patch. I also move npm from /bin to /usr/bin, but that is not necessarily required. I changed the cp of files in deps/uv/include to a recursive copy after having issues with "uv.h" missing for some modules. Also note, the wafadmin directory critically must be in ../lib/node relative to the node-waf tool. I put them both relative to /usr, but I have not exhaustively tested this location -- that is to say, I wonder why node_modules gets put in /lib and if other tools must in / then.
+ 27 Jun 2012; Patrick Lauer <patrick@gentoo.org> +nodejs-0.7.12.ebuild: + Bump for #419345 #417241