summaryrefslogtreecommitdiff
path: root/dev-dotnet/csharp-language-server
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-03 08:25:41 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-03 08:25:41 +0000
commit2f28d79786e67cf29825843d6d04d4591a27f9cf (patch)
tree8a64339e27c973dd87bc7bf3434f082998eabe76 /dev-dotnet/csharp-language-server
parent384d032fe7e048bb10cc9bc9881835c92d7e104c (diff)
gentoo auto-resync : 03:01:2023 - 08:25:40
Diffstat (limited to 'dev-dotnet/csharp-language-server')
-rw-r--r--dev-dotnet/csharp-language-server/Manifest4
-rw-r--r--dev-dotnet/csharp-language-server/csharp-language-server-0.5.7.ebuild76
-rw-r--r--dev-dotnet/csharp-language-server/metadata.xml14
3 files changed, 94 insertions, 0 deletions
diff --git a/dev-dotnet/csharp-language-server/Manifest b/dev-dotnet/csharp-language-server/Manifest
new file mode 100644
index 000000000000..be6dbfb0594b
--- /dev/null
+++ b/dev-dotnet/csharp-language-server/Manifest
@@ -0,0 +1,4 @@
+DIST csharp-language-server-0.5.7-prebuilt.tar.xz 175773432 BLAKE2B 3351011c9adccf266c9cb583400e7920cc1b28d502b8a217b7ea72f43f7506ff921adca56440128cbe339087d8c667f1d8587714ed882ee2bf834a77c4f6adea SHA512 413c244de117919407186991ff94cc56e3b86c4e1a8090b78997511e925c31776953c8ee1efc4d9cf3e817e57fbfd92026d7a52c21f022b4919e7b765cd905e9
+DIST csharp-language-server-0.5.7.tar.gz 35762 BLAKE2B 80b691cc1f646c1ad41ceb49bb6e59d460769ec3a8616e4acffc27bbc406a8302ddc69c0d330a4c3990cf31f4cdf1ead5fe29eda7f159572a5411d5055fc9027 SHA512 92a1704404b9bb7b042016b82b7789dd6169cfdb9a609584158e677d4519fb972b5ed7cd07a950da8875a3d478727e33e81261aa67fa332aa6016351af3aba26
+EBUILD csharp-language-server-0.5.7.ebuild 1737 BLAKE2B 88bcf1c53dcad353bf9a52d9142c70ea8f139876b4d34ff072c72b70813d3da4f9918fce404fe9607a0401c24dcdf9f2800f99d5ec47090b6311e2ef34bbfbdd SHA512 a5a452c1f7adf2fb8e80af9187572bf8c345ecb22da3e323a135d4b7e669432d931a47069f7eff2e61193b4cf9bc473c7bfdbe4fa2a0e9b74002eab2c83b46f0
+MISC metadata.xml 552 BLAKE2B 307b3aa344250a2f82635a8d966e614f87eebc6daf225d190582ec96aebddc29a5b691ac812f8b247f67be3fa9e2b4c0ea5b0658ebd460de913e3448f33c6672 SHA512 6bf5af7c2b512e73d8e8800aa4acf4b322f62a2c06206ea1dc41d4cf3519ba9cc5ffa9ff31007141189c3257fbdb3ca963cc9ff83818e8919adac2bb4c1309b2
diff --git a/dev-dotnet/csharp-language-server/csharp-language-server-0.5.7.ebuild b/dev-dotnet/csharp-language-server/csharp-language-server-0.5.7.ebuild
new file mode 100644
index 000000000000..ab7d3aec623d
--- /dev/null
+++ b/dev-dotnet/csharp-language-server/csharp-language-server-0.5.7.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DOTNET_COMPAT=6.0
+
+inherit edo multiprocessing
+
+DESCRIPTION="Roslyn-based LSP language server for C#"
+HOMEPAGE="https://github.com/razzmatazz/csharp-language-server/"
+SRC_URI="
+ https://github.com/razzmatazz/${PN}/archive/${PV}.tar.gz
+ -> ${P}.tar.gz
+ https://dev.gentoo.org/~xgqt/distfiles/deps/${P}-prebuilt.tar.xz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug"
+
+RDEPEND="virtual/dotnet-sdk:${DOTNET_COMPAT}"
+BDEPEND="${RDEPEND}"
+
+# Generated by dotnet.
+QA_PREBUILT=".*"
+
+src_prepare() {
+ export DOTNET_CLI_TELEMETRY_OPTOUT=1
+ export DOTNET_NOLOGO=1
+ export DOTNET_CONFIGURATION=$(usex debug Debug Release)
+ export DOTNET_OUTPUT="${WORKDIR}"/${P}_net${DOTNET_COMPAT}_${DOTNET_CONFIGURATION}/${PN}
+ export NUGET_PACKAGES="${WORKDIR}"/nuget_packages
+
+ default
+}
+
+src_configure() {
+ edob dotnet restore "${S}"/src \
+ --source "${NUGET_PACKAGES}" \
+ -p:TargetFramework=net${DOTNET_COMPAT}
+}
+
+src_compile() {
+ local myopts=(
+ --configuration ${DOTNET_CONFIGURATION}
+ --no-restore
+ --no-self-contained
+ --nologo
+ --output "${DOTNET_OUTPUT}"
+ -maxCpuCount:$(makeopts_jobs)
+ -p:TargetFramework=net${DOTNET_COMPAT}
+ )
+ edob dotnet build ${myopts[@]} "${S}"/src
+}
+
+src_test() {
+ local myopts=(
+ --configuration ${DOTNET_CONFIGURATION}
+ --no-restore
+ --nologo
+ -maxCpuCount:$(makeopts_jobs)
+ -p:TargetFramework=net${DOTNET_COMPAT}
+ )
+ edob dotnet test ${myopts[@]} "${S}"/src
+}
+
+src_install() {
+ mkdir -p "${ED}"/usr/share/ || die
+ cp -r "${DOTNET_OUTPUT}" "${ED}"/usr/share/ || die
+
+ dosym -r /usr/share/${PN}/CSharpLanguageServer /usr/bin/csharp-ls
+
+ dodoc CHANGELOG.md README.md
+}
diff --git a/dev-dotnet/csharp-language-server/metadata.xml b/dev-dotnet/csharp-language-server/metadata.xml
new file mode 100644
index 000000000000..b3f9def38188
--- /dev/null
+++ b/dev-dotnet/csharp-language-server/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xgqt@gentoo.org</email>
+ <name>Maciej Barć</name>
+ </maintainer>
+ <upstream>
+ <changelog>https://raw.githubusercontent.com/razzmatazz/csharp-language-server/master/CHANGELOG.md</changelog>
+ <bugs-to>https://github.com/razzmatazz/csharp-language-server/issues/</bugs-to>
+ <remote-id type="github">razzmatazz/csharp-language-server</remote-id>
+ </upstream>
+</pkgmetadata>