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