1 |
commit: d7c16270024335cff3362d26c0ffcd8d667dddab |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 10 10:35:56 2017 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 10 10:35:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7c16270 |
7 |
|
8 |
sys-apps/yarn: Version bump to 1.0.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
sys-apps/yarn/Manifest | 1 + |
13 |
sys-apps/yarn/yarn-1.0.1.ebuild | 31 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 32 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/yarn/Manifest b/sys-apps/yarn/Manifest |
17 |
index e14c42770dc..c2236cbedbc 100644 |
18 |
--- a/sys-apps/yarn/Manifest |
19 |
+++ b/sys-apps/yarn/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST yarn-v0.27.5.tar.gz 816114 SHA256 f0f3510246ee74eb660ea06930dcded7b684eac2593aa979a7add84b72517968 SHA512 a21615f3bf4996d6e2dc84b54c3e9ca8a58143941a80771121f6eb6f5dcf8fd655e1c9b9420e7a0ab3a7c26ecd6bdd3790451d76435d7e3d6fbb5ba8ac729dbd WHIRLPOOL e21887c715c72c490c58817ca0a6542899f4036ccd81fedfab4f751b13eca6196f82236d206f7a58d550e78f0bff4dac08fbfc44f287e2463ad119042b98a83b |
22 |
+DIST yarn-v1.0.1.tar.gz 843398 SHA256 6b00b5e0a7074a512d39d2d91ba6262dde911d452617939ca4be4a700dd77cf1 SHA512 3d22bb7a7b32cff26bb7053a12e21fdabf4a2ff198e7164e034fd5e0b6a5760e0def19bcc6592f7df850108a3bf36d60a9337f1dc56a35ed72c98b14c0af95fb WHIRLPOOL 99826575498c7944ddf07c61c3bac5b7163c4fbe65f8196502b7322cc5978b1988ae524a4d2ae4ab69c78d5773d4bb66598fb1495394e139e7f72e3c2a32fe8c |
23 |
|
24 |
diff --git a/sys-apps/yarn/yarn-1.0.1.ebuild b/sys-apps/yarn/yarn-1.0.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..f028ad115d0 |
27 |
--- /dev/null |
28 |
+++ b/sys-apps/yarn/yarn-1.0.1.ebuild |
29 |
@@ -0,0 +1,31 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+DESCRIPTION="Fast, reliable, and secure node dependency management" |
36 |
+HOMEPAGE="https://yarnpkg.com" |
37 |
+SRC_URI="https://github.com/yarnpkg/yarn/releases/download/v${PV}/yarn-v${PV}.tar.gz" |
38 |
+ |
39 |
+LICENSE="BSD-2" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~x86" |
42 |
+IUSE="" |
43 |
+ |
44 |
+RDEPEND="!dev-util/cmdtest |
45 |
+ net-libs/nodejs" |
46 |
+DEPEND="${RDEPEND}" |
47 |
+ |
48 |
+S=${WORKDIR}/${PN}-v${PV} |
49 |
+ |
50 |
+src_install() { |
51 |
+ local install_dir="/usr/$(get_libdir)/node_modules/yarn" path |
52 |
+ insinto "${install_dir}" |
53 |
+ doins -r . |
54 |
+ dosym "../$(get_libdir)/node_modules/yarn/bin/yarn.js" "/usr/bin/yarn" |
55 |
+ fperms a+x "${install_dir}/bin/yarn.js" |
56 |
+ while read -r -d '' path; do |
57 |
+ [[ $(head -n1 "${path}") == \#\!* ]] || continue |
58 |
+ chmod +x "${path}" || die #614094 |
59 |
+ done < <(find "${ED}" -type f -print0) |
60 |
+} |