summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2016-06-09 13:14:34 +0900
committerBenda Xu <heroxbd@gentoo.org>2016-06-09 13:14:34 +0900
commit93e3197a59461996d5845bdba5601c6461cac9fb (patch)
tree5024da75aa577d8f9864bc98466b5a57e04236bd /net-libs
parentpackage.mask: mask sys-fs/redirfs for removal (diff)
downloadgentoo-93e3197a59461996d5845bdba5601c6461cac9fb.tar.gz
gentoo-93e3197a59461996d5845bdba5601c6461cac9fb.tar.bz2
gentoo-93e3197a59461996d5845bdba5601c6461cac9fb.zip
net-libs/nodejs: fix for Prefix path.
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/nodejs/nodejs-6.2.1.ebuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/net-libs/nodejs/nodejs-6.2.1.ebuild b/net-libs/nodejs/nodejs-6.2.1.ebuild
index 2591d13a142..3b65e9a2e52 100644
--- a/net-libs/nodejs/nodejs-6.2.1.ebuild
+++ b/net-libs/nodejs/nodejs-6.2.1.ebuild
@@ -149,11 +149,11 @@ src_install() {
# We need to temporarily replace default config path since
# npm otherwise tries to write outside of the sandbox
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
+ sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
local tmp_npm_completion_file="$(emktemp)"
"${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
newbashcomp "${tmp_npm_completion_file}" npm
- sed -i -e "s|'${D}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
+ sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
# Move man pages
doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*