Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/yarn/
Date: Sat, 29 Apr 2017 00:40:32
Message-Id: 1493426399.9c5855a264086df35ad224c20f44c024316e0f3e.zmedico@gentoo
1 commit: 9c5855a264086df35ad224c20f44c024316e0f3e
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 29 00:39:59 2017 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 29 00:39:59 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c5855a2
7
8 sys-apps/yarn: make scripts executable for bug 614094
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 sys-apps/yarn/{yarn-0.21.3.ebuild => yarn-0.21.3-r1.ebuild} | 6 +++++-
13 1 file changed, 5 insertions(+), 1 deletion(-)
14
15 diff --git a/sys-apps/yarn/yarn-0.21.3.ebuild b/sys-apps/yarn/yarn-0.21.3-r1.ebuild
16 similarity index 73%
17 rename from sys-apps/yarn/yarn-0.21.3.ebuild
18 rename to sys-apps/yarn/yarn-0.21.3-r1.ebuild
19 index 94506663bde..631ba960a31 100644
20 --- a/sys-apps/yarn/yarn-0.21.3.ebuild
21 +++ b/sys-apps/yarn/yarn-0.21.3-r1.ebuild
22 @@ -19,9 +19,13 @@ DEPEND="${RDEPEND}"
23 S="${WORKDIR}/dist"
24
25 src_install() {
26 - local install_dir="/usr/$(get_libdir)/node_modules/yarn"
27 + local install_dir="/usr/$(get_libdir)/node_modules/yarn" path
28 insinto "${install_dir}"
29 doins -r .
30 dosym "../$(get_libdir)/node_modules/yarn/bin/yarn.js" "/usr/bin/yarn"
31 fperms a+x "${install_dir}/bin/yarn.js"
32 + while read -r -d '' path; do
33 + [[ $(head -n1 "${path}") == \#\!* ]] || continue
34 + chmod +x "${path}" || die #614094
35 + done < <(find "${ED}" -type f -print0)
36 }