summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-01-03 02:53:10 +0100
committerMaciej Barć <xgqt@gentoo.org>2023-01-03 03:30:38 +0100
commit7dee80b3a3f401d52eaa2bb9f0b918d2ea6a9f79 (patch)
treeb5c866ce58303d1a8a850e9aa6d3db9cd1eb2a3f /dev-dotnet
parentsys-devel/binutils-config: add 5.5 (diff)
downloadgentoo-7dee80b3a3f401d52eaa2bb9f0b918d2ea6a9f79.tar.gz
gentoo-7dee80b3a3f401d52eaa2bb9f0b918d2ea6a9f79.tar.bz2
gentoo-7dee80b3a3f401d52eaa2bb9f0b918d2ea6a9f79.zip
dev-dotnet/csharp-language-server: new package; add 0.5.7
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-dotnet')
-rw-r--r--dev-dotnet/csharp-language-server/Manifest2
-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, 92 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..f0a298e557d5
--- /dev/null
+++ b/dev-dotnet/csharp-language-server/Manifest
@@ -0,0 +1,2 @@
+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
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>