www-apps/misskey: fix javascript depends

This commit is contained in:
tastytea 2023-10-11 08:55:26 +02:00
parent 31536ae13d
commit 9e429f3edb
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 6 additions and 4 deletions

View File

@ -36,10 +36,12 @@ REQUIRED_USE="savedconfig"
RESTRICT="strip network-sandbox"
COMMON_DEPEND="
>=net-libs/nodejs-18.16:=
|| (
>=net-libs/nodejs-20.5.0[corepack]
<net-libs/nodejs-20.5.0
>=net-libs/nodejs-20.4.0:=[corepack]
(
>=net-libs/nodejs-20.4.0:=[npm]
sys-apps/pnpm-bin
)
)
"
BDEPEND="
@ -64,7 +66,7 @@ QA_PREBUILT="
pkg_setup() {
# check if pnpm from nodejs is installed
if ! type pnpm > /dev/null 2>&1; then
eerror "pnpm not found. It can be installed with 'corepack enable'"
eerror "pnpm not found. if you have nodejs[npm] installed, you have to symlink pnpm-bin to pnpm yourself"
fi
}