From: Jonathan Callen Date: Thu, 8 Oct 2015 22:52:30 +0000 (-0400) Subject: net-libs/nodejs: Fix build with USE=-npm X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=071e6473715de3bf9e1626bd290ebafaaa3b2310;p=gentoo.git net-libs/nodejs: Fix build with USE=-npm Gentoo-Bug: 562518 Package-Manager: portage-2.2.22 --- diff --git a/net-libs/nodejs/nodejs-4.1.1.ebuild b/net-libs/nodejs/nodejs-4.1.1.ebuild index af811ba7c964..fb66363b44b2 100644 --- a/net-libs/nodejs/nodejs-4.1.1.ebuild +++ b/net-libs/nodejs/nodejs-4.1.1.ebuild @@ -119,9 +119,11 @@ src_compile() { src_install() { local LIBDIR="${ED}/usr/$(get_libdir)" emake install DESTDIR="${ED}" PREFIX=/usr - use npm && dodoc -r "${LIBDIR}"/node_modules/npm/html - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html} || die - find "${LIBDIR}"/node_modules -type f -name "LICENSE*" -or -name "LICENCE*" -delete || die + if use npm; then + dodoc -r "${LIBDIR}"/node_modules/npm/html + rm -rf "${LIBDIR}"/node_modules/npm/{doc,html} || die + find "${LIBDIR}"/node_modules -type f -name "LICENSE*" -or -name "LICENCE*" -delete || die + fi # set up a symlink structure that npm expects.. dodir /usr/include/node/deps/{v8,uv}