remove ia64 keywords
[gentoo-zh.git] / sys-apps / pnpm / pnpm-8.15.4.ebuild
blob166f8755575bbe6d103c21806648fd49710de9e2
1 # Copyright 2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 DESCRIPTION="Fast, disk space efficient package manager"
7 HOMEPAGE="https://pnpm.io"
9 # Use the following command to create this package
10 # npm install -g \
11 # --cache "${PWD}/npm-cache" \
12 # --prefix "${PWD}/pkgdir" \
13 # pnpm@${PN}
14 SRC_URI="https://github.com/st0nie/gentoo-go-deps/releases/download/${P}/${P}-pkg.tar.xz -> ${P}.tar.xz"
16 LICENSE="MIT"
17 SLOT="0"
18 KEYWORDS="~amd64"
20 DEPEND="net-libs/nodejs"
21 RDEPEND="${DEPEND}"
22 BDEPEND="app-misc/jq"
24 S="${WORKDIR}/pkgdir"
26 src_install(){
27 mkdir "${D}/usr" || die
28 cp -r * "${D}/usr" || die
29 fowners -R root:root /usr
30 find "${D}/usr/lib64" -depth -name "*.map" -delete || die
32 local _tmp_package="$(mktemp || die)"
33 local _npmdir=/usr/lib64/node_modules/${PN}
34 jq '.|=with_entries(select(.key|test("_.+")|not))' "${D}/$_npmdir/package.json" > "$_tmp_package" || die
35 insinto $_npmdir
36 newins $_tmp_package package.json
37 fperms 644 $_npmdir/package.json