summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-dotnet/netcoredbg/Manifest1
-rw-r--r--dev-dotnet/netcoredbg/netcoredbg-3.0.0.1018.ebuild233
2 files changed, 234 insertions, 0 deletions
diff --git a/dev-dotnet/netcoredbg/Manifest b/dev-dotnet/netcoredbg/Manifest
index cbd2a02fb311..3d780dc0951c 100644
--- a/dev-dotnet/netcoredbg/Manifest
+++ b/dev-dotnet/netcoredbg/Manifest
@@ -21,6 +21,7 @@ DIST microsoft.diagnostics.dbgshim.win-x86.8.0.452401.nupkg 87463 BLAKE2B 4ee374
DIST microsoft.netcore.platforms.1.1.0.nupkg 17960 BLAKE2B 6a9fa22d75f5a1c65746dd71a63c3d4e37c393e99c23007c10f5ecce248a04863bf26e7562c7751177a6985eaac266c29cc6a5443a4a853e773f88994ad2a3fd SHA512 6bf892c274596fe2c7164e3d8503b24e187f64d0b7bec6d9b05eb95f04086fceb7a85ea6b2685d42dc465c52f6f0e6f636c0b3fddac48f6f0125dfd83e92d106
DIST microsoft.netcore.targets.1.1.0.nupkg 18162 BLAKE2B 419d19e0da934ab4b9db75dd66cc22b83a003f34e93cf7a92feccf4f32d3d695e18b826b1aba13073dd4ec53aa7905a67346921d1055516647ddcde0d79009f1 SHA512 1ef033a68688aab9997ec1c0378acb1638b4afb618e533fcaf749d93389737ba94f4a0a94481becdf701c7e988ae2fe390136a8eae225887ee60db45063490fe
DIST netcoredbg-3.0.0.1012.tar.gz 1453062 BLAKE2B d5dbcd9a5eaf95b8eae5932d45386e91de9bba6d711e6f015865cbe669900f8fbefb6e3f3815ad264c6425aa1a42d82793b3659b50cfc3168522ce8764d469b4 SHA512 b3536a769e45b3b1159bfcbc8ed31c07fa36af19bea6fac23b48d74c8da59ca0e8e46ab024853aaf22e0a8e87d3c5e3d07acce7a13a3db00a695a344ae333f57
+DIST netcoredbg-3.0.0.1018.tar.gz 1453368 BLAKE2B 27dcdead8de85d7cb3de6e72c5bc7be5e935a60d6bab88612b7a67d0a9873746e2551b9930f33bef22082d756e429c83af587ed4242158cb02cdc9442795ae88 SHA512 9048c6f3eb073ef443181305bd11db83ec7df011684f08aeb765af854f8320d919a9a9461d56bb6ae53d51812ef2fc0941791e1e0078469cb6011b783cb5d2a9
DIST netstandard.library.2.0.3.nupkg 3146139 BLAKE2B 311e5367398f76c74e78930bc2cd39e450a86bd8626311ded8d58bd84c94a8a84db3c11b2bc10f3eeba20a9d081fe7827981f702ad746b49ae3108c949ba1022 SHA512 e78f0cea69c14895b1b089644077dbce8631a626055d96522f4d29e061d8bfc3e48aa1419e74faf265b998612c03f721f5f0cef4690f824150a5689764dee601
DIST runtime.any.system.collections.4.3.0.nupkg 107990 BLAKE2B 802e2ae919a4834150d825ac086d8f47e2185e31b60b45f3dbe5f63b1d714953d9faaa7d8fe4cc25a1ea8495c4f8fd925bb198eea0b67e594a8558238b18196c SHA512 9f8833176c139b71a58694ae401c5aec209a63227be07c7ab559bef772082bd1f6cc38ba2949cb1c8e5c5514ad9f4ff51859838dc2f28191f8bb7ae611a50239
DIST runtime.any.system.diagnostics.tools.4.3.0.nupkg 43707 BLAKE2B 33d1c57eb4e50c06488da02ab2bb1b8dba9948026053e662986af05b74045c014e76815edbb588f10d6a904de22e4c50177f31f3fac36d159b9af361a4cb2b62 SHA512 bd257401e179d4b836a4a2f7236a0e303ae997d2453c946bf272036620a0b14e85e5f42c229332930a954655ab4cae359d191a3e3d9746df09535a651367764c
diff --git a/dev-dotnet/netcoredbg/netcoredbg-3.0.0.1018.ebuild b/dev-dotnet/netcoredbg/netcoredbg-3.0.0.1018.ebuild
new file mode 100644
index 000000000000..aeac34f8ec8e
--- /dev/null
+++ b/dev-dotnet/netcoredbg/netcoredbg-3.0.0.1018.ebuild
@@ -0,0 +1,233 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV="$(ver_cut 1-3)-$(ver_cut 4)"
+DOTNET_RUNTIME_V="7.0.14"
+
+CMAKE_IN_SOURCE_BUILD="ON"
+
+NUGETS="
+microsoft.codeanalysis.analyzers@1.1.0
+microsoft.codeanalysis.common@2.3.0
+microsoft.codeanalysis.csharp.scripting@2.3.0
+microsoft.codeanalysis.csharp@2.3.0
+microsoft.codeanalysis.scripting.common@2.3.0
+microsoft.csharp@4.4.0
+microsoft.diagnostics.dbgshim.linux-arm64@8.0.452401
+microsoft.diagnostics.dbgshim.linux-arm@8.0.452401
+microsoft.diagnostics.dbgshim.linux-musl-arm64@8.0.452401
+microsoft.diagnostics.dbgshim.linux-musl-arm@8.0.452401
+microsoft.diagnostics.dbgshim.linux-musl-x64@8.0.452401
+microsoft.diagnostics.dbgshim.linux-x64@8.0.452401
+microsoft.diagnostics.dbgshim.osx-arm64@8.0.452401
+microsoft.diagnostics.dbgshim.osx-x64@8.0.452401
+microsoft.diagnostics.dbgshim.win-arm64@8.0.452401
+microsoft.diagnostics.dbgshim.win-arm@8.0.452401
+microsoft.diagnostics.dbgshim.win-x64@8.0.452401
+microsoft.diagnostics.dbgshim.win-x86@8.0.452401
+microsoft.diagnostics.dbgshim@8.0.452401
+microsoft.netcore.platforms@1.1.0
+microsoft.netcore.targets@1.1.0
+netstandard.library@2.0.3
+runtime.any.system.collections@4.3.0
+runtime.any.system.diagnostics.tools@4.3.0
+runtime.any.system.diagnostics.tracing@4.3.0
+runtime.any.system.globalization.calendars@4.3.0
+runtime.any.system.globalization@4.3.0
+runtime.any.system.io@4.3.0
+runtime.any.system.reflection.extensions@4.3.0
+runtime.any.system.reflection.primitives@4.3.0
+runtime.any.system.reflection@4.3.0
+runtime.any.system.resources.resourcemanager@4.3.0
+runtime.any.system.runtime.handles@4.3.0
+runtime.any.system.runtime.interopservices@4.3.0
+runtime.any.system.runtime@4.3.0
+runtime.any.system.text.encoding.extensions@4.3.0
+runtime.any.system.text.encoding@4.3.0
+runtime.any.system.threading.tasks@4.3.0
+runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.native.system.io.compression@4.3.0
+runtime.native.system.net.http@4.3.0
+runtime.native.system.security.cryptography.apple@4.3.0
+runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.native.system@4.3.0
+runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple@4.3.0
+runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.unix.system.console@4.3.0
+runtime.unix.system.diagnostics.debug@4.3.0
+runtime.unix.system.io.filesystem@4.3.0
+runtime.unix.system.private.uri@4.3.0
+runtime.unix.system.runtime.extensions@4.3.0
+system.appcontext@4.3.0
+system.buffers@4.3.0
+system.collections.concurrent@4.3.0
+system.collections.immutable@1.3.1
+system.collections@4.3.0
+system.console@4.3.0
+system.diagnostics.debug@4.3.0
+system.diagnostics.fileversioninfo@4.3.0
+system.diagnostics.stacktrace@4.3.0
+system.diagnostics.tools@4.3.0
+system.diagnostics.tracing@4.3.0
+system.dynamic.runtime@4.3.0
+system.globalization.calendars@4.3.0
+system.globalization@4.3.0
+system.io.compression@4.3.0
+system.io.filesystem.primitives@4.3.0
+system.io.filesystem@4.3.0
+system.io@4.3.0
+system.linq.expressions@4.3.0
+system.linq@4.3.0
+system.objectmodel@4.3.0
+system.private.uri@4.3.0
+system.reflection.emit.ilgeneration@4.3.0
+system.reflection.emit.lightweight@4.3.0
+system.reflection.emit@4.3.0
+system.reflection.extensions@4.3.0
+system.reflection.metadata@1.4.2
+system.reflection.primitives@4.3.0
+system.reflection.typeextensions@4.3.0
+system.reflection@4.3.0
+system.resources.resourcemanager@4.3.0
+system.runtime.extensions@4.3.0
+system.runtime.handles@4.3.0
+system.runtime.interopservices@4.3.0
+system.runtime.numerics@4.3.0
+system.runtime@4.3.0
+system.security.cryptography.algorithms@4.3.0
+system.security.cryptography.cng@4.3.0
+system.security.cryptography.csp@4.3.0
+system.security.cryptography.encoding@4.3.0
+system.security.cryptography.openssl@4.3.0
+system.security.cryptography.primitives@4.3.0
+system.security.cryptography.x509certificates@4.3.0
+system.text.encoding.codepages@4.3.0
+system.text.encoding.extensions@4.3.0
+system.text.encoding@4.3.0
+system.text.regularexpressions@4.3.0
+system.threading.tasks.extensions@4.3.0
+system.threading.tasks.parallel@4.3.0
+system.threading.tasks@4.3.0
+system.threading.thread@4.3.0
+system.threading@4.3.0
+system.valuetuple@4.3.0
+system.xml.readerwriter@4.3.0
+system.xml.xdocument@4.3.0
+system.xml.xmldocument@4.3.0
+system.xml.xpath.xdocument@4.3.0
+system.xml.xpath@4.3.0
+"
+
+inherit check-reqs cmake flag-o-matic nuget
+
+DESCRIPTION="NetCoreDbg is a managed code debugger with MI interface for CoreCLR"
+HOMEPAGE="https://github.com/Samsung/netcoredbg/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/Samsung/${PN}.git"
+else
+ SRC_URI="https://github.com/Samsung/${PN}/archive/refs/tags/${MY_PV}.tar.gz
+ -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}-${MY_PV}"
+
+ KEYWORDS="~amd64"
+fi
+
+# .NET runtime that would have otherwise be downloaded via git.
+SRC_URI+="
+ https://github.com/dotnet/runtime/archive/refs/tags/v${DOTNET_RUNTIME_V}.tar.gz
+ -> dotnet_runtime-${DOTNET_RUNTIME_V}.tar.gz
+"
+CORECLR_S="${WORKDIR}/runtime-${DOTNET_RUNTIME_V}/src/coreclr"
+
+SRC_URI+="
+ ${NUGET_URIS}
+"
+
+LICENSE="MIT"
+SLOT="0/${MY_PV}"
+
+RDEPEND="
+ >=virtual/dotnet-sdk-6.0
+"
+BDEPEND="
+ ${RDEPEND}
+ dev-dotnet/csharp-gentoodotnetinfo
+"
+
+CHECKREQS_DISK_BUILD="1400M"
+PATCHES=(
+ "${FILESDIR}/${PN}-3.0.0.1012-compileoptions.patch"
+)
+QA_FLAGS_IGNORED=".*/libdbgshim.so"
+
+DOCS=( README.md docs/{interop,stepping}.md )
+
+src_unpack() {
+ nuget_link-system-nugets
+ nuget_link-nuget-archives
+ nuget_unpack-non-nuget-archives
+
+ if [[ -n "${EGIT_REPO_URI}" ]] ; then
+ git-r3_src_unpack
+ fi
+}
+
+src_prepare() {
+ if [[ -z "${DOTNET_ROOT}" ]] ; then
+ die "DOTNET_ROOT is not set"
+ fi
+
+ export DOTNET_CLI_TELEMETRY_OPTOUT=1
+ export DOTNET_NOLOGO=1
+ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
+ export MSBUILDDISABLENODEREUSE=1
+ export UseSharedCompilation=false
+
+ find "${S}" -type f -iname nuget.config -exec rm -v {} + || die
+ cat <<-EOF > NuGet.config || die
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+<packageSources>
+<clear />
+<add key="nuget" value="${NUGET_PACKAGES}" />
+</packageSources>
+</configuration>
+EOF
+ cp NuGet.config tools/generrmsg/nuget.xml || die
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ INSTALL_PREFIX="/usr/$(get_libdir)/${PN}"
+ gentoo-dotnet-info || die
+ append-cxxflags -fpermissive
+
+ local -a mycmakeargs=(
+ -DBUILD_MANAGED=1
+ -DCMAKE_INSTALL_PREFIX="${INSTALL_PREFIX}"
+ -DCORECLR_DIR="${CORECLR_S}"
+ -DDOTNET_DIR="${DOTNET_ROOT}"
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ dosym -r "${INSTALL_PREFIX}/${PN}" "/usr/bin/${PN}"
+ einstalldocs
+}