1 |
commit: 6ecfc8a51132aca2786d2a8349fd8f83bc984cb7 |
2 |
Author: Bernardo Meurer <meurerbernardo <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Aug 8 01:28:37 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 8 01:52:07 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ecfc8a5 |
7 |
|
8 |
sys-apps/yarn: bump to 1.17.3 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/691726 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/12639 |
12 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
13 |
Signed-off-by: Bernardo Meurer <bernardo <AT> standard.ai> |
14 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
15 |
|
16 |
sys-apps/yarn/Manifest | 1 + |
17 |
sys-apps/yarn/yarn-1.17.3.ebuild | 39 +++++++++++++++++++++++++++++++++++++++ |
18 |
2 files changed, 40 insertions(+) |
19 |
|
20 |
diff --git a/sys-apps/yarn/Manifest b/sys-apps/yarn/Manifest |
21 |
index 279dfded80b..be981e0d2fb 100644 |
22 |
--- a/sys-apps/yarn/Manifest |
23 |
+++ b/sys-apps/yarn/Manifest |
24 |
@@ -3,4 +3,5 @@ DIST yarn-v1.12.3.tar.gz 1166553 BLAKE2B 8e0c56c46522eeccaa558dd1fccdca40e83d03d |
25 |
DIST yarn-v1.13.0.tar.gz 1169613 BLAKE2B 5fc730c0b456d67702ef5305223cfd933c4c8f1d13364ff383294f8ae2b7b3f400476ff32b9aa0b27c497116660ea295691831e4e9bf50cb699d03d2dcd99e6e SHA512 5277f0d9e79fbfc8a6b7864c3e1bc554fe38582cf7f21b83c641ecf98aabc78c014caef94ebd26877578ae1fb6370e6242ad2b70cfd569fa2d099a3da936f90c |
26 |
DIST yarn-v1.15.2.tar.gz 1169927 BLAKE2B 1ebf899b1f34dd3b6fea4fa001b1edda62dd4c8964099b8a1bc858a1b28b7ccbab3aa3e229bc7882892763db414ed4f7cfbe2deb636d2a8675da87df1754a835 SHA512 0e1a9a19ed8571829db8ee36776841c9793bcbc936938d87deecd875604c4ef70d72058ac7bc429095ac540422917bda1103761b224daf3f026e8a9499a051af |
27 |
DIST yarn-v1.16.0.tar.gz 1172930 BLAKE2B 1dbb754ae0af3b9666bb03057f587854407b3587fc4304e8282c759d5ea0cbee12eed58e526808893d3cf8e29c4ec69b13a28acccc6f6908bcdb8c9126d1a408 SHA512 71f7a6c8696758a035ce8a5452079b4cf7fc0b85a43c867e4c99a4970704009e2eea858fb49780cebb1a99a18687ff9bd5759ef16e75cb3008982e0059b591d6 |
28 |
+DIST yarn-v1.17.3.tar.gz 1240577 BLAKE2B a5b0fdd014928181da63a322bdc030e4aefd4033d27f49a37225aa2cb3199339dd06e9f74aaa442bfb4692b0470fda40102a41b52a1369c8b84282bae5bc46a6 SHA512 0a003ca3b9d165a42f99e17f581c76142edff56ff45f9f53d8868b62a80ca3aeb7ef07e9e66304b0cdd85e826d294b299e998324a97f8061619ea4beb0e37b84 |
29 |
DIST yarn-v1.9.4.tar.gz 937393 BLAKE2B 188e270b2a8b5b357b85101eda2552d675e3f41d30bc7b45266f34831cbcfc00feefe452c420f3aaefad7423c2af342d5fdb859ec6420faf689b680b5acda00f SHA512 1e3a908cf47a2fe46d7ce8db549b91cd0b3372c7c43c6b0029f1060b044a0a65e5bc3323f4ed6baf20bbbcb49ba358a6bb8f2691a591e4d3e8a01bc31372cb5b |
30 |
|
31 |
diff --git a/sys-apps/yarn/yarn-1.17.3.ebuild b/sys-apps/yarn/yarn-1.17.3.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..6366d148523 |
34 |
--- /dev/null |
35 |
+++ b/sys-apps/yarn/yarn-1.17.3.ebuild |
36 |
@@ -0,0 +1,39 @@ |
37 |
+# Copyright 1999-2019 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+MY_P="${PN}-v${PV}" |
43 |
+ |
44 |
+DESCRIPTION="Fast, reliable, and secure node dependency management" |
45 |
+HOMEPAGE="https://yarnpkg.com" |
46 |
+SRC_URI="https://github.com/yarnpkg/yarn/releases/download/v${PV}/${MY_P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="BSD-2" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+IUSE="" |
52 |
+ |
53 |
+RDEPEND="!dev-util/cmdtest |
54 |
+ net-libs/nodejs" |
55 |
+DEPEND="${RDEPEND}" |
56 |
+ |
57 |
+S="${WORKDIR}/${MY_P}" |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ default |
61 |
+ sed -i 's/"installationMethod": "tar"/"installationMethod": "portage"/g' "${S}/package.json" || die |
62 |
+} |
63 |
+ |
64 |
+src_install() { |
65 |
+ local install_dir="/usr/$(get_libdir)/node_modules/yarn" path shebang |
66 |
+ insinto "${install_dir}" |
67 |
+ doins -r . |
68 |
+ dosym "../$(get_libdir)/node_modules/yarn/bin/yarn.js" "/usr/bin/yarn" |
69 |
+ |
70 |
+ while read -r -d '' path; do |
71 |
+ read -r shebang < "${ED}${path}" || die |
72 |
+ [[ "${shebang}" == \#\!* ]] || continue |
73 |
+ fperms +x "${path}" |
74 |
+ done < <(find "${ED}" -type f -printf '/%P\0' || die) |
75 |
+} |