mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
randomly found this gem of a file conflict out when I was recently installing nodejs with the corepack use flag to test out a few software and add the packages lo and behold, nodejs failed to install on the src_install phase because of file collision, and i saw that pnpm-bin was the issue because it wasn't blocking nodejs[corepack] one could easily check this by doing ``` ❯ equery f nodejs | grep -e '/usr/bin/' /usr/bin/corepack /usr/bin/node /usr/bin/npm /usr/bin/npx /usr/bin/pnpm /usr/bin/pnpx /usr/bin/yarn /usr/bin/yarnpkg ``` this commit should fix this issue Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org> Part-of: https://codeberg.org/gentoo/guru/pulls/12
28 lines
640 B
Bash
28 lines
640 B
Bash
# Copyright 2023-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="Fast, disk space efficient package manager, alternative to npm and yarn"
|
|
HOMEPAGE="https://pnpm.io"
|
|
SRC_URI="
|
|
amd64? ( https://github.com/pnpm/pnpm/releases/download/v${PV}/pnpm-linux-x64 -> ${P}-amd64 )
|
|
arm64? ( https://github.com/pnpm/pnpm/releases/download/v${PV}/pnpm-linux-arm64 -> ${P}-arm64 )
|
|
"
|
|
|
|
S="${WORKDIR}"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="-* ~amd64 ~arm64"
|
|
|
|
RESTRICT="strip"
|
|
|
|
RDEPEND="!net-libs/nodejs[corepack]"
|
|
|
|
QA_PREBUILT="usr/bin/pnpm"
|
|
|
|
src_install() {
|
|
newbin "${DISTDIR}/${P}-${ARCH}" pnpm
|
|
}
|