diff options
author | Rahil Bhimjiani <me@rahil.rocks> | 2024-02-27 19:50:46 +0530 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2024-02-27 18:55:46 -0800 |
commit | d0e4beea55acd6486058489dd8527661bd2147fa (patch) | |
tree | 80cb78880fe9f1830fb4c3fbc4c461429bb57c66 /sys-apps | |
parent | sys-apps/rootlesskit: add 2.0.1 (diff) | |
download | gentoo-d0e4beea55acd6486058489dd8527661bd2147fa.tar.gz gentoo-d0e4beea55acd6486058489dd8527661bd2147fa.tar.bz2 gentoo-d0e4beea55acd6486058489dd8527661bd2147fa.zip |
sys-apps/yarn: add 1.22.21
Closes: https://bugs.gentoo.org/919319
Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/yarn/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/yarn/yarn-1.22.21.ebuild | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/sys-apps/yarn/Manifest b/sys-apps/yarn/Manifest index c35a667dd206..2f20b6c40e22 100644 --- a/sys-apps/yarn/Manifest +++ b/sys-apps/yarn/Manifest @@ -1,2 +1,3 @@ DIST yarn-v1.22.17.tar.gz 1246198 BLAKE2B ae0b86cdb248a0f81d1a4a23d15ef9aab185fcda7ef7f8873959c3e54dfc305219afb2416264911098c4e3a6a65a33d248ff97c8e0ca043b118de64e003c3d9b SHA512 1f4a76e35057687d1437d21e1fffd14fcdad9793df36b695a52a44a16f844fb966a29342eb5799f80f880ef53c14ce86a39bf1d7ad929dc0cbf09d598d106b89 DIST yarn-v1.22.19.tar.gz 1244259 BLAKE2B f103d148bafa76bddcdf9e26356fbebba87f7c7c707f823a54404302571e1d09e25569406fc721d74f53cfdac8706dec6bd40da39b7d44000381b1f36d0d8de0 SHA512 ff4579ab459bb25aa7c0ff75b62acebe576f6084b36aa842971cf250a5d8c6cd3bc9420b22ce63c7f93a0857bc6ef29291db39c3e7a23aab5adfd5a4dd6c5d71 +DIST yarn-v1.22.21.tar.gz 1243124 BLAKE2B 99a53db799f07c6aed1bb8d5d2997b6caef6d518118ef8bea4974fdaf3cc0b6a7a7fa17fb9244c8fb2915bffed77d5ed8dd701eecdcf4491d26b68f92750d8c7 SHA512 75fc33d00ee14733272c04090b3a646fb4021fce85103b2451f01f60f47be7dc9811c76b26465fe6a3735996ac55fd9e80f918cc45422af0888047f4c9ba8f9d diff --git a/sys-apps/yarn/yarn-1.22.21.ebuild b/sys-apps/yarn/yarn-1.22.21.ebuild new file mode 100644 index 000000000000..b4a996fc6a40 --- /dev/null +++ b/sys-apps/yarn/yarn-1.22.21.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~arm ~arm64 ~x86" +IUSE="" + +RDEPEND="!dev-util/cmdtest + net-libs/nodejs" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + sed -i 's/"installationMethod": "tar"/"installationMethod": "portage"/g' "${S}/package.json" || die +} + +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" + dosym "../$(get_libdir)/node_modules/yarn/bin/yarnpkg" "/usr/bin/yarnpkg" + + while read -r -d '' path; do + read -r shebang < "${ED}${path}" || die + [[ "${shebang}" == \#\!* ]] || continue + fperms +x "${path}" + done < <(find "${ED}" -type f -printf '/%P\0' || die) +} |