mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-09 00:07:57 +03:00
169 lines
4.9 KiB
Bash
169 lines
4.9 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DOTNET_PKG_COMPAT="9.0"
|
|
NUGETS="
|
|
argu@6.2.3
|
|
castle.core@5.1.1
|
|
coverlet.collector@3.0.3
|
|
dotnet.reproduciblebuilds@1.2.25
|
|
fsharp.control.asyncseq@3.2.1
|
|
fsharp.core@4.3.2
|
|
fsharp.core@4.7.2
|
|
fsharp.core@6.0.0
|
|
humanizer.core@2.14.1
|
|
icsharpcode.decompiler@8.2.0.7535
|
|
ionide.keepachangelog.tasks@0.1.8
|
|
ionide.languageserverprotocol@0.7.0
|
|
messagepack.annotations@2.5.108
|
|
messagepack@2.5.108
|
|
microsoft.bcl.asyncinterfaces@5.0.0
|
|
microsoft.bcl.asyncinterfaces@7.0.0
|
|
microsoft.bcl.asyncinterfaces@9.0.0
|
|
microsoft.build.framework@17.14.8
|
|
microsoft.build.locator@1.9.1
|
|
microsoft.build.tasks.core@17.7.2
|
|
microsoft.build.utilities.core@17.7.2
|
|
microsoft.build@17.14.8
|
|
microsoft.codeanalysis.analyzers@3.11.0
|
|
microsoft.codeanalysis.analyzerutilities@4.14.0
|
|
microsoft.codeanalysis.common@3.11.0
|
|
microsoft.codeanalysis.common@4.14.0
|
|
microsoft.codeanalysis.csharp.features@4.14.0
|
|
microsoft.codeanalysis.csharp.workspaces@4.14.0
|
|
microsoft.codeanalysis.csharp@4.14.0
|
|
microsoft.codeanalysis.elfie@1.0.0
|
|
microsoft.codeanalysis.features@4.14.0
|
|
microsoft.codeanalysis.scripting.common@4.14.0
|
|
microsoft.codeanalysis.visualbasic.workspaces@4.14.0
|
|
microsoft.codeanalysis.visualbasic@4.14.0
|
|
microsoft.codeanalysis.workspaces.common@4.14.0
|
|
microsoft.codeanalysis.workspaces.msbuild@4.14.0
|
|
microsoft.codeanalysis@4.14.0
|
|
microsoft.codecoverage@17.12.0
|
|
microsoft.diasymreader@2.0.0
|
|
microsoft.extensions.dependencyinjection.abstractions@9.0.0
|
|
microsoft.extensions.dependencyinjection@9.0.0
|
|
microsoft.extensions.logging.abstractions@9.0.0
|
|
microsoft.extensions.logging@9.0.0
|
|
microsoft.extensions.options@9.0.0
|
|
microsoft.extensions.primitives@9.0.0
|
|
microsoft.net.stringtools@17.14.8
|
|
microsoft.net.stringtools@17.4.0
|
|
microsoft.net.stringtools@17.7.2
|
|
microsoft.net.test.sdk@17.12.0
|
|
microsoft.netcore.platforms@1.1.0
|
|
microsoft.netcore.platforms@5.0.0
|
|
microsoft.testplatform.objectmodel@17.12.0
|
|
microsoft.testplatform.testhost@17.12.0
|
|
microsoft.visualstudio.setup.configuration.interop@3.2.2146
|
|
microsoft.visualstudio.threading.analyzers@17.6.40
|
|
microsoft.visualstudio.threading@17.6.40
|
|
microsoft.visualstudio.validation@17.0.71
|
|
microsoft.visualstudio.validation@17.6.11
|
|
microsoft.win32.registry@5.0.0
|
|
nerdbank.streams@2.10.66
|
|
netstandard.library@2.0.0
|
|
newtonsoft.json@13.0.3
|
|
nunit3testadapter@4.6.0
|
|
nunit@3.14.0
|
|
serilog.sinks.async@1.5.0
|
|
serilog.sinks.console@5.0.1
|
|
serilog@3.1.1
|
|
streamjsonrpc@2.16.36
|
|
system.buffers@4.5.1
|
|
system.codedom@7.0.0
|
|
system.collections.immutable@9.0.0
|
|
system.composition.attributedmodel@9.0.0
|
|
system.composition.convention@9.0.0
|
|
system.composition.hosting@9.0.0
|
|
system.composition.runtime@9.0.0
|
|
system.composition.typedparts@9.0.0
|
|
system.composition@9.0.0
|
|
system.configuration.configurationmanager@4.4.0
|
|
system.configuration.configurationmanager@4.5.0
|
|
system.configuration.configurationmanager@7.0.0
|
|
system.configuration.configurationmanager@9.0.0
|
|
system.data.datasetextensions@4.5.0
|
|
system.diagnostics.diagnosticsource@7.0.2
|
|
system.diagnostics.eventlog@6.0.0
|
|
system.diagnostics.eventlog@9.0.0
|
|
system.formats.asn1@7.0.0
|
|
system.formats.nrbf@9.0.0
|
|
system.io.pipelines@7.0.0
|
|
system.io.pipelines@9.0.0
|
|
system.memory@4.5.5
|
|
system.numerics.vectors@4.5.0
|
|
system.reflection.metadata@1.6.0
|
|
system.reflection.metadata@6.0.0
|
|
system.reflection.metadata@9.0.0
|
|
system.reflection.metadataloadcontext@9.0.0
|
|
system.resources.extensions@7.0.0
|
|
system.resources.extensions@9.0.0
|
|
system.runtime.compilerservices.unsafe@6.0.0
|
|
system.security.accesscontrol@5.0.0
|
|
system.security.cryptography.pkcs@7.0.0
|
|
system.security.cryptography.pkcs@7.0.2
|
|
system.security.cryptography.protecteddata@4.4.0
|
|
system.security.cryptography.protecteddata@9.0.0
|
|
system.security.cryptography.xml@7.0.1
|
|
system.security.permissions@7.0.0
|
|
system.security.permissions@9.0.0
|
|
system.security.principal.windows@5.0.0
|
|
system.text.encoding.codepages@7.0.0
|
|
system.text.encodings.web@7.0.0
|
|
system.text.json@7.0.3
|
|
system.text.json@9.0.0
|
|
system.threading.channels@7.0.0
|
|
system.threading.tasks.dataflow@7.0.0
|
|
system.threading.tasks.dataflow@9.0.0
|
|
system.threading.tasks.extensions@4.5.4
|
|
system.windows.extensions@9.0.0
|
|
"
|
|
|
|
inherit dotnet-pkg
|
|
|
|
DESCRIPTION="Roslyn-based LSP language server for C#"
|
|
HOMEPAGE="https://github.com/razzmatazz/csharp-language-server/"
|
|
|
|
if [[ "${PV}" == *9999* ]] ; then
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/razzmatazz/${PN}"
|
|
else
|
|
SRC_URI="https://github.com/razzmatazz/${PN}/archive/${PV}.tar.gz
|
|
-> ${P}.gh.tar.gz"
|
|
|
|
KEYWORDS="amd64"
|
|
fi
|
|
|
|
SRC_URI+=" ${NUGET_URIS} "
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
|
|
# Tests hang. Also they spin up a web server so maybe that's part of the problem.
|
|
RESTRICT="test"
|
|
|
|
DOTNET_PKG_PROJECTS=( src/CSharpLanguageServer )
|
|
DOTNET_PKG_BAD_PROJECTS=( tests/CSharpLanguageServer.Tests )
|
|
|
|
DOCS=( CHANGELOG.md README.md )
|
|
|
|
src_unpack() {
|
|
dotnet-pkg_src_unpack
|
|
|
|
if [[ -n "${EGIT_REPO_URI}" ]] ; then
|
|
git-r3_src_unpack
|
|
fi
|
|
}
|
|
|
|
src_install() {
|
|
dotnet-pkg-base_install
|
|
dotnet-pkg-base_dolauncher "/usr/share/${P}/CSharpLanguageServer" csharp-ls
|
|
|
|
einstalldocs
|
|
}
|