commit:     8c069fe8db42c7805177359683ffef4c8b803560
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 18 18:16:39 2018 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Jun 18 18:20:20 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c069fe8

sys-apps/yarn: version bump to 1.7.0

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 sys-apps/yarn/Manifest          |  1 +
 sys-apps/yarn/yarn-1.7.0.ebuild | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)

diff --git a/sys-apps/yarn/Manifest b/sys-apps/yarn/Manifest
index 11bcca690bd..194a160f622 100644
--- a/sys-apps/yarn/Manifest
+++ b/sys-apps/yarn/Manifest
@@ -3,3 +3,4 @@ DIST yarn-v1.2.1.tar.gz 885691 BLAKE2B 
ba7a291e4b071cd285e890fbd8af2a1adf78bc7a6
 DIST yarn-v1.3.2.tar.gz 886500 BLAKE2B 
224503241b646bd6befe6571022e1081c4e9cce2371ce0c111704a6f0ceb7c4b4f0267c9c37d05feec60311cc7804706fb47d130ca64e6182590e88d8476b386
 SHA512 
d488ae56b60884bb42e5e2ac8a0359c6947e234ed8b5bba12a93f24abb4419b4a6fef708c35df8caa9e68edca3fe570d1dcda9295d29438e45a32ef5d029aedf
 DIST yarn-v1.5.1.tar.gz 936225 BLAKE2B 
b35631ba0fef692797c83431fb673c0286dbd29a5a3e5819111bcc189a136d7059afd7e1901a249204e1a14ff4c7a7321207d7fe1c057d4e585184424f9c26dc
 SHA512 
b58b712ee395d4cfec5271e02e8cf77489438815aeebea1c6844866eb6161be9ae078f62f726e44eeb704d0195b94339d1e89991ce56de8690d613d4bab5f548
 DIST yarn-v1.6.0.tar.gz 941806 BLAKE2B 
c3f225dae625e6404cf2bc363e695adeb43c3738a4a501c88415bee20810085dbf63abbaa7ef64200cfbdfc8a1a21e463af2c035c37e21dae49d5bff18d2d5fe
 SHA512 
073adcb75dff799ac68a5e0adbdc8f8343d3ada3e356dd0e5dad4254b21e0337bc76201163d037eb01e7c5365f15085ef38df171d77ee36cd58557a175e3f713
+DIST yarn-v1.7.0.tar.gz 944751 BLAKE2B 
468ee9fbc94e5ae74137f9232929e78213ee435a30b6c22a9bc4378fbf28ce1f4f1358d745f2f298767e98d9cded64d8c61a2f8e4705999bd194aaa21b3505e7
 SHA512 
1de75fbb48c49ef9c39eab434b3f27b669a8e74f9305e5f03fe3ca30cf6ca00b4b94f8445621474089681bb74f4813c0595633a45c16c4469bab08187ce94495

diff --git a/sys-apps/yarn/yarn-1.7.0.ebuild b/sys-apps/yarn/yarn-1.7.0.ebuild
new file mode 100644
index 00000000000..b4b5ee7ead8
--- /dev/null
+++ b/sys-apps/yarn/yarn-1.7.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="Fast, reliable, and secure node dependency management"
+HOMEPAGE="https://yarnpkg.com";
+SRC_URI="https://github.com/yarnpkg/yarn/releases/download/v${PV}/${MY_P}.tar.gz";
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="!dev-util/cmdtest
+       net-libs/nodejs"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_install() {
+       local install_dir="/usr/$(get_libdir)/node_modules/yarn" path shebang
+       insinto "${install_dir}"
+       doins -r .
+       dosym "../$(get_libdir)/node_modules/yarn/bin/yarn.js" "/usr/bin/yarn"
+
+       while read -r -d '' path; do
+               read -r shebang < ${path} || die
+               [[ "${shebang}" == \#\!* ]] || continue
+               chmod +x "${path}" || die #614094
+       done < <(find "${ED}" -type f -print0 || die)
+}

Reply via email to