sys-apps/pnpm: add 9.15.4, drop 8.15.4

Signed-off-by: 123485k <1758961307@qq.com>
This commit is contained in:
123485k 2025-01-28 22:53:24 +08:00 committed by peeweep
parent e6c9431cc0
commit 31e3c74a31
3 changed files with 32 additions and 39 deletions

View File

@ -1 +1 @@
DIST pnpm-8.15.4.tar.xz 2647908 BLAKE2B 062f0bcb3b206dce75b41bb15f05e280e4bf31434b76d5b905c3e9eac2b6f8ef7c7364fddd1d05131311cc9953ce5c039703a42e79f6cc250e6d300c75fa1273 SHA512 982f89ba8c35ffb24655ec89ce3c8e57d005bda11266c48afbe6d6efe25d75ee1653af3974bed9a4c2a4ae0d000ddcfafd3b8274309a182d963e9c8c07d562df
DIST pnpm-9.15.4.tgz 3835981 BLAKE2B 3683bb8a2ee09e857432d50e7afdabb04b76aae9479bf02e8a02f66c4a5ead5592e5ccddefc54f5fdd8fe145c2b735f15123ed6619aa73cff56a62fa9d194792 SHA512 b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0

View File

@ -1,38 +0,0 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Fast, disk space efficient package manager"
HOMEPAGE="https://pnpm.io"
# Use the following command to create this package
# npm install -g \
# --cache "${PWD}/npm-cache" \
# --prefix "${PWD}/pkgdir" \
# pnpm@${PN}
SRC_URI="https://github.com/st0nie/gentoo-go-deps/releases/download/${P}/${P}-pkg.tar.xz -> ${P}.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="net-libs/nodejs"
RDEPEND="${DEPEND}"
BDEPEND="app-misc/jq"
S="${WORKDIR}/pkgdir"
src_install(){
mkdir "${D}/usr" || die
cp -r * "${D}/usr" || die
fowners -R root:root /usr
find "${D}/usr/lib64" -depth -name "*.map" -delete || die
local _tmp_package="$(mktemp || die)"
local _npmdir=/usr/lib64/node_modules/${PN}
jq '.|=with_entries(select(.key|test("_.+")|not))' "${D}/$_npmdir/package.json" > "$_tmp_package" || die
insinto $_npmdir
newins $_tmp_package package.json
fperms 644 $_npmdir/package.json
}

View File

@ -0,0 +1,31 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Fast, disk space efficient package manager"
HOMEPAGE="https://pnpm.io"
SRC_URI="https://registry.npmjs.org/${PN}/-/${P}.tgz"
S="${WORKDIR}/package"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="net-libs/nodejs"
RDEPEND="${DEPEND}"
src_compile() {
:
}
src_install(){
local install_dir="/usr/$(get_libdir)/node_modules/${PN}" path shebang
insinto "${install_dir}"
doins -r .
dosym "../$(get_libdir)/node_modules/${PN}/bin/pnpm.cjs" "/usr/bin/pnpm"
dosym "../$(get_libdir)/node_modules/${PN}/bin/pnpx.cjs" "/usr/bin/pnpx"
fperms +x "/usr/bin/pnpm" "/usr/bin/pnpx"
fperms +x "${install_dir}/bin/pnpm.cjs" "${install_dir}/bin/pnpx.cjs"
fperms +x "${install_dir}/dist/node-gyp-bin/node-gyp"
}