commit: b28abd902a912ed2d283b58e1d61ec489379ef29 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Sat Feb 10 13:12:03 2024 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Sat Feb 10 16:24:48 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b28abd90
dev-dotnet/netcoredbg: use dotnet-pkg eclass Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> ...1018.ebuild => netcoredbg-3.0.0.1018-r1.ebuild} | 49 +++++++--------------- 1 file changed, 14 insertions(+), 35 deletions(-) diff --git a/dev-dotnet/netcoredbg/netcoredbg-3.0.0.1018.ebuild b/dev-dotnet/netcoredbg/netcoredbg-3.0.0.1018-r1.ebuild similarity index 89% rename from dev-dotnet/netcoredbg/netcoredbg-3.0.0.1018.ebuild rename to dev-dotnet/netcoredbg/netcoredbg-3.0.0.1018-r1.ebuild index aeac34f8ec8e..f273ca2ffe32 100644 --- a/dev-dotnet/netcoredbg/netcoredbg-3.0.0.1018.ebuild +++ b/dev-dotnet/netcoredbg/netcoredbg-3.0.0.1018-r1.ebuild @@ -7,7 +7,7 @@ MY_PV="$(ver_cut 1-3)-$(ver_cut 4)" DOTNET_RUNTIME_V="7.0.14" CMAKE_IN_SOURCE_BUILD="ON" - +DOTNET_PKG_COMPAT="8.0" NUGETS=" [email protected] [email protected] @@ -128,7 +128,7 @@ [email protected] [email protected] " -inherit check-reqs cmake flag-o-matic nuget +inherit check-reqs dotnet-pkg flag-o-matic cmake DESCRIPTION="NetCoreDbg is a managed code debugger with MI interface for CoreCLR" HOMEPAGE="https://github.com/Samsung/netcoredbg/" @@ -159,15 +159,10 @@ SRC_URI+=" LICENSE="MIT" SLOT="0/${MY_PV}" -RDEPEND=" - >=virtual/dotnet-sdk-6.0 -" -BDEPEND=" - ${RDEPEND} - dev-dotnet/csharp-gentoodotnetinfo -" - CHECKREQS_DISK_BUILD="1400M" +DOTNET_PKG_PROJECTS=( + src/managed/ManagedPart.csproj # Restore but do not build those projects. +) PATCHES=( "${FILESDIR}/${PN}-3.0.0.1012-compileoptions.patch" ) @@ -175,10 +170,13 @@ QA_FLAGS_IGNORED=".*/libdbgshim.so" DOCS=( README.md docs/{interop,stepping}.md ) +pkg_setup() { + check-reqs_pkg_setup + dotnet-pkg_pkg_setup +} + src_unpack() { - nuget_link-system-nugets - nuget_link-nuget-archives - nuget_unpack-non-nuget-archives + dotnet-pkg_src_unpack if [[ -n "${EGIT_REPO_URI}" ]] ; then git-r3_src_unpack @@ -186,35 +184,16 @@ src_unpack() { } src_prepare() { - if [[ -z "${DOTNET_ROOT}" ]] ; then - die "DOTNET_ROOT is not set" - fi + cmake_src_prepare - 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 + nuget_writeconfig "$(pwd)/" 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 + dotnet-pkg_src_configure local -a mycmakeargs=( -DBUILD_MANAGED=1
