commit:     38076ea86e0f080c1117589debb55836fe1df22d
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  8 10:06:01 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Mon Jan  8 19:22:39 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38076ea8

dev-dotnet/netcoredbg: bump to 3.0.0.1018

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-dotnet/netcoredbg/Manifest                     |   1 +
 dev-dotnet/netcoredbg/netcoredbg-3.0.0.1018.ebuild | 233 +++++++++++++++++++++
 2 files changed, 234 insertions(+)

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="
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
+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
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
+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
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
+"
+
+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
+}

Reply via email to