diff options
author | Zac Medico <zmedico@gentoo.org> | 2017-04-28 17:39:59 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2017-04-28 17:39:59 -0700 |
commit | 9c5855a264086df35ad224c20f44c024316e0f3e (patch) | |
tree | 0add50c28ae4e4683f151b4a8e77dd847d2f3565 /sys-apps | |
parent | www-misc/surl: clean up old. (diff) | |
download | gentoo-9c5855a264086df35ad224c20f44c024316e0f3e.tar.gz gentoo-9c5855a264086df35ad224c20f44c024316e0f3e.tar.bz2 gentoo-9c5855a264086df35ad224c20f44c024316e0f3e.zip |
sys-apps/yarn: make scripts executable for bug 614094
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/yarn/yarn-0.21.3-r1.ebuild (renamed from sys-apps/yarn/yarn-0.21.3.ebuild) | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys-apps/yarn/yarn-0.21.3.ebuild b/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) } |