forked from tastytea/overlay
dev-util/typescript-language-server: new package, add 1.1.2
Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
parent
602af65e97
commit
bbab3b82ef
2
dev-util/typescript-language-server/Manifest
Normal file
2
dev-util/typescript-language-server/Manifest
Normal file
|
@ -0,0 +1,2 @@
|
|||
DIST typescript-language-server-1.1.2-deps.tar.xz 1496552 BLAKE2B 0edf2dd42d218c82ccb32eeb32a716f63dd5badd7b2235d44dd828e9ba49dc4704ea7d539f800efa70ebef7b89b9f5a02743824c7898f47169f99842b1046d59 SHA512 8b60500027ae7ca056c7bb8012ec5d5adf2c210e446eda3ccedacc7a88471417e7b837e6ca15480e9ae54a1fd3b52b83d22c5f868b8c53deabcd52fe523e581d
|
||||
DIST typescript-language-server-1.1.2.tgz 122199 BLAKE2B bc7e22de39627df7d7b88113c7639170e809b875b7105e1e8b3ff17f7c871d78b4ab0bc344187c991e193700dd81583d895e4c8a9a378a465f4c139b8841e87b SHA512 8107f8a7716f28aa52842c19725221edbdd5b669ae304b6eaf5c4fcfaa531fe8a56b0de35029ab72f2d4e73cf9f7ff511c11e474fe97ad1ea9f51750f0afbc29
|
8
dev-util/typescript-language-server/metadata.xml
Normal file
8
dev-util/typescript-language-server/metadata.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gentoo@tastytea.de</email>
|
||||
<name>Ronny (tastytea) Gutbrod</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
|
@ -0,0 +1,46 @@
|
|||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="TypeScript & JavaScript Language Server"
|
||||
HOMEPAGE="https://www.npmjs.com/package/typescript-language-server"
|
||||
SRC_URI="
|
||||
mirror://npm/${PN}/-/${P}.tgz
|
||||
https://tastytea.de/files/gentoo/${P}-deps.tar.xz
|
||||
"
|
||||
S="${WORKDIR}"
|
||||
|
||||
# NOTE: to generate the dependency tarball:
|
||||
# npm --cache "$(realpath ./npm-cache)" install $(portageq envvar DISTDIR)/${P}.tgz
|
||||
# tar -caf ${P}-deps.tar.xz npm-cache
|
||||
|
||||
LICENSE="Apache-2.0 ISC MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="net-libs/nodejs[npm]"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
dev-lang/typescript
|
||||
"
|
||||
BDEPEND="${DEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
cd "${T}" || die "Could not cd to temporary directory"
|
||||
unpack ${P}-deps.tar.xz
|
||||
}
|
||||
|
||||
src_install() {
|
||||
npm \
|
||||
--offline \
|
||||
--verbose \
|
||||
--progress false \
|
||||
--foreground-scripts \
|
||||
--global \
|
||||
--prefix "${ED}"/usr \
|
||||
--cache "${T}"/npm-cache \
|
||||
install "${DISTDIR}"/${P}.tgz || die "Compilation failed"
|
||||
|
||||
einstalldocs
|
||||
}
|
Loading…
Reference in New Issue
Block a user