From: Zac Medico Date: Sat, 29 Apr 2017 00:39:59 +0000 (-0700) Subject: sys-apps/yarn: make scripts executable for bug 614094 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=9c5855a264086df35ad224c20f44c024316e0f3e;p=gentoo.git sys-apps/yarn: make scripts executable for bug 614094 Package-Manager: Portage-2.3.5, Repoman-2.3.2 --- diff --git a/sys-apps/yarn/yarn-0.21.3.ebuild b/sys-apps/yarn/yarn-0.21.3-r1.ebuild similarity index 73% rename from sys-apps/yarn/yarn-0.21.3.ebuild rename to sys-apps/yarn/yarn-0.21.3-r1.ebuild index 94506663bdec..631ba960a315 100644 --- a/sys-apps/yarn/yarn-0.21.3.ebuild +++ b/sys-apps/yarn/yarn-0.21.3-r1.ebuild @@ -19,9 +19,13 @@ DEPEND="${RDEPEND}" S="${WORKDIR}/dist" src_install() { - local install_dir="/usr/$(get_libdir)/node_modules/yarn" + local install_dir="/usr/$(get_libdir)/node_modules/yarn" path insinto "${install_dir}" doins -r . dosym "../$(get_libdir)/node_modules/yarn/bin/yarn.js" "/usr/bin/yarn" fperms a+x "${install_dir}/bin/yarn.js" + while read -r -d '' path; do + [[ $(head -n1 "${path}") == \#\!* ]] || continue + chmod +x "${path}" || die #614094 + done < <(find "${ED}" -type f -print0) }