summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Saboya <saboya@gmail.com>2018-05-05 21:23:30 -0300
committerMichał Górny <mgorny@gentoo.org>2018-05-12 19:46:29 +0200
commit4dcdfc44f07ef2854110186b213bac880bd1eb9a (patch)
treee3fd2e6086ae725d542a075c6467e371bcdf93c1 /sys-apps/yarn
parentapp-misc/elasticsearch: drop old (diff)
downloadgentoo-4dcdfc44f07ef2854110186b213bac880bd1eb9a.tar.gz
gentoo-4dcdfc44f07ef2854110186b213bac880bd1eb9a.tar.bz2
gentoo-4dcdfc44f07ef2854110186b213bac880bd1eb9a.zip
sys-apps/yarn: version bump to 1.6.0
Closes: https://bugs.gentoo.org/653344 Closes: https://github.com/gentoo/gentoo/pull/8045 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'sys-apps/yarn')
-rw-r--r--sys-apps/yarn/Manifest1
-rw-r--r--sys-apps/yarn/metadata.xml15
-rw-r--r--sys-apps/yarn/yarn-1.6.0.ebuild34
3 files changed, 46 insertions, 4 deletions
diff --git a/sys-apps/yarn/Manifest b/sys-apps/yarn/Manifest
index 1f1de14cce88..11bcca690bdb 100644
--- a/sys-apps/yarn/Manifest
+++ b/sys-apps/yarn/Manifest
@@ -2,3 +2,4 @@ DIST yarn-v1.1.0.tar.gz 874168 BLAKE2B 2c2e00237e4c1264ba3167f5fbeb40ef64d9ca42b
DIST yarn-v1.2.1.tar.gz 885691 BLAKE2B ba7a291e4b071cd285e890fbd8af2a1adf78bc7a65ddaf7adcebee2b8bc15d4b98293eeae79be5ad664daa6a56d553ade1fd5e50aaafc7ed2f980ebfe4feac58 SHA512 cb61788e16cd3537073b3a8711ce6a29f7e14380cea20ca16144e97ed05ec62c685b805a18af9e70d16f7aedb4c460cad97027e37fb43596f97570386d596477
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
diff --git a/sys-apps/yarn/metadata.xml b/sys-apps/yarn/metadata.xml
index b70cf1a5b6a1..487b031d3e68 100644
--- a/sys-apps/yarn/metadata.xml
+++ b/sys-apps/yarn/metadata.xml
@@ -1,8 +1,15 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!-- maintainer-needed -->
- <upstream>
- <remote-id type="github">yarnpkg/yarn</remote-id>
- </upstream>
+ <maintainer type="person">
+ <email>saboya@gmail.com</email>
+ <name>Rodrigo Saboya</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">yarnpkg/yarn</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/sys-apps/yarn/yarn-1.6.0.ebuild b/sys-apps/yarn/yarn-1.6.0.ebuild
new file mode 100644
index 000000000000..b3b3e1e95196
--- /dev/null
+++ b/sys-apps/yarn/yarn-1.6.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
+ 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)
+}