summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2018-06-18 11:22:53 -0700
committerZac Medico <zmedico@gentoo.org>2018-06-18 11:22:53 -0700
commit6398be9a4c3eab06f5b27dc8d930153fd3eb2157 (patch)
tree02987013bc092d5dbd2687a941181fa4b6fd0759 /sys-apps/yarn
parentsys-apps/yarn: version bump to 1.7.0 (diff)
downloadgentoo-6398be9a4c3eab06f5b27dc8d930153fd3eb2157.tar.gz
gentoo-6398be9a4c3eab06f5b27dc8d930153fd3eb2157.tar.bz2
gentoo-6398be9a4c3eab06f5b27dc8d930153fd3eb2157.zip
sys-apps/yarn: version bump to 1.8.0
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'sys-apps/yarn')
-rw-r--r--sys-apps/yarn/Manifest1
-rw-r--r--sys-apps/yarn/yarn-1.8.0.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/sys-apps/yarn/Manifest b/sys-apps/yarn/Manifest
index 194a160f6228..2de076b81cd7 100644
--- a/sys-apps/yarn/Manifest
+++ b/sys-apps/yarn/Manifest
@@ -4,3 +4,4 @@ DIST yarn-v1.3.2.tar.gz 886500 BLAKE2B 224503241b646bd6befe6571022e1081c4e9cce23
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
+DIST yarn-v1.8.0.tar.gz 953127 BLAKE2B b290c4e6a5800afd8706954dab424f7cf0c784c0dade705f10a06803dfe64b83206f534dbb41e3e804593a17d722ddc3253377465413be571bb2b29639f99ea6 SHA512 12919a27d0845644992a60c87a919ef2776e5959c43d1c31767021475b8cbb591f5f6ff2b214eaddc11d520f91d758bee439abe077717a7348eb387813dbefb6
diff --git a/sys-apps/yarn/yarn-1.8.0.ebuild b/sys-apps/yarn/yarn-1.8.0.ebuild
new file mode 100644
index 000000000000..b4b5ee7ead80
--- /dev/null
+++ b/sys-apps/yarn/yarn-1.8.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)
+}