net-libs/nodejs: Unhardcode path #574460
authorPatrick Lauer <patrick@gentoo.org>
Thu, 11 Feb 2016 20:17:53 +0000 (21:17 +0100)
committerPatrick Lauer <patrick@gentoo.org>
Thu, 11 Feb 2016 20:18:09 +0000 (21:18 +0100)
Package-Manager: portage-2.2.27

net-libs/nodejs/nodejs-5.6.0-r1.ebuild [moved from net-libs/nodejs/nodejs-5.6.0.ebuild with 98% similarity]

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 72657ac542fcea2429679810db030b71d86b9345..0c740de30cc4eedc977f8e6104ddf1f9ed649ab1 100644 (file)
@@ -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}"