commit:     13be6cf4352e8b49a01dd871e8a52698dcd3c95c
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 11 20:17:53 2016 +0000
Commit:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Thu Feb 11 20:18:09 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13be6cf4

net-libs/nodejs: Unhardcode path #574460

Package-Manager: portage-2.2.27

 net-libs/nodejs/{nodejs-5.6.0.ebuild => nodejs-5.6.0-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-libs/nodejs/nodejs-5.6.0.ebuild 
b/net-libs/nodejs/nodejs-5.6.0-r1.ebuild
similarity index 98%
rename from net-libs/nodejs/nodejs-5.6.0.ebuild
rename to net-libs/nodejs/nodejs-5.6.0-r1.ebuild
index 72657ac..0c740de 100644
--- a/net-libs/nodejs/nodejs-5.6.0.ebuild
+++ b/net-libs/nodejs/nodejs-5.6.0-r1.ebuild
@@ -148,7 +148,7 @@ src_install() {
                # Install bash completion for `npm`
                # We need to temporarily replace default config path since
                # npm otherwise tries to write outside of the sandbox
-               local npm_config="usr/lib64/node_modules/npm/lib/config/core.js"
+               local 
npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
                sed -i -e "s|'/etc'|'${D}/etc'|g" "${ED}/${npm_config}" || die
                local tmp_npm_completion_file="$(emktemp)"
                "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"

Reply via email to