mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-13 02:01:25 -04:00
33 lines
680 B
Bash
33 lines
680 B
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="Static type checker for Python"
|
|
HOMEPAGE="https://github.com/microsoft/pyright"
|
|
SRC_URI="https://github.com/microsoft/pyright/releases/download/${PV}/${PN}.tgz -> ${P}.tgz"
|
|
S="${WORKDIR}"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
RDEPEND="net-libs/nodejs"
|
|
BDEPEND="net-libs/nodejs[npm]"
|
|
|
|
src_install() {
|
|
local mynpmargs=(
|
|
--audit false
|
|
--foreground-scripts
|
|
--global
|
|
--offline
|
|
--omit dev
|
|
--prefix "${ED}/usr"
|
|
--progress true
|
|
--save false
|
|
--verbose
|
|
)
|
|
|
|
npm "${mynpmargs[@]}" install "${DISTDIR}/${P}.tgz" || die "npm install failed"
|
|
}
|