public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH 1/6] eclass/nuget.eclass: add new "nuget" eclass
@ 2023-09-05 20:21 Maciej Barć
  2023-09-05 20:21 ` [gentoo-dev] [PATCH 2/6] eclass/dotnet-pkg-base.eclass: add new "dotnet-pkg-base" eclass Maciej Barć
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Maciej Barć @ 2023-09-05 20:21 UTC (permalink / raw
  To: gentoo-dev; +Cc: Maciej Barć

Bug: https://bugs.gentoo.org/900597
Bug: https://github.com/gentoo/gentoo/pull/32109
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
---
 eclass/nuget.eclass | 197 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 197 insertions(+)
 create mode 100644 eclass/nuget.eclass

diff --git a/eclass/nuget.eclass b/eclass/nuget.eclass
new file mode 100644
index 0000000000..fca36f2ce7
--- /dev/null
+++ b/eclass/nuget.eclass
@@ -0,0 +1,197 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# @ECLASS: nuget.eclass
+# @MAINTAINER:
+# Gentoo Dotnet project <dotnet@gentoo.org>
+# @AUTHOR:
+# Anna Figueiredo Gomes <navi@vlhl.dev>
+# Maciej Barć <xgqt@gentoo.org>
+# @SUPPORTED_EAPIS: 8
+# @BLURB: common functions and variables for handling .NET NuGets
+# @DESCRIPTION:
+# This eclass is designed to provide support for .NET NuGet's ".nupkg" files.
+# It is used to handle NuGets installation and usage.
+# "dotnet-pkg" and "dotnet-pkg-utils" inherit this eclass.
+#
+# This eclass does not export any phase functions, for that see
+# the "dotnet-pkg" eclass.
+
+case ${EAPI} in
+	8) ;;
+	*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
+esac
+
+if [[ -z ${_NUGET_ECLASS} ]] ; then
+_NUGET_ECLASS=1
+
+# @ECLASS_VARIABLE: NUGET_SYSTEM_NUGETS
+# @DESCRIPTION:
+# Location of the system NuGet packages directory.
+readonly NUGET_SYSTEM_NUGETS=/opt/dotnet-nugets
+
+# @ECLASS_VARIABLE: NUGET_APIS
+# @PRE_INHERIT
+# @DESCRIPTION:
+# NuGet API URLs to use for precompiled NuGet package ".nupkg" downloads.
+# Set this variable pre-inherit.
+#
+# Defaults to an array of one item:
+# "https://api.nuget.org/v3-flatcontainer"
+#
+# Example:
+# @CODE
+# NUGET_APIS+=( "https://api.nuget.org/v3-flatcontainer" )
+# inherit nuget
+# SRC_URI="https://example.com/example.tar.xz"
+# SRC_URI+=" ${NUGET_URIS} "
+# @CODE
+if [[ -z "${NUGET_APIS}" ]] ; then
+	NUGET_APIS=( "https://api.nuget.org/v3-flatcontainer" )
+fi
+
+# @ECLASS_VARIABLE: NUGET_PACKAGES
+# @DEFAULT_UNSET
+# @PRE_INHERIT
+# @DESCRIPTION:
+# Path from where NuGets will be restored from.
+# This is a special variable that modifies the behavior of "dotnet".
+#
+# Defaults to ${T}/nugets for use with "NUGETS" but may be set to a custom
+# location to, for example, restore NuGets extracted from a prepared archive.
+# Do not set this variable in conjunction with non-empty "NUGETS".
+if [[ -n "${NUGETS}" || -z "${NUGET_PACKAGES}" ]] ; then
+	NUGET_PACKAGES="${T}"/nugets
+fi
+export NUGET_PACKAGES
+
+# @ECLASS_VARIABLE: NUGETS
+# @DEFAULT_UNSET
+# @PRE_INHERIT
+# @DESCRIPTION:
+# String containing all NuGet packages that need to be downloaded.
+#
+# Used by "_nuget_uris".
+#
+# Example:
+# @CODE
+# NUGETS="
+#	ImGui.NET@1.87.2
+#	Config.Net@4.19.0
+# "
+#
+# inherit dotnet-pkg
+#
+# ...
+#
+# SRC_URI+=" ${NUGET_URIS} "
+# @CODE
+
+# @ECLASS_VARIABLE: NUGET_URIS
+# @OUTPUT_VARIABLE
+# @DESCRIPTION:
+# List of URIs to put in SRC_URI created from NUGETS variable.
+
+# @FUNCTION: _nuget_set_nuget_uris
+# @USAGE: <nugets>
+# @DESCRIPTION:
+# Generates the URIs to put in SRC_URI to help fetch dependencies.
+# Constructs a list of NuGets from its arguments.
+# The value is set as "NUGET_URIS".
+_nuget_set_nuget_uris() {
+	local nugets="${1}"
+
+	NUGET_URIS=""
+
+	local nuget
+	local name version
+	local nuget_api url
+	for nuget in ${nugets} ; do
+		name="${nuget%@*}"
+		version="${nuget##*@}"
+
+		for nuget_api in "${NUGET_APIS[@]}" ; do
+			case ${nuget_api%/} in
+				*/v2 )
+					url="${nuget_api}/package/${name}/${version}
+							-> ${name}.${version}.nupkg"
+					;;
+				* )
+					url="${nuget_api}/${name}/${version}/${name}.${version}.nupkg"
+					;;
+			esac
+
+			NUGET_URIS+="${url} "
+		done
+	done
+}
+
+_nuget_set_nuget_uris "${NUGETS}"
+
+# @FUNCTION: nuget_link
+# @USAGE: <nuget-path>
+# @DESCRIPTION:
+# Link a specified NuGet package at "nuget-path" to the "NUGET_PACKAGES"
+# directory.
+#
+# Example:
+# @CODE
+# nuget_link "${DISTDIR}"/pkg.0.nupkg
+# @CODE
+#
+# This function is used inside "dotnet-pkg_src_unpack"
+# from the "dotnet-pkg" eclass.
+nuget_link() {
+	[[ -z "${1}" ]] && die "${FUNCNAME}: no nuget path given"
+
+	mkdir -p "${NUGET_PACKAGES}" || die
+
+	local nuget_name="${1##*/}"
+
+	if [[ -f "${NUGET_PACKAGES}"/${nuget_name} ]] ; then
+		eqawarn "QA Notice: \"${nuget_name}\" already exists, not linking it"
+	else
+		ln -s "${1}" "${NUGET_PACKAGES}"/${nuget_name} || die
+	fi
+}
+
+# @FUNCTION: nuget_link-system-nugets
+# @DESCRIPTION:
+# Link all system NuGet packages to the "NUGET_PACKAGES" directory.
+#
+# Example:
+# @CODE
+# src_unpack() {
+#     nuget_link-system-nugets
+#     default
+# }
+# @CODE
+#
+# This function is used inside "dotnet-pkg_src_unpack"
+# from the "dotnet-pkg" eclass.
+nuget_link-system-nugets() {
+	local runtime_nuget
+	for runtime_nuget in "${EPREFIX}${NUGET_SYSTEM_NUGETS}"/*.nupkg ; do
+		if [[ -f "${runtime_nuget}" ]] ; then
+			nuget_link "${runtime_nuget}"
+		fi
+	done
+}
+
+# @FUNCTION: nuget_donuget
+# @USAGE: <nuget-path> ...
+# @DESCRIPTION:
+# Install NuGet package(s) at "nuget-path" to the system nugets directory.
+#
+# Example:
+# @CODE
+# src_install() {
+#     nuget_donuget my-pkg.nupkg
+# }
+# @CODE
+nuget_donuget() {
+	insinto "${NUGET_SYSTEM_NUGETS}"
+	doins "${@}"
+}
+
+fi
-- 
2.41.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-dev] [PATCH 2/6] eclass/dotnet-pkg-base.eclass: add new "dotnet-pkg-base" eclass
  2023-09-05 20:21 [gentoo-dev] [PATCH 1/6] eclass/nuget.eclass: add new "nuget" eclass Maciej Barć
@ 2023-09-05 20:21 ` Maciej Barć
  2023-09-05 20:21 ` [gentoo-dev] [PATCH 3/6] eclass/dotnet-pkg.eclass: add new "dotnet-pkg" eclass Maciej Barć
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Maciej Barć @ 2023-09-05 20:21 UTC (permalink / raw
  To: gentoo-dev; +Cc: Maciej Barć

Bug: https://bugs.gentoo.org/900597
Bug: https://github.com/gentoo/gentoo/pull/32109
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
---
 eclass/dotnet-pkg-base.eclass | 608 ++++++++++++++++++++++++++++++++++
 1 file changed, 608 insertions(+)
 create mode 100644 eclass/dotnet-pkg-base.eclass

diff --git a/eclass/dotnet-pkg-base.eclass b/eclass/dotnet-pkg-base.eclass
new file mode 100644
index 0000000000..dbb994a642
--- /dev/null
+++ b/eclass/dotnet-pkg-base.eclass
@@ -0,0 +1,608 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# @ECLASS: dotnet-pkg-base.eclass
+# @MAINTAINER:
+# Gentoo Dotnet project <dotnet@gentoo.org>
+# @AUTHOR:
+# Anna Figueiredo Gomes <navi@vlhl.dev>
+# Maciej Barć <xgqt@gentoo.org>
+# @SUPPORTED_EAPIS: 8
+# @PROVIDES: nuget
+# @BLURB: common functions and variables for builds using .NET SDK
+# @DESCRIPTION:
+# This eclass is designed to provide required ebuild definitions for .NET
+# packages. Beware that in addition to Gentoo-specific concepts also terms that
+# should be known to people familiar with the .NET ecosystem are used through
+# this one and similar eclasses.
+#
+# In ebuilds for software that only utilizes the .NET SDK, without special
+# cases, the "dotnet-pkg.eclass" is probably better suited.
+#
+# This eclass does not export any phase functions, for that see
+# the "dotnet-pkg" eclass.
+
+case ${EAPI} in
+	8) ;;
+	*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
+esac
+
+if [[ -z ${_DOTNET_PKG_UTILS_ECLASS} ]] ; then
+_DOTNET_PKG_UTILS_ECLASS=1
+
+inherit edo multiprocessing nuget
+
+# @ECLASS_VARIABLE: DOTNET_COMPAT
+# @REQUIRED
+# @PRE_INHERIT
+# @DESCRIPTION:
+# Allows to choose a slot for dotnet.
+#
+# Most .NET packages will lock onto one supported .NET major version.
+# DOTNET_COMPAT should specify which version was chosen by package upstream.
+# In case multiple .NET versions are specified in the project, then the highest
+# should be picked by the maintainer.
+if [[ ${CATEGORY}/${PN} != dev-dotnet/dotnet-runtime-nugets ]] ; then
+	if [[ -z ${DOTNET_COMPAT} ]] ; then
+		die "${ECLASS}: DOTNET_COMPAT not set"
+	fi
+
+	RDEPEND+=" virtual/dotnet-sdk:${DOTNET_COMPAT} "
+	BDEPEND+=" ${RDEPEND} "
+
+	# Special package "dev-dotnet/csharp-gentoodotnetinfo" used for information
+	# gathering, example for usage see the "dotnet-pkg-base_info" function.
+	if [[ ${CATEGORY}/${PN} != dev-dotnet/csharp-gentoodotnetinfo ]] ; then
+		BDEPEND+=" dev-dotnet/csharp-gentoodotnetinfo "
+	fi
+
+	IUSE+=" debug "
+fi
+
+# Needed otherwise the binaries may break.
+RESTRICT+=" strip "
+
+# Everything is built by "dotnet".
+QA_PREBUILT=".*"
+
+# Special .NET SDK environment variables.
+# Setting them either prevents annoying information from being generated
+# or stops services that may interfere with a clean package build.
+export DOTNET_CLI_TELEMETRY_OPTOUT=1
+export DOTNET_NOLOGO=1
+export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
+export MSBUILDDISABLENODEREUSE=1
+export POWERSHELL_TELEMETRY_OPTOUT=1
+export POWERSHELL_UPDATECHECK=0
+# Overwrite selected MSBuild properties ("-p:XYZ").
+export UseSharedCompilation=false
+
+# @ECLASS_VARIABLE: DOTNET_RUNTIME
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# Sets the runtime used to build a package.
+#
+# This variable is set automatically by the "dotnet-pkg-base_setup" function.
+
+# @ECLASS_VARIABLE: DOTNET_EXECUTABLE
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# Sets path of a "dotnet" executable.
+#
+# This variable is set automatically by the "dotnet-pkg-base_setup" function.
+
+# @ECLASS_VARIABLE: DOTNET_CONFIGURATION
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# Configuration value passed to "dotnet" in the compile phase.
+# Is either Debug or Release, depending on the "debug" USE flag.
+#
+# This variable is set automatically by the "dotnet-pkg-base_setup" function.
+
+# @ECLASS_VARIABLE: DOTNET_OUTPUT
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# Path of the output directory, where the package artifacts are placed during
+# the building of packages with "dotnet-pkg-base_build" function.
+#
+# This variable is set automatically by the "dotnet-pkg-base_setup" function.
+
+# @VARIABLE: _DOTNET_LAUNCHERDEST
+# @INTERNAL
+# @DESCRIPTION:
+# Sets the path that .NET launchers are installed into by
+# the "dotnet-pkg-base_dolauncher" function.
+#
+# The function "dotnet-pkg-base_launcherinto" is able to manipulate this
+# variable.
+#
+# Defaults to "/usr/bin".
+_DOTNET_LAUNCHERDEST=/usr/bin
+
+# @VARIABLE: DOTNET_LAUNCHERVARS
+# @INTERNAL
+# @DESCRIPTION:
+# Sets additional variables for .NET launchers created by
+# the "dotnet-pkg-base_dolauncher" function.
+#
+# The function "dotnet-pkg-base_append_launchervar" is able to manipulate this
+# variable.
+#
+# Defaults to a empty array.
+DOTNET_LAUNCHERVARS=()
+
+# @FUNCTION: dotnet-pkg-base_get-configuration
+# @DESCRIPTION:
+# Return .NET configuration type of the current package.
+#
+# It is advised to refer to the "DOTNET_CONFIGURATION" variable instead of
+# calling this function if necessary.
+#
+# Used by "dotnet-pkg-base_setup".
+dotnet-pkg-base_get-configuration() {
+	if in_iuse debug && use debug ; then
+		echo Debug
+	else
+		echo Release
+	fi
+}
+
+# @FUNCTION: dotnet-pkg-base_get-output
+# @USAGE: <name>
+# @DESCRIPTION:
+# Return a specially constructed name of a directory for output of
+# "dotnet build" artifacts ("--output" flag, see "dotnet-pkg-base_build").
+#
+# It is very rare that a maintainer would use this function in an ebuild.
+#
+# This function is used inside "dotnet-pkg-base_setup".
+dotnet-pkg-base_get-output() {
+	debug-print-function ${FUNCNAME} "${@}"
+
+	[[ -z ${DOTNET_CONFIGURATION} ]] &&
+		die "${FUNCNAME}: DOTNET_CONFIGURATION is not set."
+
+	echo "${WORKDIR}"/${1}_net${DOTNET_COMPAT}_${DOTNET_CONFIGURATION}
+}
+
+# @FUNCTION: dotnet-pkg-base_get-runtime
+# @DESCRIPTION:
+# Return the .NET runtime used for the current package.
+#
+# Used by "dotnet-pkg-base_setup".
+dotnet-pkg-base_get-runtime() {
+	local libc="$(usex elibc_musl "-musl" "")"
+
+	if use amd64 ; then
+		echo linux${libc}-x64
+	elif use x86 ; then
+		echo linux${libc}-x86
+	elif use arm ; then
+		echo linux${libc}-arm
+	elif use arm64 ; then
+		echo linux${libc}-arm64
+	else
+		die "${FUNCNAME}: Unsupported architecture: ${ARCH}"
+	fi
+}
+
+# @FUNCTION: dotnet-pkg-base_setup
+# @DESCRIPTION:
+# Sets up "DOTNET_EXECUTABLE" variable for later use in "edotnet".
+# Also sets up "DOTNET_CONFIGURATION" and "DOTNET_OUTPUT"
+# for "dotnet-pkg_src_configure" and "dotnet-pkg_src_compile".
+#
+# This functions should be called by "pkg_setup".
+#
+# Used by "dotnet-pkg_pkg_setup" from the "dotnet-pkg" eclass.
+dotnet-pkg-base_setup() {
+	local dotnet_compat_impl
+	local dotnet_compat_impl_path
+	for dotnet_compat_impl in dotnet{,-bin}-${DOTNET_COMPAT} ; do
+		dotnet_compat_impl_path="$(type -P "${dotnet_compat_impl}")"
+
+		if [[ -n ${dotnet_compat_impl_path} ]] ; then
+			DOTNET_EXECUTABLE=${dotnet_compat_impl}
+			DOTNET_EXECUTABLE_PATH="${dotnet_compat_impl_path}"
+
+			break
+		fi
+	done
+
+	# Link "DOTNET_EXECUTABLE" to "dotnet" only for the package build.
+	local dotnet_spoof_path="${T}"/dotnet_spoof/${DOTNET_COMPAT}
+	mkdir -p "${dotnet_spoof_path}" || die
+	ln -s "${DOTNET_EXECUTABLE_PATH}" "${dotnet_spoof_path}"/dotnet || die
+	export PATH="${dotnet_spoof_path}:${PATH}"
+
+	einfo "Using dotnet SDK \"${DOTNET_EXECUTABLE}\" from \"${DOTNET_EXECUTABLE_PATH}\"."
+
+	# The picked "DOTNET_EXECUTABLE" should set "DOTNET_ROOT" internally
+	# and not rely upon this environment variable.
+	unset DOTNET_ROOT
+
+	# Unset .NET and NuGet directories.
+	unset DOTNET_DATA
+	unset NUGET_DATA
+
+	DOTNET_RUNTIME=$(dotnet-pkg-base_get-runtime)
+	DOTNET_CONFIGURATION=$(dotnet-pkg-base_get-configuration)
+	DOTNET_OUTPUT="$(dotnet-pkg-base_get-output ${P})"
+}
+
+# @FUNCTION: dotnet-pkg-base_remove-global-json
+# @USAGE: [directory]
+# @DESCRIPTION:
+# Remove the "global.json" if it exists.
+# The file in question might lock target package to a specified .NET
+# version, which might be unnecessary (as it is in most cases).
+#
+# Optional "directory" argument defaults to the current directory path.
+#
+# Used by "dotnet-pkg_src_prepare" from the "dotnet-pkg" eclass.
+dotnet-pkg-base_remove-global-json() {
+	debug-print-function ${FUNCNAME} "${@}"
+
+	local file="${1:-.}"/global.json
+
+	if [[ -f "${file}" ]] ; then
+		ebegin "Removing the global.json file"
+		rm "${file}"
+		eend ${?} || die "${FUNCNAME}: failed to remove ${file}"
+	fi
+}
+
+# @FUNCTION: edotnet
+# @USAGE: <command> [args...]
+# @DESCRIPTION:
+# Call dotnet, passing the supplied arguments.
+edotnet() {
+	debug-print-function ${FUNCNAME} "${@}"
+
+	if [[ -z ${DOTNET_EXECUTABLE} ]] ; then
+	   die "${FUNCNAME}: DOTNET_EXECUTABLE not set. Was dotnet-pkg-base_setup called?"
+	fi
+
+	edo "${DOTNET_EXECUTABLE}" "${@}"
+}
+
+# @FUNCTION: dotnet-pkg-base_info
+# @DESCRIPTION:
+# Show information about current .NET SDK that is being used.
+#
+# Depends upon the "gentoo-dotnet-info" program installed by
+# the "dev-dotnet/csharp-gentoodotnetinfo" package.
+#
+# Used by "dotnet-pkg_src_configure" from the "dotnet-pkg" eclass.
+dotnet-pkg-base_info() {
+	if [[ ${CATEGORY}/${PN} == dev-dotnet/csharp-gentoodotnetinfo ]] ; then
+		debug-print-function "${FUNCNAME}: ${P} is a special package, skipping dotnet-pkg-base_info"
+	elif ! command -v gentoo-dotnet-info >/dev/null ; then
+		ewarn "${FUNCNAME}: gentoo-dotnet-info not available"
+	else
+		gentoo-dotnet-info || die "${FUNCNAME}: failed to execute gentoo-dotnet-info"
+	fi
+}
+
+# @FUNCTION: dotnet-pkg-base_foreach-solution
+# @USAGE: <function> [directory]
+# @DESCRIPTION:
+# Execute a function for each solution file (.sln) in a specified directory.
+# This function may yield no real results because solutions are discovered
+# automatically.
+#
+# Optional "directory" argument defaults to the current directory path.
+#
+# Used by "dotnet-pkg_src_configure" from the "dotnet-pkg" eclass.
+dotnet-pkg-base_foreach-solution() {
+	debug-print-function ${FUNCNAME} "${@}"
+
+	local dotnet_solution
+	local dotnet_solution_name
+	while read dotnet_solution ; do
+		dotnet_solution_name="$(basename "${dotnet_solution}")"
+
+		ebegin "Running \"${1}\" for solution: \"${dotnet_solution_name}\""
+		"${1}" "${dotnet_solution}"
+		eend $? "${FUNCNAME}: failed for solution: \"${dotnet_solution}\"" || die
+	done < <(find "${2:-.}" -maxdepth 1 -type f -name "*.sln")
+}
+
+# @FUNCTION: dotnet-pkg-base_restore
+# @USAGE: [directory] [args] ...
+# @DESCRIPTION:
+# Restore the package using "dotnet restore" in a specified directory.
+#
+# Optional "directory" argument defaults to the current directory path.
+#
+# Additionally any number of "args" maybe be given, they are appended to
+# the "dotnet" command invocation.
+#
+# Used by "dotnet-pkg_src_configure" from the "dotnet-pkg" eclass.
+dotnet-pkg-base_restore() {
+	debug-print-function ${FUNCNAME} "${@}"
+
+	local directory
+	if [[ "${1}" ]] ; then
+		directory="${1}"
+		shift
+	else
+		directory="$(pwd)"
+	fi
+
+	local -a restore_args=(
+		--runtime ${DOTNET_RUNTIME}
+		--source "${NUGET_PACKAGES}"
+		-maxCpuCount:$(makeopts_jobs)
+		"${@}"
+	)
+
+	edotnet restore "${restore_args[@]}" "${directory}"
+}
+
+# @FUNCTION: dotnet-pkg-base_restore_tools
+# @USAGE: [config-file] [args] ...
+# @DESCRIPTION:
+# Restore dotnet tools for a project in the current directory.
+#
+# Optional "config-file" argument is used to specify a file for the
+# "--configfile" option which records what tools should be restored.
+#
+# Additionally any number of "args" maybe be given, they are appended to
+# the "dotnet" command invocation.
+dotnet-pkg-base_restore_tools() {
+	debug-print-function ${FUNCNAME} "${@}"
+
+	local -a tool_restore_args=(
+		--add-source "${NUGET_PACKAGES}"
+	)
+
+	if [[ "${1}" ]] ; then
+		tool_restore_args+=( --configfile "${1}" )
+		shift
+	fi
+
+	tool_restore_args+=( "${@}" )
+
+	edotnet tool restore "${tool_restore_args[@]}"
+}
+
+# @FUNCTION: dotnet-pkg-base_build
+# @USAGE: [directory] [args] ...
+# @DESCRIPTION:
+# Build the package using "dotnet build" in a specified directory.
+#
+# Optional "directory" argument defaults to the current directory path.
+#
+# Additionally any number of "args" maybe be given, they are appended to
+# the "dotnet" command invocation.
+#
+# Used by "dotnet-pkg_src_compile" from the "dotnet-pkg" eclass.
+dotnet-pkg-base_build() {
+	debug-print-function ${FUNCNAME} "${@}"
+
+	local directory
+	if [[ "${1}" ]] ; then
+		directory="${1}"
+		shift
+	else
+		directory="$(pwd)"
+	fi
+
+	local -a build_args=(
+		--configuration "${DOTNET_CONFIGURATION}"
+		--no-restore
+		--no-self-contained
+		--output "${DOTNET_OUTPUT}"
+		--runtime ${DOTNET_RUNTIME}
+		-maxCpuCount:$(makeopts_jobs)
+		"${@}"
+	)
+
+	if ! use debug ; then
+		build_args+=(
+			-p:StripSymbols=true
+			-p:NativeDebugSymbols=false
+		)
+	fi
+
+	edotnet build "${build_args[@]}" "${directory}"
+}
+
+# @FUNCTION: dotnet-pkg-base_test
+# @USAGE: [directory] [args] ...
+# @DESCRIPTION:
+# Test the package using "dotnet test" in a specified directory.
+#
+# Optional "directory" argument defaults to the current directory path.
+#
+# Additionally any number of "args" maybe be given, they are appended to
+# the "dotnet" command invocation.
+#
+# Used by "dotnet-pkg_src_test" from the "dotnet-pkg" eclass.
+dotnet-pkg-base_test() {
+	debug-print-function ${FUNCNAME} "${@}"
+
+	local directory
+	if [[ "${1}" ]] ; then
+		directory="${1}"
+		shift
+	else
+		directory="$(pwd)"
+	fi
+
+	local -a test_args=(
+		--configuration "${DOTNET_CONFIGURATION}"
+		--no-restore
+		-maxCpuCount:$(makeopts_jobs)
+		"${@}"
+	)
+
+	edotnet test "${test_args[@]}" "${directory}"
+}
+
+# @FUNCTION: dotnet-pkg-base_install
+# @USAGE: [directory]
+# @DESCRIPTION:
+# Install the contents of "DOTNET_OUTPUT" into a directory, defaults to
+# "/usr/share/${P}".
+#
+# Installation directory is relative to "ED".
+dotnet-pkg-base_install() {
+	debug-print-function ${FUNCNAME} "${@}"
+
+	local installation_directory="${1:-/usr/share/${P}}"
+
+	dodir "${installation_directory}"
+	cp -r "${DOTNET_OUTPUT}"/* "${ED}/${installation_directory}/" || die
+}
+
+# @FUNCTION: dotnet-pkg-base_launcherinto
+# @USAGE: <directory>
+# @DESCRIPTION:
+# Changes the path .NET launchers are installed into via subsequent
+# "dotnet-pkg-base_dolauncher" calls.
+#
+# For more info see the "_DOTNET_LAUNCHERDEST" variable.
+dotnet-pkg-base_launcherinto() {
+	debug-print-function ${FUNCNAME} "${@}"
+
+	[[ -z ${1} ]] && die "${FUNCNAME}: no directory specified"
+
+	_DOTNET_LAUNCHERDEST="${1}"
+}
+
+# @FUNCTION: dotnet-pkg-base_append_launchervar
+# @USAGE: <variable-setting>
+# @DESCRIPTION:
+# Appends a given variable setting to the "DOTNET_LAUNCHERVARS".
+#
+# WARNING: This functions modifies a global variable permanently!
+# This means that all launchers created in subsequent
+# "dotnet-pkg-base_dolauncher" calls of a given package will have
+# the given variable set.
+#
+# Example:
+# @CODE
+# dotnet-pkg-base_append_launchervar "DOTNET_EnableAlternateStackCheck=1"
+# @CODE
+#
+# For more info see the "DOTNET_LAUNCHERVARS" variable.
+dotnet-pkg-base_append_launchervar() {
+	debug-print-function ${FUNCNAME} "${@}"
+
+	[[ -z ${1} ]] && die "${FUNCNAME}: no variable setting specified"
+
+	DOTNET_LAUNCHERVARS+=( "${1}" )
+}
+
+# @FUNCTION: dotnet-pkg-base_dolauncher
+# @USAGE: <executable-path> [filename]
+# @DESCRIPTION:
+# Make a wrapper script to launch an executable built from a .NET package.
+#
+# If no file name is given, the `basename` of the executable is used.
+#
+# Parameters:
+# ${1} - path of the executable to launch,
+# ${2} - filename of launcher to create (optional).
+#
+# Example:
+# @CODE
+# dotnet-pkg-base_install
+# dotnet-pkg-base_dolauncher /usr/share/${P}/${PN^}
+# @CODE
+#
+# The path is prepended by "EPREFIX".
+dotnet-pkg-base_dolauncher() {
+	debug-print-function ${FUNCNAME} "${@}"
+
+	local executable_path executable_name
+
+	if [[ "${1}" ]] ; then
+		local executable_path="${1}"
+		shift
+	else
+		die "${FUNCNAME}: No executable path given."
+	fi
+
+	if [[ ${#} -eq 0 ]] ; then
+		executable_name="$(basename "${executable_path}")"
+	else
+		executable_name="${1}"
+		shift
+	fi
+
+	local executable_target="${T}/${executable_name}"
+
+	cat <<-EOF > "${executable_target}" || die
+	#!/bin/sh
+
+	# Lanucher script for ${executable_path} (${executable_name}),
+	# created from package "${CATEGORY}/${P}",
+	# compatible with dotnet version ${DOTNET_COMPAT}.
+
+	for __dotnet_root in \\
+		${EPREFIX}/usr/$(get_libdir)/dotnet-sdk-${DOTNET_COMPAT} \\
+		${EPREFIX}/opt/dotnet-sdk-bin-${DOTNET_COMPAT} ; do
+		[ -d \${__dotnet_root} ] && break
+	done
+
+	DOTNET_ROOT="\${__dotnet_root}"
+	export DOTNET_ROOT
+
+	$(for var in "${DOTNET_LAUNCHERVARS[@]}" ; do
+		echo "${var}"
+		echo "export ${var%%=*}"
+	done)
+
+	exec "${EPREFIX}${executable_path}" "\${@}"
+	EOF
+
+	exeinto "${_DOTNET_LAUNCHERDEST}"
+	doexe "${executable_target}"
+}
+
+# @FUNCTION: dotnet-pkg-base_dolauncher_portable
+# @USAGE: <dll-path> <filename>
+# @DESCRIPTION:
+# Make a wrapper script to launch a .NET DLL file built from a .NET package.
+#
+# Parameters:
+# ${1} - path of the DLL to launch,
+# ${2} - filename of launcher to create.
+#
+# Example:
+# @CODE
+# dotnet-pkg-base_dolauncher_portable \
+#     /usr/share/${P}/GentooDotnetInfo.dll gentoo-dotnet-info
+# @CODE
+#
+# The path is prepended by "EPREFIX".
+dotnet-pkg-base_dolauncher_portable() {
+	debug-print-function ${FUNCNAME} "${@}"
+
+	local dll_path="${1}"
+	local executable_name="${2}"
+	local executable_target="${T}/${executable_name}"
+
+	cat <<-EOF > "${executable_target}" || die
+	#!/bin/sh
+
+	# Lanucher script for ${dll_path} (${executable_name}),
+	# created from package "${CATEGORY}/${P}",
+	# compatible with any dotnet version, built on ${DOTNET_COMPAT}.
+
+	$(for var in "${DOTNET_LAUNCHERVARS[@]}" ; do
+		echo "${var}"
+		echo "export ${var%%=*}"
+	done)
+
+	exec dotnet exec "${EPREFIX}${dll_path}" "\${@}"
+	EOF
+
+	exeinto "${_DOTNET_LAUNCHERDEST}"
+	doexe "${executable_target}"
+}
+
+fi
-- 
2.41.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-dev] [PATCH 3/6] eclass/dotnet-pkg.eclass: add new "dotnet-pkg" eclass
  2023-09-05 20:21 [gentoo-dev] [PATCH 1/6] eclass/nuget.eclass: add new "nuget" eclass Maciej Barć
  2023-09-05 20:21 ` [gentoo-dev] [PATCH 2/6] eclass/dotnet-pkg-base.eclass: add new "dotnet-pkg-base" eclass Maciej Barć
@ 2023-09-05 20:21 ` Maciej Barć
  2023-09-05 20:21 ` [gentoo-dev] [PATCH 4/6] app-eselect/eselect-dotnet: new package; add version 0.1.0 Maciej Barć
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Maciej Barć @ 2023-09-05 20:21 UTC (permalink / raw
  To: gentoo-dev; +Cc: Maciej Barć

Bug: https://bugs.gentoo.org/900597
Bug: https://github.com/gentoo/gentoo/pull/32109
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
---
 eclass/dotnet-pkg.eclass | 258 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 258 insertions(+)
 create mode 100644 eclass/dotnet-pkg.eclass

diff --git a/eclass/dotnet-pkg.eclass b/eclass/dotnet-pkg.eclass
new file mode 100644
index 0000000000..2bff16c899
--- /dev/null
+++ b/eclass/dotnet-pkg.eclass
@@ -0,0 +1,258 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# @ECLASS: dotnet-pkg.eclass
+# @MAINTAINER:
+# Gentoo Dotnet project <dotnet@gentoo.org>
+# @AUTHOR:
+# Anna Figueiredo Gomes <navi@vlhl.dev>
+# Maciej Barć <xgqt@gentoo.org>
+# @SUPPORTED_EAPIS: 8
+# @PROVIDES: dotnet-pkg-base nuget
+# @BLURB: common functions and variables for .NET packages
+# @DESCRIPTION:
+# This eclass is designed to help with building and installing packages that
+# use the .NET SDK.
+# It provides the required phase functions and special variables that make
+# it easier to write ebuilds for .NET packages.
+# If you do not use the exported phase functions, then consider using
+# the "dotnet-pkg-base.eclass" instead.
+#
+# .NET SDK is a open-source framework from Microsoft, it is a cross-platform
+# successor to .NET Framework.
+#
+# .NET packages require proper inspection before packaging:
+# - the compatible .NET SDK version has to be declared,
+#   this can be done by inspecting the package's "*.proj" files,
+#   unlike JAVA, .NET packages tend to lock onto one exact selected .NET SDK
+#   version, so building with other .NET versions will be mostly unsupported,
+# - Nugets, packages' .NET dependencies, which are similar to JAVA's JARs,
+#   have to be listed using either the "NUGETS" variable or bundled inside
+#   a "prebuilt" archive, in second case also the "NUGET_PACKAGES" variable
+#   has to be explicitly set.
+# - the main project file (*.proj) that builds the project has to be specified
+#   by the "DOTNET_PROJECT" variable.
+
+case ${EAPI} in
+	8) ;;
+	*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
+esac
+
+if [[ -z ${_DOTNET_PKG_ECLASS} ]] ; then
+_DOTNET_PKG_ECLASS=1
+
+inherit dotnet-pkg-base
+
+# @ECLASS_VARIABLE: DOTNET_PROJECTS
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# Path to the main .NET project files (".csproj", ".fsproj", ".vbproj")
+# used by default by "dotnet-pkg_src_compile" phase function.
+#
+# In .NET version 6.0 and lower it was possible to build a project solution
+# (".sln") immediately with output to a specified directory ("--output DIR"),
+# but versions >= 7.0 deprecated this behavior. This means that
+# "dotnet-pkg-base_build" will fail when pointed to a solution or a directory
+# containing a solution file.
+#
+# It is up to the maintainer if this variable is set before inheriting
+# "dotnet-pkg-base" eclass, but it is advised that it is set after
+# the variable "${S}" is set, it should also integrate with it
+# (see the example below).
+#
+# Example:
+# @CODE
+# SRC_URI="..."
+# S="${WORKDIR}/${P}/src"
+#
+# LICENSE="MIT"
+# SLOT="0"
+# KEYWORDS="~amd64"
+#
+# DOTNET_PROJECTS=( "${S}/DotnetProject" )
+#
+# src_prepare() {
+#     ...
+# @CODE
+
+# @ECLASS_VARIABLE: DOTNET_RESTORE_EXTRA_ARGS
+# @DESCRIPTION:
+# Extra arguments to pass to the package restore, in the "src_configure" phase.
+#
+# This is passed only when restoring the specified "DOTNET_PROJECT".
+# Other project restorers do not use this variable.
+#
+# It is up to the maintainer if this variable is set before inheriting
+# "dotnet-pkg.eclass", but it is advised that it is set after the variable
+# "DOTNET_PROJECT" (from "dotnet-pkg-base" eclass) is set.
+#
+# Default value is an empty array.
+#
+# For more info see the "DOTNET_PROJECT" variable and "dotnet-pkg_src_configure".
+DOTNET_RESTORE_EXTRA_ARGS=()
+
+# @ECLASS_VARIABLE: DOTNET_BUILD_EXTRA_ARGS
+# @DESCRIPTION:
+# Extra arguments to pass to the package build, in the "src_compile" phase.
+#
+# This is passed only when building the specified "DOTNET_PROJECT".
+# Other project builds do not use this variable.
+#
+# It is up to the maintainer if this variable is set before inheriting
+# "dotnet-pkg.eclass", but it is advised that it is set after the variable
+# "DOTNET_PROJECT" (from "dotnet-pkg-base" eclass) is set.
+#
+# Default value is an empty array.
+#
+# Example:
+# @CODE
+# DOTNET_BUILD_EXTRA_ARGS=( -p:WarningLevel=0 )
+# @CODE
+#
+# For more info see the "DOTNET_PROJECT" variable and "dotnet-pkg_src_compile".
+DOTNET_BUILD_EXTRA_ARGS=()
+
+# @FUNCTION: dotnet-pkg_pkg_setup
+# @DESCRIPTION:
+# Default "pkg_setup" for the "dotnet-pkg" eclass.
+# Pre-build configuration and checks.
+#
+# Calls "dotnet-pkg-base_pkg_setup".
+dotnet-pkg_pkg_setup() {
+	[[ ${MERGE_TYPE} != binary ]] && dotnet-pkg-base_setup
+}
+
+# @FUNCTION: dotnet-pkg_src_unpack
+# @DESCRIPTION:
+# Default "src_unpack" for the "dotnet-pkg" eclass.
+# Unpack the package sources.
+#
+# Includes a special exception for nugets (".nupkg" files) - they are instead
+# copied into the "NUGET_PACKAGES" directory.
+dotnet-pkg_src_unpack() {
+	nuget_link-system-nugets
+
+	local archive
+	for archive in ${A} ; do
+		case "${archive}" in
+			*.nupkg )
+				nuget_link "${DISTDIR}/${archive}"
+				;;
+			* )
+				unpack "${archive}"
+				;;
+		esac
+	done
+}
+
+# @FUNCTION: dotnet-pkg_src_prepare
+# @DESCRIPTION:
+# Default "src_prepare" for the "dotnet-pkg" eclass.
+# Prepare the package sources.
+#
+# Run "dotnet-pkg-base_remove-global-json".
+dotnet-pkg_src_prepare() {
+	dotnet-pkg-base_remove-global-json
+
+	default
+}
+
+# @FUNCTION: dotnet-pkg_foreach-project
+# @USAGE: <args> ...
+# @DESCRIPTION:
+# Run a specified command for each project listed inside the "DOTNET_PROJECTS"
+# variable.
+#
+# Used by "dotnet-pkg_src_configure" and "dotnet-pkg_src_compile".
+dotnet-pkg_foreach-project() {
+	debug-print-function ${FUNCNAME} "${@}"
+
+	local dotnet_project
+	for dotnet_project in "${DOTNET_PROJECTS[@]}" ; do
+		ebegin "Running \"${*}\" for project: \"${dotnet_project##*/}\""
+		"${@}" "${dotnet_project}"
+		eend $? "${FUNCNAME}: failed for project: \"${dotnet_project}\"" || die
+	done
+}
+
+# @FUNCTION: dotnet-pkg_src_configure
+# @DESCRIPTION:
+# Default "src_configure" for the "dotnet-pkg" eclass.
+# Configure the package.
+#
+# First show information about current .NET SDK that is being used,
+# then restore the project file specified by "DOTNET_PROJECT",
+# afterwards restore any found solutions.
+dotnet-pkg_src_configure() {
+	dotnet-pkg-base_info
+
+	dotnet-pkg_foreach-project \
+		dotnet-pkg-base_restore "${DOTNET_RESTORE_EXTRA_ARGS[@]}"
+
+	dotnet-pkg-base_foreach-solution dotnet-pkg-base_restore "$(pwd)"
+}
+
+# @FUNCTION: dotnet-pkg_src_compile
+# @DESCRIPTION:
+# Default "src_compile" for the "dotnet-pkg" eclass.
+# Build the package.
+#
+# Build the package using "dotnet build" in the directory specified by either
+# "DOTNET_PROJECT" or "S" (temporary build directory) variables.
+#
+# For more info see: "DOTNET_PROJECT" variable
+# and "dotnet-pkg-base_get-project" function.
+dotnet-pkg_src_compile() {
+	dotnet-pkg_foreach-project \
+		dotnet-pkg-base_build "${DOTNET_BUILD_EXTRA_ARGS[@]}"
+}
+
+# @FUNCTION: dotnet-pkg_src_test
+# @DESCRIPTION:
+# Default "src_test" for the "dotnet-pkg" eclass.
+# Test the package.
+#
+# Test the package by testing any found solutions.
+#
+# It is very likely that this function will either not execute any tests or
+# will execute wrong or incomplete test suite. Maintainers should inspect if
+# any and/or correct tests are ran.
+dotnet-pkg_src_test() {
+	dotnet-pkg-base_foreach-solution dotnet-pkg-base_test "$(pwd)"
+}
+
+# @FUNCTION: dotnet-pkg_src_install
+# @DESCRIPTION:
+# Default "src_install" for the "dotnet-pkg" eclass.
+# Install the package.
+#
+# This is the default package install:
+#   - install the compiled .NET package artifacts,
+#	  for more info see "dotnet-pkg-base_install" and "DOTNET_OUTPUT",
+#   - create launcher from the .NET package directory to "/usr/bin",
+#     phase will detect to choose either executable with capital letter
+#     (common among .NET packages) or not,
+#   - call "einstalldocs".
+#
+# It is very likely that this function is either insufficient or has to be
+# redefined in a ebuild.
+dotnet-pkg_src_install() {
+	dotnet-pkg-base_install
+
+	# /usr/bin/Nake -> /usr/share/nake-3.0.0/Nake
+	if [[ -f "${D}/usr/share/${P}/${PN^}" ]] ; then
+		dotnet-pkg-base_dolauncher /usr/share/${P}/${PN^}
+
+		# Create a compatibility symlink and also for ease of use from CLI.
+		dosym -r /usr/bin/${PN^} /usr/bin/${PN}
+
+	elif [[ -f "${D}/usr/share/${P}/${PN}" ]] ; then
+		dotnet-pkg-base_dolauncher /usr/share/${P}/${PN}
+	fi
+
+	einstalldocs
+}
+
+fi
+
+EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install
-- 
2.41.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-dev] [PATCH 4/6] app-eselect/eselect-dotnet: new package; add version 0.1.0
  2023-09-05 20:21 [gentoo-dev] [PATCH 1/6] eclass/nuget.eclass: add new "nuget" eclass Maciej Barć
  2023-09-05 20:21 ` [gentoo-dev] [PATCH 2/6] eclass/dotnet-pkg-base.eclass: add new "dotnet-pkg-base" eclass Maciej Barć
  2023-09-05 20:21 ` [gentoo-dev] [PATCH 3/6] eclass/dotnet-pkg.eclass: add new "dotnet-pkg" eclass Maciej Barć
@ 2023-09-05 20:21 ` Maciej Barć
  2023-09-05 20:21 ` [gentoo-dev] [PATCH 5/6] dev-dotnet/dotnet-runtime-nugets: new package Maciej Barć
  2023-09-05 20:22 ` [gentoo-dev] [PATCH 6/6] dev-dotnet/dotnet-sdk-bin: add 6.0.404-r1 and 7.0.203 Maciej Barć
  4 siblings, 0 replies; 6+ messages in thread
From: Maciej Barć @ 2023-09-05 20:21 UTC (permalink / raw
  To: gentoo-dev; +Cc: Maciej Barć

Bug: https://bugs.gentoo.org/900597
Bug: https://github.com/gentoo/gentoo/pull/32109
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
---
 app-eselect/eselect-dotnet/Manifest           |  1 +
 .../eselect-dotnet-0.1.0.ebuild               | 25 +++++++++++++++++++
 app-eselect/eselect-dotnet/metadata.xml       |  9 +++++++
 3 files changed, 35 insertions(+)
 create mode 100644 app-eselect/eselect-dotnet/Manifest
 create mode 100644 app-eselect/eselect-dotnet/eselect-dotnet-0.1.0.ebuild
 create mode 100644 app-eselect/eselect-dotnet/metadata.xml

diff --git a/app-eselect/eselect-dotnet/Manifest b/app-eselect/eselect-dotnet/Manifest
new file mode 100644
index 0000000000..9cf36cadf1
--- /dev/null
+++ b/app-eselect/eselect-dotnet/Manifest
@@ -0,0 +1 @@
+DIST eselect-dotnet-0.1.0.tar.bz2 7788 BLAKE2B 141e5a2fc765454682de60a6a337d6634766b4dd76f218606e2f4eb18960fdcf8940b954deda2fb6b0903f72b161513936c1d767210883316c32200704188945 SHA512 879281ffff019d1e4a8a5ee3d3e6b6de3446ba573d253a5b3b0c59aa9faffcd6eb4382066e1752e18cb4e48c3e14340a278b2189c2674b1baa258ceb3980d13a
diff --git a/app-eselect/eselect-dotnet/eselect-dotnet-0.1.0.ebuild b/app-eselect/eselect-dotnet/eselect-dotnet-0.1.0.ebuild
new file mode 100644
index 0000000000..3923b1a5a3
--- /dev/null
+++ b/app-eselect/eselect-dotnet/eselect-dotnet-0.1.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Eselect module for management of multiple dotnet versions"
+HOMEPAGE="https://gitlab.gentoo.org/dotnet/eselect-dotnet/"
+
+if [[ ${PV} == *9999* ]] ; then
+	inherit git-r3
+	EGIT_REPO_URI="https://gitlab.gentoo.org/dotnet/${PN}.git"
+else
+	SRC_URI="https://gitlab.gentoo.org/dotnet/${PN}/-/archive/${PV}/${P}.tar.bz2"
+	KEYWORDS="~amd64 ~arm ~arm64"
+fi
+
+LICENSE="GPL-2+"
+SLOT="0"
+
+RDEPEND="app-admin/eselect"
+
+src_install() {
+	insinto /usr/share/eselect/modules
+	doins dotnet.eselect
+}
diff --git a/app-eselect/eselect-dotnet/metadata.xml b/app-eselect/eselect-dotnet/metadata.xml
new file mode 100644
index 0000000000..08bae967b8
--- /dev/null
+++ b/app-eselect/eselect-dotnet/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+  <maintainer type="project">
+    <email>dotnet@gentoo.org</email>
+    <name>Gentoo Dotnet Project</name>
+  </maintainer>
+</pkgmetadata>
-- 
2.41.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-dev] [PATCH 5/6] dev-dotnet/dotnet-runtime-nugets: new package
  2023-09-05 20:21 [gentoo-dev] [PATCH 1/6] eclass/nuget.eclass: add new "nuget" eclass Maciej Barć
                   ` (2 preceding siblings ...)
  2023-09-05 20:21 ` [gentoo-dev] [PATCH 4/6] app-eselect/eselect-dotnet: new package; add version 0.1.0 Maciej Barć
@ 2023-09-05 20:21 ` Maciej Barć
  2023-09-05 20:22 ` [gentoo-dev] [PATCH 6/6] dev-dotnet/dotnet-sdk-bin: add 6.0.404-r1 and 7.0.203 Maciej Barć
  4 siblings, 0 replies; 6+ messages in thread
From: Maciej Barć @ 2023-09-05 20:21 UTC (permalink / raw
  To: gentoo-dev; +Cc: Maciej Barć

Dependency of dotnet-sdk{,-bin}

Bug: https://bugs.gentoo.org/900597
Bug: https://github.com/gentoo/gentoo/pull/32109
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
---
 dev-dotnet/dotnet-runtime-nugets/Manifest     | 77 +++++++++++++++++++
 .../dotnet-runtime-nugets-3.1.32.ebuild       | 56 ++++++++++++++
 .../dotnet-runtime-nugets-6.0.12.ebuild       | 59 ++++++++++++++
 .../dotnet-runtime-nugets-6.0.16.ebuild       | 59 ++++++++++++++
 .../dotnet-runtime-nugets-7.0.5.ebuild        | 59 ++++++++++++++
 dev-dotnet/dotnet-runtime-nugets/metadata.xml |  9 +++
 6 files changed, 319 insertions(+)
 create mode 100644 dev-dotnet/dotnet-runtime-nugets/Manifest
 create mode 100644 dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-3.1.32.ebuild
 create mode 100644 dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-6.0.12.ebuild
 create mode 100644 dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-6.0.16.ebuild
 create mode 100644 dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-7.0.5.ebuild
 create mode 100644 dev-dotnet/dotnet-runtime-nugets/metadata.xml

diff --git a/dev-dotnet/dotnet-runtime-nugets/Manifest b/dev-dotnet/dotnet-runtime-nugets/Manifest
new file mode 100644
index 0000000000..5e6f411891
--- /dev/null
+++ b/dev-dotnet/dotnet-runtime-nugets/Manifest
@@ -0,0 +1,77 @@
+DIST microsoft.aspnetcore.app.ref.3.1.10.nupkg 2535203 BLAKE2B de332022234864a337f7430966fa98dad3cde28f3a5bc049365636855b51054e4a3d452474a61c4df647c9f6eb33db80c155d442c5df41770d93e25b2dabe852 SHA512 ca88eb03020d22daa23a9d5761ce7401a9112c49c94ce2d28021dd58c102234f4d07edb98b678bfe06957067c2ff5f7ce9bb0619afc07ddf39b5ca45b2e52749
+DIST microsoft.aspnetcore.app.ref.6.0.12.nupkg 3341830 BLAKE2B 460b1f8a5bb4a49b494f8582c8f06792b48d1e5f24d990456c4510189881cb995d9cf0de0f4a464105a3dce0a59e9efd7c6a73aaad95d83518cbd595df8b7014 SHA512 9d795bf58747b8deb8ae12a2e10c27f3f5c40b3202dcb38a45d18476df737bacb942bb019ad45cc997602a797dc4b6af6e5aecd43d0d9b9114ab8c654bf97fe1
+DIST microsoft.aspnetcore.app.ref.6.0.16.nupkg 3341587 BLAKE2B 4a3588d50412a0659b9776482e494055a5b476dfd8748c8455777e068e6f86a58349c069f8f3288c088dd52b7d1f219fce520f40d5ee952eb3249bef3be89c46 SHA512 7b994bf1cf10a2b9c24f333046adbd78a14a5a969d1c235cb23ac93af51d1fe6a01304b61983b00bea9eb4c772bf6c9439f95d40d1db0f09c10d141bbe068cf2
+DIST microsoft.aspnetcore.app.ref.7.0.5.nupkg 3555506 BLAKE2B 6cc7ea23b65e6416f8394af50fca31803c760a4ecef080c64fc2fb0d938161a45707497d66147b2ce4398ca3b0e1796d33e84b852d4e5c1b8db3218b04932218 SHA512 1f7952a5ea05cd8c68b215a8025c11ee97639e4f523943b7d32256390184ab9cac81598965da76ec5a3fc1af1c3077b440b7f198bf483badb409312d00cd0e80
+DIST microsoft.aspnetcore.app.runtime.linux-arm.3.1.32.nupkg 9422779 BLAKE2B 1fc5426e790842ad03ee9dadd62447c59cbb6cc462acfda2d3688e75c68581f478a69a2f5b3b2648b17e8a637f89f7fc45b0ef09423d8a3ae8bc8dfa4870b5ce SHA512 e78723244e58607f2eec74a0103825a730405397611ca4621cd07f47f109980698e4e595218c6239e181821f670dd12d5ffc36c9fdecb2fe72c2b95778642d62
+DIST microsoft.aspnetcore.app.runtime.linux-arm.6.0.12.nupkg 10095058 BLAKE2B abd9ac8ed867b2e2e827e8c80dd0d8303262daf9076e80892caac268cc54656982a0b3ad67877e8a7c845ec3f6638f3122a25340609d5a34580de03be23c0f9c SHA512 da79851f855740ae1a54b1a8efecfc7e47ba77af73ba347d4ffb29c5a73f69450f655b24c0f608c3e2acec59c532953cd40f9e5d04951a1fdcb6169947825eb7
+DIST microsoft.aspnetcore.app.runtime.linux-arm.6.0.16.nupkg 10095817 BLAKE2B 939b1f0008af535aede118ee5e4559e3fcafdc39c392f41f80ed0200420495137d3d6049fd305c1baed4c605c1ead4a7adb9a629f4c242b8dd3363517c9bb23b SHA512 40dfef2423b5a8cd8ec6ba97bc2e6e6e121664809499540f9f77b4766f49655990056b546d8ff1027dcec84007a4c8144cf7a50de0722be65d61aeec09fe1bb5
+DIST microsoft.aspnetcore.app.runtime.linux-arm.7.0.5.nupkg 10806144 BLAKE2B c2305cde423b51359ca4ecaec6925ff4afd378b992d775ee89598543da4ae530d5ce533e22cddebded18509653e886b97d33269e8d2bb79ad81ba2e79f895212 SHA512 2ba63d7eea0758fc109f947e687e6265089c4c7a6f3dc44cee269139cd5171e027125afacf5bc9d21c63292b9419d776b513149547efeb6acbb6c31f37ededc3
+DIST microsoft.aspnetcore.app.runtime.linux-arm64.3.1.32.nupkg 8938556 BLAKE2B 16dca004bfe9741ab542e3ac1155a587750ebf6d128ac981e60f190ce2375891dd50fb5c186f50aadd9b67690477e5de41215661fc2d8b215f1bb4664de11770 SHA512 0a0cdcdc1da005ac18615d60d45544560d24f61a2dc062f748f678a6d19e82cd10ea53a822b2c1ee3f956fdf694c1995b37350b39209795cc8693bc9fa0d0eaf
+DIST microsoft.aspnetcore.app.runtime.linux-arm64.6.0.12.nupkg 9864158 BLAKE2B 1000452879b7efdd7d47927f61122c42873a3c320652a592e754b8cfdbd13b608c5fa63e3634b7384da26560ee016ff005923da81978e1b23373e40f951c8bfc SHA512 4ffba811d15677c4ef034b85129ec5cf3f3207b57ef32c17c1a0bcf0b290effbb85fedd3d3958a333ef4b876df0d8206bcf1d1a1c5b0bc356cba22b6ad29976f
+DIST microsoft.aspnetcore.app.runtime.linux-arm64.6.0.16.nupkg 9864411 BLAKE2B b3d9ab200b3186b2295e6e0c653cb326789c890cfb076c3f3ea281e8df771e82051a37043473db4139c94784563069a8d2017ba94411464e9510fa324b41d88b SHA512 41c61b076e3c700ccbcd53be66682f0321eba8a71fc376ce4d766074de764e0ee7d42f1b62d6ef09e5d9545569bf21960f772d2cc0d6d1e3f8eba15d897240fe
+DIST microsoft.aspnetcore.app.runtime.linux-arm64.7.0.5.nupkg 10608885 BLAKE2B 26b47d72cdaacc31deb47657ef77a56274d23f98186a998541db19efb9ef4505eec605dbd54f3daa36153d640d0d584807da32be09498766e79aa1721f156521 SHA512 ee24fd027ee33f3d2fb4f571d141da02b66b994dec40c7ae1c485a85adb9a442a04b9590a495ae2fbd61c334cb10d21a633f6937babc6ca903a88cf3e379ba47
+DIST microsoft.aspnetcore.app.runtime.linux-musl-arm.6.0.12.nupkg 10096432 BLAKE2B 4deb9e75af26fe06de2688c14c4ff24f75c8338528c3726e5f6aaad337c03d7a5ffae7438620538a8741304067d1baaaeb9d6a6bec2034ff08d9a098db77e060 SHA512 6621aa068ccbb9bc31622bc9d7a8abd682aac58bdd029fcca6a4e7cc39eca976e53454b25a3d84b80fae29173f3b5f7a1dc9d36be56bd74371caf9ed0d030bd4
+DIST microsoft.aspnetcore.app.runtime.linux-musl-arm.6.0.16.nupkg 10097181 BLAKE2B 1dff7f89523aeac732feb5cb26756ca839efc0d54fd9b8fcb6bdd522c3b61ca63a7a098650be51a804b322cf684e6eb4a579154cc106602bcefe9c8320ff68c3 SHA512 b2db9ad634bbe8074908aff9953bf71c1e224d38d89b7cd1bf23321179f58ddd680d3ffbc44bcacf9aafe74482cffeadece7e408db88389384940242b87f292f
+DIST microsoft.aspnetcore.app.runtime.linux-musl-arm.7.0.5.nupkg 10807297 BLAKE2B c9d5de17d1a1940d808f927637e9f5a3e7fdbfb12060ee4afc0dc77cfdb1ebb5069c4231eac33c1b300d790bc4bbf79d7d75372146e4ac2285b782c1b0def57b SHA512 96720fbc38cc26c33ee71b926b5dbac7822a38291c1f9ae9f4db8aadab2b90447a64797772fc4a7a50acc82702b7a16839a89164438098be09a37605fba1050b
+DIST microsoft.aspnetcore.app.runtime.linux-musl-arm64.3.1.32.nupkg 8940010 BLAKE2B ff49b04ca5036d1217531486db112f21ab4e8654554b8a41c1f307259452adcd400fe28c52b6da0368fcb39f0c41a6081530c345665233dc3108473f66fd2723 SHA512 2742db3abbd15ff4090be5d23ccfefe2fe1bff00c973c50a63d93c691ee639893a31fce44aec1ce49cfdc89ce5f4b098b836f785662e613640fa8f0eaa764d66
+DIST microsoft.aspnetcore.app.runtime.linux-musl-arm64.6.0.12.nupkg 9865493 BLAKE2B 870083c92ecb0e88b34cd90f63dd7a1c9e12231f7d3ba22224226dab855ccfc52b1974633a77e3cb51f7ccca3323b98a7afb49419d8c1d506b30be34896c783b SHA512 7f0b42b3c0e24be7d43eff53d42ced72f2c46e298116dbff974d36cc4282bce903e00b2844348d54902184b1764cea3fdb9118703f7691b4c9ed4a3e92b6d4d9
+DIST microsoft.aspnetcore.app.runtime.linux-musl-arm64.6.0.16.nupkg 9865809 BLAKE2B db8d5ac28e6eeb69b1e535d95cdd941e3f35e97b7332ab6df25918256aa6bd8443cd81e491a9f5787a232ee8f64892be907e8c3c234267e6863218ea72c2ffad SHA512 51b9cbfe8d42aa1fdb01e839806715dcd60a5d3c738970589750fc22a9fa7b969c2de8a9837071ed6ef632dd671b0a08ae2621ca8aeed062ce67ca5c0bc34151
+DIST microsoft.aspnetcore.app.runtime.linux-musl-arm64.7.0.5.nupkg 10611724 BLAKE2B ee569efa4e8d2ff201d6bc5322ba88f39f3a11ba809720420b67ca7a97a42358b9869202a10d4c92b92b61043757bf18e8ef7b163756f933de1a76f30f1cb087 SHA512 b912293ab6cec69764b74ebaa02adc659cbb8712084e38ea97a7e57c92c8161b1a28db19dbb6d401bbfe9240bda82a55d8cb6609f543094032cf57ab4d106913
+DIST microsoft.aspnetcore.app.runtime.linux-musl-x64.3.1.32.nupkg 8916920 BLAKE2B a2ccc108057dcbf234e3f6f58b79952a0f8071da4ed888475708b7eeb7a0beb836c9ab4cd224a5c58cea84b551afea26c4a103198b0ca020acadcf32aad3e988 SHA512 0a20ca5f5e956efe1fcbb2371f23e6ece2b2873eafeb589d85a0c4af5916d11f99182b15daf4cd0bceb83b36e8bc12f43e67dbfea6102bb2f2e24e45b2255f1f
+DIST microsoft.aspnetcore.app.runtime.linux-musl-x64.6.0.12.nupkg 10217939 BLAKE2B dfc065862323a4fb9fdf6aebc5af71153a183de07a631f22af23e04d5c34aa2e0360745cc945bb6d7572f066e2a694629f32cc8f41615546a212781d51433867 SHA512 00e70cceb464b1863ef5383b7a804c3c44d312f201fd59d5e2c97fb1374e1e43f0dd2b02d99d7d2e3591dc3dd28665b14b766d1101cf74b1aaa04a4d692078c7
+DIST microsoft.aspnetcore.app.runtime.linux-musl-x64.6.0.16.nupkg 10218867 BLAKE2B 88b25f5528a4cd4422f8bf39f6980dbd6c8faa1a4f320fbb9e72759556c7174b6b7d7c5be367b5e51bbd0ee28031d1c1c8fc2174188fa44878365d115600f91c SHA512 dc61782cf95f0ba3dda2109a66f61886d90f061772706be5f5f338617aa9fe410923eed6fb1243763ee0c6f3397b59052d1a5da68979a8bbc228b1485147127d
+DIST microsoft.aspnetcore.app.runtime.linux-musl-x64.7.0.5.nupkg 10864992 BLAKE2B 1255fd0b4d928c755d0e3caff28dc61ac801514c81c8e929a24c8913afb876bf13b1d5b26634eb950460b45a70abac3042321f8edb0781eab04845bc05d577c9 SHA512 ef48ebf80a4b2e356b358d40341b9e2ab087fe8e2743d611a2d9748d3d25dc1c318d29c0e7b9df805e70799ea3fd4bd81aef1194908d143a0436929ac2c4a794
+DIST microsoft.aspnetcore.app.runtime.linux-x64.3.1.32.nupkg 8916775 BLAKE2B cb894741f37b0b11dc0fac0f3b0f9dc333ca9b1cb3c2805ee12aecef51f57063da090a39882c4ba6b9f62a3a63ffbc778b95207e09d1bc112c249d87f2373dea SHA512 a5cff4b243f3a23bca9cc32052e7a8f1a1f099d7c5ee82eb7266ed49c4838b7793e8c7a3bf0cf3055a7ade581cb0633e3952f2a237fbf6204089c77f6fbca40b
+DIST microsoft.aspnetcore.app.runtime.linux-x64.6.0.12.nupkg 10216624 BLAKE2B 0eef3cfce00db73c90dd4690e6e93e7085364b3c3365e91a4e02e3241a7a3cb10a4e246e7616378aee2b7d6c0546c937e5e9ce96877e37a261c0dc5ec20e2c53 SHA512 f3adb56d2e0ed4427607f409665c1fc3ab43d6e97ba1897d8f43bba949bad178097121256841986c5cbae71a232d2b6e761f29ac833e082889e86703ebc1a69e
+DIST microsoft.aspnetcore.app.runtime.linux-x64.6.0.16.nupkg 10217501 BLAKE2B d8a5f82f0fba2ae4d10b9cd6d0c31e52d6d43b5f99141ad452055c78699140a6018161fc049c22e5272203ba65074dc884a99117a9a2aba2c6ada2f1ef0872e1 SHA512 bfe54e8b21796517b08fdc2cd01c5b5340a7626627dfff3aa5c74fe9f7bb97a3c35b7562bd1c670a13e9cb32438e4e0445062d31c9747c04f5d38e740f2c4271
+DIST microsoft.aspnetcore.app.runtime.linux-x64.7.0.5.nupkg 10862693 BLAKE2B 211520fb7e9bd9fcfd1471c2e138f97a322ab0b846f3eafae10a46742230aba7d5ccec7c411d63db79666409b6ad65cb87256790b760aadf108f79dce7dcfc9c SHA512 edf2e134549550574dc753a075e359871be6c0c881527a6242394171958617c345ddaa8c5fab5b1d4b180e384842960e37e3998459ee642189c7b6c68aa6d7d9
+DIST microsoft.netcore.app.host.linux-arm.3.1.32.nupkg 103102 BLAKE2B fa2f26def2343aaf04b37aedcb1284f3d39b7d5b8704248fe4a7b2c913166a49b65f4997cdadbc84c359b9ac9937bca852bd960fb1a7447cd4b9e3cba38bdcba SHA512 49c46bbfe6d9ff02501aea9d35119cbdd0aa5d543e7e504eb350c6e04af78a64b7fb8992e1df55eb7a8696ec29169bf6f9f97bdbb2bcbdad0ed6918ff5fbb17e
+DIST microsoft.netcore.app.host.linux-arm.6.0.12.nupkg 4047106 BLAKE2B 0f448deee114be6331c09f5cb7b2aea66a17592e133baf720d7fbd08a1c48eb89d6ae75eda312a7e85213745bbec1c0f44055523377f9d4d2583fd6b665c21a2 SHA512 95f2bef347fa4e091953a81b982d5751323d1f9ac648a11d0afe9a1b2e9d53315ca05f47da1e67d245a021a518d5a89270c3581e8d9c05a437e6b53416eb94bd
+DIST microsoft.netcore.app.host.linux-arm.6.0.16.nupkg 4047648 BLAKE2B 3b45b6df181435568af84217bfc7630128fa332796a27257f97f62589f72054430694fa275f3915cdc86c53bd44440529a49c2d3a5e5d903b1bee477743fe6e7 SHA512 f8c73d0bb36531333662d2c907cf2e44a2da6bd546e28e7be30db6235d2f5a71670625d53229405e48f3998672f72b029bcee03024818cb29ac933a13b6cc0e1
+DIST microsoft.netcore.app.host.linux-arm.7.0.5.nupkg 4052494 BLAKE2B 554279c897b56c84d21ce18ce6fbaeca98ecdd72424b57ea68f9844ff618b2c74e7d4e9d458057d2952419d6c62bf3d336edd24b86ac568c8156f488303422d5 SHA512 e6164be4ae1c73af4f801f8da328d054c561a9f1ccd1d912f4600e36b960c06e686a49bc3903d6850d235bc785b6fe820003ccfdc3680f9ef99bcc807d7c2114
+DIST microsoft.netcore.app.host.linux-arm64.3.1.32.nupkg 95676 BLAKE2B c9bad9a8f43924b1ca0bfdad6f1499ab584bdf3f39d596c09295fa6faf676be70832518736b8ba7a3dbd91b1c5d2cb3302832b1bc1003fc408f81c01cfde6d4b SHA512 907d7e4c55094d03a8501ac41701d836bc9fdbc38ee09177c5c3936d437ff16192dcd5b6f680aac91f3c4582843a5cbb4138661ae6bf3cd77c2298c2d74bd168
+DIST microsoft.netcore.app.host.linux-arm64.6.0.12.nupkg 4518168 BLAKE2B 85e96297f5c6513588574713e6a9ac8472b459d703300efa70f5ca159a77ed421534e0423b21a30537e8f33f5b060347dc5b4582fe1b9920095a18c8b0fe8961 SHA512 3d5a5bd45a46333f4e7bb296578cfa3b7b054b3770ea64d1ee84ead67086b464f2d0d2e7609263ee8faa5b4b4a145844123dc2c74ffe9d5d26843fa8e21a7614
+DIST microsoft.netcore.app.host.linux-arm64.6.0.16.nupkg 4518723 BLAKE2B a4db8b382293f10666eea023ba7125605e81b9dd0ad96813c01a568acd486b4226257632f9bb702920d0aebe5a1087e13c31c6598c87d7bfb936a6a939113775 SHA512 a5af95e905dc32eb887421441e028fa3de04adf4fec0dd7ed80f5e599cc356b22a0f3efaa8f59b8940b977b04ea80f3bfae77d55cbb37ec8b7714f4187aa8356
+DIST microsoft.netcore.app.host.linux-arm64.7.0.5.nupkg 4601263 BLAKE2B e86742f804e46705916af1ebcf911f248627f464ef54fc889eee14bc1e7b69bdae0dbb70235d2a2e084c51a11daed6aefb9c0caf5a1a8bf532674de57f3900c2 SHA512 23c3bc8a852aafbc30a02fa08dd44a9da135a4120df6c53bfd90bcd35372f69007c57e7e2fa6977b2dce4d0475cec214ba5ff0db3cc591511b1e62c125c09a29
+DIST microsoft.netcore.app.host.linux-musl-arm.6.0.12.nupkg 4053227 BLAKE2B 614938cda8078dacf57dfa3e7d03744c64cc616139f5bf8a5c826fca2bb5b93804f705ec9fe0a70329a894d61cddd50546e7fd38c444d52911f7fad25e8cbb21 SHA512 159e6b782f09c0a0d9b432543c842284dbaa5390b6d72406f9784fa2247f12caf76c046188f93937eaf0b2b0669cfba3b6b61177b91d59be30cf35e029876fc1
+DIST microsoft.netcore.app.host.linux-musl-arm.6.0.16.nupkg 4054180 BLAKE2B 782d7ff1e495c61fb2f13eedd2010bbd6f664cb478608b7d96b32927d1059a0d7f28976fc9cc53aec18f2b3adb10384420b4de0093213d668a2c63c746e96cd1 SHA512 37523f832b09db894085351fa784e1b05a89b79d59c7288b84e1aa54e53988f07598dd05f86174b24d447b927fdd6209bfde593011f623cd072af01f2e3d95af
+DIST microsoft.netcore.app.host.linux-musl-arm.7.0.5.nupkg 4057566 BLAKE2B 9fbe66205be4159b937f2c33d8b47fbba07b0b8d9265db057c06a2d25bffff2970f9ec871256c002895d7f248a0649b155eed133456171d397b24dd00d620cf1 SHA512 12ef936c3e79e649ecf23d8dd74b16e6714700e0899f2c21806e1a6135501a9d12de070ba399d573ec68c0a37e8d24e412a177a9a966d3023dac29abe4223ee6
+DIST microsoft.netcore.app.host.linux-musl-arm64.3.1.32.nupkg 98237 BLAKE2B bcef64f25d90180af9c03113d29fe7b4ef7a6b75f141bda9492dfd5f7d1b8f2ad47c2b6bf4ff7b9b2350a13f269072c7ddb7540d046b7bcc0f398d0c5fb4f06b SHA512 f0c00426a015a4d494ff0d2a299147bddc1e35d70886dde0d0e7f7813115ab2474476a2f34709e9d249fa399004bc85f559d68c6211d4cd747aca9b0ab7bef44
+DIST microsoft.netcore.app.host.linux-musl-arm64.6.0.12.nupkg 4525186 BLAKE2B 00638f7aaea0407cf518488ff0d68c6efe6c956e7a702c39634d24f97669961aedf317e6528861d2894dd2842c349866005a29ccbd72ca869a8d99fd15beb582 SHA512 a6d67215d84489b6da8d436e7c9ddfffca8d2ac06811de96e26682225d03137290f9f1b368500d4a9c4f7c91bd214a50c11e9528d1e2b6bea809a8313e392854
+DIST microsoft.netcore.app.host.linux-musl-arm64.6.0.16.nupkg 4525681 BLAKE2B 4b545f4392a6f4d529e827fc0807fb21f2fd1ba5c1d68077faba45806b7af086331bbfc42ad4771ad596297920ba57be5acc2d199d287dbe12a64719516fcdbd SHA512 aee2d0892c8aa830d29489d43ed214a41f3358d222d5d6e605fcae0e14a3f07eb6ac3749f839c51fc6150e4e08017900e06029ba25696eed9daa1ecc874a6348
+DIST microsoft.netcore.app.host.linux-musl-arm64.7.0.5.nupkg 4609393 BLAKE2B 5f480728cfb5b787943ab4d08009c143364dee3bd082708992d83ea2284e59b9a6d7587686edaf90604180292fa7e47d386cee85cdf975022a6071e7a592e358 SHA512 86c2d63d5241ecb212de69351914331428a1b4ae851db3b01b843794d31a8bfcfdd72df120c157fb9730466cfe74a870965ade9950df2b2475a8ec7e651b125b
+DIST microsoft.netcore.app.host.linux-musl-x64.3.1.32.nupkg 100602 BLAKE2B 7db8687899a5a8e752661f24f074ade915b054348261fe371b3459e71a28f5c982ded381b7197fea4824d0f3f75d69704053f65cd84ee13da04142c52557fcae SHA512 ba0945be6b977ab5836cd66ec31ed926fbdb94aacc80c61c0abeabfae9fadb27e4871e0e8e3cae6807458d2a38d2aa5a951e5050c96a33ee7104445cc38f8639
+DIST microsoft.netcore.app.host.linux-musl-x64.6.0.12.nupkg 4910982 BLAKE2B d908ac255ceddfdc107b1b47a3025282ffbc268c27bea83b67d07fa39d47707d5b72741ef24a2fd99c4de95bc87cc6a468d704818a30049973a186334d25e9e4 SHA512 1c243b63594537b697aafea4ff612c28ef5bfa44c68ed36608830a9b32c63f489681535316ad5b5535405ef8c8bc9a70cc5c98697fbcd22ba2df03f7aa92bead
+DIST microsoft.netcore.app.host.linux-musl-x64.6.0.16.nupkg 4911436 BLAKE2B 3608c26678169abc98517346afbf323300a53f66c42945add423edf441ec944d730082063612a1dfec0e04b3d8bc3a95ba5018a5b159f1a9c1543965cc07157f SHA512 846253d3deba80f35881d6ea57de6795e9a7ce6236db12e8abf2a2600310fd9e41c9a11df7f5418ef36abb1e81b0347c82a8863899db1d8b67fd9fef6084cfed
+DIST microsoft.netcore.app.host.linux-musl-x64.7.0.5.nupkg 4932469 BLAKE2B 332beeb60cb08937f622294448dbc1e45997ebb00b39c801e0253d0f19a36cff90cfebb5df9345a7ce6f0566e8cf8bd0a74b2ae7ed8464084a4408fbec125da7 SHA512 c5164627a1e4c593f62bcd8043017d0ed22c6ab512ba2bf35ae57c6644eecd248a81763dc6c6a1d55dd908706103e4d19d19b9eba461ab509ec881f9b7239ec3
+DIST microsoft.netcore.app.host.linux-x64.3.1.32.nupkg 98908 BLAKE2B 744ea4bf52b5eee4dc2423f051f85fb880f5d9833758bb25a86a585179398823f79d5308f9ba7c2fa7eb65a058148866e0cccaf63e8a30b88ef79f69f7df962f SHA512 e1ebb83d6c0d9fcbf575dbfaf9f0196770d56b33bfb80b5f45a94c5505815738a50742d966827d3cbb8c892c879f4018f80442a872687d6487c528967c2d72cb
+DIST microsoft.netcore.app.host.linux-x64.6.0.12.nupkg 5005900 BLAKE2B 858561598d53c03af106af8bc4ea6e069b716de5717801d66ddd051d61975fd5b98e9c0f0bda3fb3a4482e18453ebb9543d5584024fc1027913417874539f6b7 SHA512 9bb143b8426b219eb6f9ec2bf9c2b6eb3bfd85d00d18d365112189817a16f5c8ad5cb0aa077413dccf805b4c2dafd070ad588ac84658c9efbc25772570bc7c26
+DIST microsoft.netcore.app.host.linux-x64.6.0.16.nupkg 5006764 BLAKE2B ff5c4bc39aea32d07d06d229417d4059cc4e383efe53839f0278afa0d6ded34b1b609a4da68dd5e074f7f14c815ccd33143806a8ce8327655b330ef449241d77 SHA512 dcf97632028481ee7bfee9cf35864a6006c9d97b8e767931e4ef7367495c859dc21aaf6398ffb7fe5a012a5f012cace6ac846d0d22ea251e3aa001f51e643300
+DIST microsoft.netcore.app.host.linux-x64.7.0.5.nupkg 5035907 BLAKE2B 271ef42314f63ad0f869e5536395aab71b5bc7a4abba3e9438e9855ce5d02760b7c58233fd81ef5e709efa507a3d17095718cab9c60bb680ba3b90449940549b SHA512 ba915f5e0229efdb906ffa8fa292c761b2985b2d853c95935d539fd3dd63f25e28097cc67b8e7e4d3c54e419b7321a50e635716cf3b2f2349f8cc189223f490d
+DIST microsoft.netcore.app.ref.3.1.0.nupkg 3892619 BLAKE2B 6d2cd21096726a0fa0b48199544ac4427dcfd502bcf86661415d51d23ad06e248a21854507b37c00dd50e716989327e90233fa5c1574e21e8279bd893c2aa139 SHA512 7135e5420cf1671e57b00215c3cb5c75886f3e9712700def1b7010fd27257aa327df648c042210a9eb681345f412a3d28d6dd2fa1c3fa51214962d26b23889f4
+DIST microsoft.netcore.app.ref.6.0.12.nupkg 4764711 BLAKE2B c552af26f0c31091b928d355a5da626c2978407c71959c1afd4efb544c62dc6e9005b4211a44609dd3c5640b25c7cf91a124c45561ce45079866e532a1c6f9fe SHA512 acd27a7f22d3beb3fe4a1a653396c60abac6bd2eddf4f53e6c94c1a1210d32668f931c38f7dd15d737532e4465f391b1126edb6cb93f11197d7a3ec283042b2e
+DIST microsoft.netcore.app.ref.6.0.16.nupkg 4763850 BLAKE2B 84e544ad861f9c60945d5da71a18b7fbf6a92849bdd0d198148538ea006e5ba15d39804952e906ea95eb4bb9dc0ac1e06e4606f7ef90a4c04c26463b5e244c2f SHA512 62782cccfc95ae35d8bf1b47ed7bc61191bf221618dd3dd616b5d06f4f8abcad37ca7f1b34984094c9bfd12b8cac00d82fb2958fbd53f94124c241eb4af90f98
+DIST microsoft.netcore.app.ref.7.0.5.nupkg 5915500 BLAKE2B f99802467609db912bedf8ada9c0a6fdc8b39c2e93c7173e9532d022629bf86c1dfb5d91ec79bdf856b6ede1b79c6c50d944267c37281b27c70f0d9e23a7efbb SHA512 2710e231ef0c1f4c1847ce435da67719223413443ee0c1ca68adb45c9f024e848aa187442b5cce63140e59aed46111b9d5b80e673fa391dc5c95e49338eb6b7c
+DIST microsoft.netcore.app.runtime.linux-arm.3.1.32.nupkg 37758463 BLAKE2B c9104f3641882b35bc7f4b7e9bdabe0e7a49cdedc0d3a9499dc984d91bdfb04605fc73b5f35d8875cd3faa3cc74b3c5bab22bc9850d90fab35809288ff6f2274 SHA512 ed3326616b24182decd1d476459dde6ee9c864ca4dae6e9da3d395f414432b2f695b54ed37e44688fea80455d98a081a8eb3f7bbe0a68a5442369f03a72e02f6
+DIST microsoft.netcore.app.runtime.linux-arm.6.0.12.nupkg 33359309 BLAKE2B bca1c7a20ac5867ac977892b204b8affe4e63d2330a3cf177e28393c485d60f1ffdbf79921dcc41d30f06610a0697376dcbc0735e50d9a4fe8d1c5d0ac4daa62 SHA512 a078455c60444563deb3882d289c540087dfd90fffabe559e4949ffc4ede49cb7d91742fc687b7c3683482b42d9162ec1a645e973a8002d0d2877c3b81a2956d
+DIST microsoft.netcore.app.runtime.linux-arm.6.0.16.nupkg 33369636 BLAKE2B 7d0b893644515313e8fb3b4893e004d79c07938fd70e2ab7a3661440a6a7cb8ddb4d9d7bb9e0eea815b6913be146b3c6a2e32e7ae1d54bf8396d85bdc8685821 SHA512 a260b56736b04b191b99ab19222650aff493061da8a98aaedb6fb3ea665cfd972cf937546c387b74885f1f877dff7d5f1064ce9f0a4be58953f94d2478fdbdde
+DIST microsoft.netcore.app.runtime.linux-arm.7.0.5.nupkg 32438987 BLAKE2B 996cf70b6d0b46fea8a08e76f40e45c73f22a8840ac325444149a6471c0349f4ba97a7e16bd7d523b12f27b37a8e15931cb66e1bd09b1f4f160a0851ae5ab2f3 SHA512 b5190ef75194ab0eb468490fb66aa31225cb982846bafcfe24120e9e937118d59f6d133685a41bd94129b0646264044c3fbf375ed6111a1719fd298584c811ba
+DIST microsoft.netcore.app.runtime.linux-arm64.3.1.32.nupkg 36264275 BLAKE2B 691f93cba8790dac3084f951e71958cd18ebfc0ba5aba6a523b020abda0370dd51ab368f295552634c9269ee3377b6d637e7d0995989586ba0d7c26547754ec8 SHA512 df404caaeb53ab741c584cb3e3189c568145043ce38d854518e02b817c56be34fab1804f3bebc92577d658f75ac246162d5bbe6ae3c1d26987f7e430a5e2f4b8
+DIST microsoft.netcore.app.runtime.linux-arm64.6.0.12.nupkg 33179994 BLAKE2B 4ba884a2968f94390bfa8397dcd6884b31427818bcbc87c4edb5d531d5a349198560cb635f9b3898bc5818aaabdeea92838d82912f8e1cb9c87e41d044c7bf80 SHA512 cdf0581b8ece1f01d97567a8de8e691555ea019e6c5a2154cc9e32c9373cd07897204c403892233a9d4e02a03222fb9ca5ed35062e3cbc5f2f2d50d9cb8cfcfb
+DIST microsoft.netcore.app.runtime.linux-arm64.6.0.16.nupkg 33190706 BLAKE2B 8a1d17c8cfc771e9494c5b645f80b86ef149f01ed56559ea5d6782af28deb2e185d6ed784d9ebaf1a2e24917a687a6134febcb565340c3211f3cbe48fc7813f7 SHA512 925342e71f180adc4824c8b9e26aaed0b5c7167476c1d326389215f32aff70f204546ec52cfd0560cfe5235ffe16d7be35fdf0ca86de87fa6b64149fef62227e
+DIST microsoft.netcore.app.runtime.linux-arm64.7.0.5.nupkg 32485155 BLAKE2B 7c9e48036d00ff39cfb57ec389ccb4f9b7a656247a3316c69135fa4d62a3f14f0560da02d25483eda0bf838989c416d4c241a5d144f523cb499032bb676f5c56 SHA512 68333bc5e936477c387696245f4131c6b14f392f34d0acd4c7a938de1518e7243cd7d65f82d9394c02a2e0198d39d436dff4b0872e6b6580b81c8d6d128ea18b
+DIST microsoft.netcore.app.runtime.linux-musl-arm.6.0.12.nupkg 33383910 BLAKE2B 234d6886fe8ea0de25d0325991973976729e4d9a09eafc286ed50c7d07eee7a61842ba5ce3d3ca4a44c0c18c3ecd5ad424544dfcc77ae1d1905e2e890cbab4f4 SHA512 fdc44a0269189df6c4e0fb233ce9395f4ee4164b3a3c6e7853651c10a387db4eddec210c340b17c08a5083a6df6b9d09d2c0d79167dd2f6acfbb939cccb35728
+DIST microsoft.netcore.app.runtime.linux-musl-arm.6.0.16.nupkg 33395418 BLAKE2B 89c77458a9944eba5d4ffc2fb80255f1871281ede6baf317e15a84ae623f2f93bb8d19dbc3c093fe36bd17dc91bf94d4f2855ad744fb6f4e96f98c13b9e0cc68 SHA512 8d0aed8369154eff7c5a3ff80dadf31ce03590a80335a216db7bd8f986abbe3d341b71fe5902d3217d37015ec15606cfe34069a118c8600bae02801b1c783442
+DIST microsoft.netcore.app.runtime.linux-musl-arm.7.0.5.nupkg 32447520 BLAKE2B 6c74ef3bbe0cd026f45b8f95ca67f877d7cee3a83d08635698b5b1ecf4cf1f432cc7d09e7a692343acf3e92872db36c280680492774b109986e0a6809cc9b7bf SHA512 b59ca64f34455fb34dda953ed960fbc27bb237b0cef1eab6c08abf951f4e71cddd1e209eed2a5a0af0d2507bfe02243b3e2614993a9490259619b4ae70cf1499
+DIST microsoft.netcore.app.runtime.linux-musl-arm64.3.1.32.nupkg 36435184 BLAKE2B 1b43e07f1e2e7c5c1e27d8b3da9db6fd97fe9cdc6b19c5b25fdf023e73d1c9c5fef545f4e174ef64053295bc532dea7ef0e9064d5d8d452f90ec141dee621475 SHA512 e57bcd76386a9e9dc7c7bae66970d6d467552395777f75573909673406789c3665423348115466c5f6c0c2513f5e69d3870b2574a6b5ea451291de3236024443
+DIST microsoft.netcore.app.runtime.linux-musl-arm64.6.0.12.nupkg 33196731 BLAKE2B 7ac6b3c0502b3dc6b168d5f3d016f1293b5e4df150eb3da044e6cb3c0394b2246c378ba94fbea61e6358fb0c1085cbbc446d3d4b921f3b5f7c64e14371b9b60b SHA512 6eebc28b2e4398bb2ace700098e510eb17bc06c3af11d3d4d6ecc2eb91fb474de6fb4f3ef1a91ce4433c705ce1140ce33edaf08787b42d06ce384473d091133c
+DIST microsoft.netcore.app.runtime.linux-musl-arm64.6.0.16.nupkg 33207154 BLAKE2B 1521b64303b5b377b33a445e9a08b17c616e2ac9f95ee2e8f68d93b5e1448d11f2d6bf65ccaaacc1f19c92bd82353a0c4429ce2795e88f94b282745bfaafa0e8 SHA512 b4d2cea96e93d812d745aa2016321da5f8e7311d1a5d2533aae235818c4c194f71631b934284b17850576c5f72911fb00aef2982e91967bc0bb258eb705ad155
+DIST microsoft.netcore.app.runtime.linux-musl-arm64.7.0.5.nupkg 32487083 BLAKE2B 9e068659f1b78cee6d4469c455c450b734c91e3d2c4a7473717c9d499c41e7005455677fe4c83cefcb42befbd05704728d2cc1ffaa1840a58d5af1668e0a6a8d SHA512 29e2ed9e5687ccaf368cd96425f619a553d524f8a9f99b53f5aeb11a2df178d3f21fc0752b4c4240483c6a84a5574c2f296b86e596a66e6c87834a3744ca8345
+DIST microsoft.netcore.app.runtime.linux-musl-x64.3.1.32.nupkg 33873328 BLAKE2B b64108e5bc193608adbb98662982d64480354c7295d82e97290a643b9f6445aa3799ecfd5f1fe7b1bee83248bec88bf43c71f3dc642fa9b1672bb594d6369072 SHA512 8e07a87ed703ab692ce536ffda123bd0a2733d89252fd71398f2124aae8cae23d538586d66c6c9c31b8eaedf3a25a9dfa254ee8d77bdf245db657bd4b693e69f
+DIST microsoft.netcore.app.runtime.linux-musl-x64.6.0.12.nupkg 32804692 BLAKE2B ff3768e4ed7104757d5df619ca261a307ceaa4e01e34ecde1e8ada8ce8c319506a1f065c6debf95771dc0d3c35143292a9a63d7bf8097fd8e9828a7952c7d30d SHA512 a08841757df95e784e368d4c496a4a16c0ccc39cd175dc6b892fe4cd44c59592499383cc36b818241ecacf8647a296de2045bcccf8f361498a9828e7fbb85b2b
+DIST microsoft.netcore.app.runtime.linux-musl-x64.6.0.16.nupkg 32813762 BLAKE2B 3aff826e4991420104bd2b23ad65783e55e88415e80ff3b5d9fa836e65f67fb6fc54ff7cf9c102731cca03258d0d14354eab4e8aa30a75376a633d7a1f594a73 SHA512 814ae8a46e9c8d252f60bd1e67e87c08c3a8991c1e6c9fdb97b1856818be4b265b9e7ad9caab83d74c8fce6d37efb0d7ee741adfceb711f4ac90f6064f5352e8
+DIST microsoft.netcore.app.runtime.linux-musl-x64.7.0.5.nupkg 33777492 BLAKE2B bc37edf5b9a1c1ea0bf2b1be7a5e4ceea247ed302b18d890337dadaa6387eb47829d8519aa5ee79d0db4c3fefbd7eed7a982fddb066d0ecc37937e6e04efb981 SHA512 60b7f39ea4e655f9429bf786dddf377d218d9b88fa8579ff0a5851c781642e6502579ef3d2973250a0672a2dbb1710fba9ddcffdd488eaf7e94ad53bfc2af051
+DIST microsoft.netcore.app.runtime.linux-x64.3.1.32.nupkg 33393085 BLAKE2B 5d3cc8d71889d7b25af31b54b735dabd229a12748be8cd4ab8aeef81331faac358813f15dee70c65fae7f3a64fd1156cffedf96577826c0b7120fed53bfc18ca SHA512 4a1dec44a7028d0c22ed7f453db6f0cfcb45ca055ec162d48853b6fd59c2387e34657f5b8b1e676c4490c4ad22f2ecbb393b810f13531aa714bc9c4ef9b6b0e8
+DIST microsoft.netcore.app.runtime.linux-x64.6.0.12.nupkg 33224601 BLAKE2B eef5b6090c3839358f0644d6320c9ef2a73173ac1002043bb09b22256b6fe155c891ed16732916e9554e3423943f66b87b78bcf359a630f684af760edaeae28d SHA512 b08e107dd7bd74931caf8e576d8f41c3b5d471f438b54262eaae314828e8978b1e34178321075ca7a511100b964df2b4d2262d58e8b196a519ca0cdd41e19aa6
+DIST microsoft.netcore.app.runtime.linux-x64.6.0.16.nupkg 33233680 BLAKE2B 71597c75faf589d420c4884930106bbd73c253df862351f1fbce1dbf85c67ee21c8ba5fbc9a3bdc2a6e26f09695d6f5b89373b7ab95469a22d6b87416b8e2c10 SHA512 b1a2a1e397404f2f5abaf9299d5da50c10ad192e0dacd015b5ec8d7c65a960d29da91f221b6067e35cd22b0a88a70465ef08c93fb294c9b166d6ec47461c541b
+DIST microsoft.netcore.app.runtime.linux-x64.7.0.5.nupkg 34188538 BLAKE2B 5ddc52de91081a31d2a3cdcd8152b2deba21a59cd34ac71e5828e254bd714247d0682daa90e48726a4f737f3133d98e33585ea0b694dd2475dda68c8b95115b7 SHA512 3b27892f653aaa797fdef286ad57365dcb1a8ce403e0baa924f22b76f8a686a502024022d5c9d04548fba16e38ebc4395b732b9605b2a346b1cb050d7c52d53e
diff --git a/dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-3.1.32.ebuild b/dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-3.1.32.ebuild
new file mode 100644
index 0000000000..74a032e558
--- /dev/null
+++ b/dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-3.1.32.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DOTNET_COMPAT=$(ver_cut 1-2)
+NUGETS="
+microsoft.aspnetcore.app.ref@3.1.10
+microsoft.aspnetcore.app.runtime.linux-arm@${PV}
+microsoft.aspnetcore.app.runtime.linux-arm64@${PV}
+microsoft.aspnetcore.app.runtime.linux-musl-arm64@${PV}
+microsoft.aspnetcore.app.runtime.linux-musl-x64@${PV}
+microsoft.aspnetcore.app.runtime.linux-x64@${PV}
+microsoft.netcore.app.host.linux-arm@${PV}
+microsoft.netcore.app.host.linux-arm64@${PV}
+microsoft.netcore.app.host.linux-musl-arm64@${PV}
+microsoft.netcore.app.host.linux-musl-x64@${PV}
+microsoft.netcore.app.host.linux-x64@${PV}
+microsoft.netcore.app.ref@3.1.0
+microsoft.netcore.app.runtime.linux-arm@${PV}
+microsoft.netcore.app.runtime.linux-arm64@${PV}
+microsoft.netcore.app.runtime.linux-musl-arm64@${PV}
+microsoft.netcore.app.runtime.linux-musl-x64@${PV}
+microsoft.netcore.app.runtime.linux-x64@${PV}
+"
+
+inherit dotnet-pkg-base
+
+DESCRIPTION=".NET runtime nugets"
+HOMEPAGE="https://dotnet.microsoft.com/"
+SRC_URI="${NUGET_URIS}"
+S="${WORKDIR}"
+
+LICENSE="MIT"
+SLOT="${DOTNET_COMPAT}/${PV}"  # WARNING: Mixed NUGETS versions.
+KEYWORDS="~amd64"
+
+src_unpack() {
+	:
+}
+
+src_install() {
+	nuget_donuget "${DISTDIR}/microsoft.aspnetcore.app.ref.3.1.10.nupkg"
+	nuget_donuget "${DISTDIR}/microsoft.netcore.app.ref.3.1.0.nupkg"
+
+	local runtime=$(dotnet-pkg-base_get-runtime)
+	local -a nuget_namespaces=(
+		microsoft.aspnetcore.app.runtime
+		microsoft.netcore.app.host
+		microsoft.netcore.app.runtime
+	)
+	local nuget_namespace
+	for nuget_namespace in ${nuget_namespaces[@]} ; do
+		nuget_donuget "${DISTDIR}/${nuget_namespace}.${runtime}.${PV}.nupkg"
+	done
+}
diff --git a/dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-6.0.12.ebuild b/dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-6.0.12.ebuild
new file mode 100644
index 0000000000..86075dd503
--- /dev/null
+++ b/dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-6.0.12.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DOTNET_COMPAT=$(ver_cut 1-2)
+NUGETS="
+microsoft.aspnetcore.app.ref@${PV}
+microsoft.aspnetcore.app.runtime.linux-arm@${PV}
+microsoft.aspnetcore.app.runtime.linux-arm64@${PV}
+microsoft.aspnetcore.app.runtime.linux-musl-arm@${PV}
+microsoft.aspnetcore.app.runtime.linux-musl-arm64@${PV}
+microsoft.aspnetcore.app.runtime.linux-musl-x64@${PV}
+microsoft.aspnetcore.app.runtime.linux-x64@${PV}
+microsoft.netcore.app.host.linux-arm@${PV}
+microsoft.netcore.app.host.linux-arm64@${PV}
+microsoft.netcore.app.host.linux-musl-arm@${PV}
+microsoft.netcore.app.host.linux-musl-arm64@${PV}
+microsoft.netcore.app.host.linux-musl-x64@${PV}
+microsoft.netcore.app.host.linux-x64@${PV}
+microsoft.netcore.app.ref@${PV}
+microsoft.netcore.app.runtime.linux-arm@${PV}
+microsoft.netcore.app.runtime.linux-arm64@${PV}
+microsoft.netcore.app.runtime.linux-musl-arm@${PV}
+microsoft.netcore.app.runtime.linux-musl-arm64@${PV}
+microsoft.netcore.app.runtime.linux-musl-x64@${PV}
+microsoft.netcore.app.runtime.linux-x64@${PV}
+"
+
+inherit dotnet-pkg-base
+
+DESCRIPTION=".NET runtime nugets"
+HOMEPAGE="https://dotnet.microsoft.com/"
+SRC_URI="${NUGET_URIS}"
+S="${WORKDIR}"
+
+LICENSE="MIT"
+SLOT="${PV}/${PV}"
+KEYWORDS="~amd64"
+
+src_unpack() {
+	:
+}
+
+src_install() {
+	nuget_donuget "${DISTDIR}/microsoft.aspnetcore.app.ref.${PV}.nupkg"
+	nuget_donuget "${DISTDIR}/microsoft.netcore.app.ref.${PV}.nupkg"
+
+	local runtime=$(dotnet-pkg-base_get-runtime)
+	local -a nuget_namespaces=(
+		microsoft.aspnetcore.app.runtime
+		microsoft.netcore.app.host
+		microsoft.netcore.app.runtime
+	)
+	local nuget_namespace
+	for nuget_namespace in ${nuget_namespaces[@]} ; do
+		nuget_donuget "${DISTDIR}/${nuget_namespace}.${runtime}.${PV}.nupkg"
+	done
+}
diff --git a/dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-6.0.16.ebuild b/dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-6.0.16.ebuild
new file mode 100644
index 0000000000..86075dd503
--- /dev/null
+++ b/dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-6.0.16.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DOTNET_COMPAT=$(ver_cut 1-2)
+NUGETS="
+microsoft.aspnetcore.app.ref@${PV}
+microsoft.aspnetcore.app.runtime.linux-arm@${PV}
+microsoft.aspnetcore.app.runtime.linux-arm64@${PV}
+microsoft.aspnetcore.app.runtime.linux-musl-arm@${PV}
+microsoft.aspnetcore.app.runtime.linux-musl-arm64@${PV}
+microsoft.aspnetcore.app.runtime.linux-musl-x64@${PV}
+microsoft.aspnetcore.app.runtime.linux-x64@${PV}
+microsoft.netcore.app.host.linux-arm@${PV}
+microsoft.netcore.app.host.linux-arm64@${PV}
+microsoft.netcore.app.host.linux-musl-arm@${PV}
+microsoft.netcore.app.host.linux-musl-arm64@${PV}
+microsoft.netcore.app.host.linux-musl-x64@${PV}
+microsoft.netcore.app.host.linux-x64@${PV}
+microsoft.netcore.app.ref@${PV}
+microsoft.netcore.app.runtime.linux-arm@${PV}
+microsoft.netcore.app.runtime.linux-arm64@${PV}
+microsoft.netcore.app.runtime.linux-musl-arm@${PV}
+microsoft.netcore.app.runtime.linux-musl-arm64@${PV}
+microsoft.netcore.app.runtime.linux-musl-x64@${PV}
+microsoft.netcore.app.runtime.linux-x64@${PV}
+"
+
+inherit dotnet-pkg-base
+
+DESCRIPTION=".NET runtime nugets"
+HOMEPAGE="https://dotnet.microsoft.com/"
+SRC_URI="${NUGET_URIS}"
+S="${WORKDIR}"
+
+LICENSE="MIT"
+SLOT="${PV}/${PV}"
+KEYWORDS="~amd64"
+
+src_unpack() {
+	:
+}
+
+src_install() {
+	nuget_donuget "${DISTDIR}/microsoft.aspnetcore.app.ref.${PV}.nupkg"
+	nuget_donuget "${DISTDIR}/microsoft.netcore.app.ref.${PV}.nupkg"
+
+	local runtime=$(dotnet-pkg-base_get-runtime)
+	local -a nuget_namespaces=(
+		microsoft.aspnetcore.app.runtime
+		microsoft.netcore.app.host
+		microsoft.netcore.app.runtime
+	)
+	local nuget_namespace
+	for nuget_namespace in ${nuget_namespaces[@]} ; do
+		nuget_donuget "${DISTDIR}/${nuget_namespace}.${runtime}.${PV}.nupkg"
+	done
+}
diff --git a/dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-7.0.5.ebuild b/dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-7.0.5.ebuild
new file mode 100644
index 0000000000..86075dd503
--- /dev/null
+++ b/dev-dotnet/dotnet-runtime-nugets/dotnet-runtime-nugets-7.0.5.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DOTNET_COMPAT=$(ver_cut 1-2)
+NUGETS="
+microsoft.aspnetcore.app.ref@${PV}
+microsoft.aspnetcore.app.runtime.linux-arm@${PV}
+microsoft.aspnetcore.app.runtime.linux-arm64@${PV}
+microsoft.aspnetcore.app.runtime.linux-musl-arm@${PV}
+microsoft.aspnetcore.app.runtime.linux-musl-arm64@${PV}
+microsoft.aspnetcore.app.runtime.linux-musl-x64@${PV}
+microsoft.aspnetcore.app.runtime.linux-x64@${PV}
+microsoft.netcore.app.host.linux-arm@${PV}
+microsoft.netcore.app.host.linux-arm64@${PV}
+microsoft.netcore.app.host.linux-musl-arm@${PV}
+microsoft.netcore.app.host.linux-musl-arm64@${PV}
+microsoft.netcore.app.host.linux-musl-x64@${PV}
+microsoft.netcore.app.host.linux-x64@${PV}
+microsoft.netcore.app.ref@${PV}
+microsoft.netcore.app.runtime.linux-arm@${PV}
+microsoft.netcore.app.runtime.linux-arm64@${PV}
+microsoft.netcore.app.runtime.linux-musl-arm@${PV}
+microsoft.netcore.app.runtime.linux-musl-arm64@${PV}
+microsoft.netcore.app.runtime.linux-musl-x64@${PV}
+microsoft.netcore.app.runtime.linux-x64@${PV}
+"
+
+inherit dotnet-pkg-base
+
+DESCRIPTION=".NET runtime nugets"
+HOMEPAGE="https://dotnet.microsoft.com/"
+SRC_URI="${NUGET_URIS}"
+S="${WORKDIR}"
+
+LICENSE="MIT"
+SLOT="${PV}/${PV}"
+KEYWORDS="~amd64"
+
+src_unpack() {
+	:
+}
+
+src_install() {
+	nuget_donuget "${DISTDIR}/microsoft.aspnetcore.app.ref.${PV}.nupkg"
+	nuget_donuget "${DISTDIR}/microsoft.netcore.app.ref.${PV}.nupkg"
+
+	local runtime=$(dotnet-pkg-base_get-runtime)
+	local -a nuget_namespaces=(
+		microsoft.aspnetcore.app.runtime
+		microsoft.netcore.app.host
+		microsoft.netcore.app.runtime
+	)
+	local nuget_namespace
+	for nuget_namespace in ${nuget_namespaces[@]} ; do
+		nuget_donuget "${DISTDIR}/${nuget_namespace}.${runtime}.${PV}.nupkg"
+	done
+}
diff --git a/dev-dotnet/dotnet-runtime-nugets/metadata.xml b/dev-dotnet/dotnet-runtime-nugets/metadata.xml
new file mode 100644
index 0000000000..08bae967b8
--- /dev/null
+++ b/dev-dotnet/dotnet-runtime-nugets/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+  <maintainer type="project">
+    <email>dotnet@gentoo.org</email>
+    <name>Gentoo Dotnet Project</name>
+  </maintainer>
+</pkgmetadata>
-- 
2.41.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-dev] [PATCH 6/6] dev-dotnet/dotnet-sdk-bin: add 6.0.404-r1 and 7.0.203
  2023-09-05 20:21 [gentoo-dev] [PATCH 1/6] eclass/nuget.eclass: add new "nuget" eclass Maciej Barć
                   ` (3 preceding siblings ...)
  2023-09-05 20:21 ` [gentoo-dev] [PATCH 5/6] dev-dotnet/dotnet-runtime-nugets: new package Maciej Barć
@ 2023-09-05 20:22 ` Maciej Barć
  4 siblings, 0 replies; 6+ messages in thread
From: Maciej Barć @ 2023-09-05 20:22 UTC (permalink / raw
  To: gentoo-dev; +Cc: Maciej Barć

Bug: https://bugs.gentoo.org/900597
Bug: https://github.com/gentoo/gentoo/pull/32109
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
---
 dev-dotnet/dotnet-sdk-bin/Manifest            |  6 ++
 .../dotnet-sdk-bin-6.0.404-r1.ebuild          | 70 ++++++++++++++++++
 .../dotnet-sdk-bin-7.0.203.ebuild             | 71 +++++++++++++++++++
 3 files changed, 147 insertions(+)
 create mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.404-r1.ebuild
 create mode 100644 dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.203.ebuild

diff --git a/dev-dotnet/dotnet-sdk-bin/Manifest b/dev-dotnet/dotnet-sdk-bin/Manifest
index 0db1365533..ef1bf1bc89 100644
--- a/dev-dotnet/dotnet-sdk-bin/Manifest
+++ b/dev-dotnet/dotnet-sdk-bin/Manifest
@@ -10,3 +10,9 @@ DIST dotnet-sdk-7.0.200-linux-musl-arm.tar.gz 192955116 BLAKE2B 5b5549e158ebc705
 DIST dotnet-sdk-7.0.200-linux-musl-arm64.tar.gz 192893152 BLAKE2B ea793eebc9d414f5f8dd0c4a1b2c0330bf762db8fb1626aaa97d84b8fffe2a6b8d85f8cf735467dd49d6f588cd17254dad7ced926410f7e26488da08e0bb593a SHA512 63c568b1e0014e2039def200fde47d932e5366ba794fcd89f0efbcfd845e8b8b1c0ede6406a518f366356f5b566df2d0a1b53e6fdc9b58a26a59bdaa89e0ce32
 DIST dotnet-sdk-7.0.200-linux-musl-x64.tar.gz 197209986 BLAKE2B 4219149ed4f682ecb3d2c00cb2ed24f5352153ca0a5063bf07e7d42ddce95a5d3b4924e257bc166e1a1ca779dd9fb1d8e52d7a17a37ae73a596f3b5f4ed98c5b SHA512 e907c96e7f1c7a3497f8726176b1fad9e93050b7b5f30900a634d253c4c5c822c8d729b22b36fa00d5bb2be0834f6c683d47db8c22077fbb191e38ae67e12119
 DIST dotnet-sdk-7.0.200-linux-x64.tar.gz 197802070 BLAKE2B 100af2f1e3fda195542f383a449473b1e52a7c5c1ff40b3ee666305a883885e1440996be7e588d8ccad44702917cf8d5e87900a59d80b8a43f9ba76a8e602927 SHA512 bb88cc5099bcb090608f5e02e7fcdc4f6a82114881378efd469afb210e00909d8dcc4d07d188851ef2782ba755321096de175d83ca67af3c4dcb8d3c1d217756
+DIST dotnet-sdk-7.0.203-linux-arm.tar.gz 193128471 BLAKE2B 38f4c3d001770890b0de6f816a42e41ca7f05463f1924069fcbc15c344f2d713d68d5c8bbcbaba3adb1679b987cc543ef7c75a5f0afa0ba5def54cd1e3023a5d SHA512 9617060ed134d70a561ec8439748a09d54e67dab46c5f362dc749b37fee9324de50a2f8990b5b3745a1b6caa54578580afe7ca8791f276e8e72aeb21ff4abf27
+DIST dotnet-sdk-7.0.203-linux-arm64.tar.gz 193040248 BLAKE2B 38eb2d586de235bfa30b297099fe2287ce47afca648275d1a6b80e5237588107448f5310ab9e16e93eed91b4a2cb93727ec82451ab643d737a0467dce445bc46 SHA512 f5e1b5a63b51af664b852435fc5631ff3fbeafbfac9f34c025da016218b0e6fb9a24e816035a44f4b4a16f28bc696821b1aa6f181966754318bc45cde7f439bf
+DIST dotnet-sdk-7.0.203-linux-musl-arm.tar.gz 193086103 BLAKE2B fbd943578a9ad1eeeb01a4d31c662b7bbf61409041f5595dd4d52e036fd76c55ea28d0d4f8b1b6ef213f2a7afbf8d724d7b1bd27925a0a7d3d34d9632e8a17bb SHA512 b391d6d8ae2411450ac3d4b3ba7a8a402b95403d9c9a9f227dd504492fac7311405181f4aeda05390149e5c2363bf0a86d526d7ff89feac165c97e9d8ef39327
+DIST dotnet-sdk-7.0.203-linux-musl-arm64.tar.gz 193132851 BLAKE2B 6375b410b5e0c3163c4de0306aa618f72104574195b6076854a5222ba9720cc9fe7eb1ddff37f88a78758311dca58a3c093b503233aa4df60d93494b79435ada SHA512 ad94a557cb7a319e641ba09f3ee63dce74cae3ae668011c009b7a004b1b28001942ae4c7a82fe80ba2467f5ac44731bff81a1edd422c0aaaf95d7206b715dcbf
+DIST dotnet-sdk-7.0.203-linux-musl-x64.tar.gz 197345038 BLAKE2B 7c9a016c0ac9a78b0337fc58670788e11950cd5db9d22ef9845ab40ff6969138f76d878dca9972183f73c35fef0940e690a57fa7e44bf7236e9cd73010e30267 SHA512 0d7bbf8f8e517aa4530d2bc590978394f0fd568a866b6369ab349aaf43412f820391ee3bb99d3f5b7f149bc7dfc1baff7658d928caa931e37c69e149d3667741
+DIST dotnet-sdk-7.0.203-linux-x64.tar.gz 197819323 BLAKE2B f95c9d34f7feba5c0e1407c9c4012361f1bb282748d7644a9e823d3b39d62a42ab3de3e8ce2a310b40ea180069bddea3eef07973043ba2f20020365f9adfd52c SHA512 ed1ae7cd88591ec52e1515c4a25d9a832eca29e8a0889549fea35a320e6e356e3806a17289f71fc0b04c36b006ae74446c53771d976c170fcbe5977ac7db1cb6
diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.404-r1.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.404-r1.ebuild
new file mode 100644
index 0000000000..fe7a496af2
--- /dev/null
+++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.404-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION=".NET is a free, cross-platform, open-source developer platform"
+HOMEPAGE="https://dotnet.microsoft.com/"
+SRC_URI="
+amd64? (
+	elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-x64.tar.gz )
+	elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-x64.tar.gz )
+)
+arm? (
+	elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm.tar.gz )
+	elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-arm.tar.gz )
+)
+arm64? (
+	elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm64.tar.gz )
+	elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-arm64.tar.gz )
+)
+"
+S="${WORKDIR}"
+
+SDK_SLOT="$(ver_cut 1-2)"
+RUNTIME_SLOT="${SDK_SLOT}.12"
+SLOT="${SDK_SLOT}/${RUNTIME_SLOT}"
+
+LICENSE="MIT"
+KEYWORDS="~amd64"
+RESTRICT="splitdebug"
+
+RDEPEND="
+	app-crypt/mit-krb5:0/0
+	dev-libs/icu
+	dev-util/lttng-ust:0/2.12
+	sys-libs/zlib:0/1
+"
+IDEPEND="app-eselect/eselect-dotnet"
+PDEPEND="
+	~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT}
+	~dev-dotnet/dotnet-runtime-nugets-3.1.32
+"
+
+QA_PREBUILT="*"
+
+src_install() {
+	local dest=opt/${PN}-${SDK_SLOT}
+	dodir "${dest%/*}"
+
+	# Create a magic workloads file, bug #841896
+	local featureband="$(( $(ver_cut 3) / 100 * 100 ))"       # e.g. 404 -> 400
+	local workloads="metadata/workloads/${SDK_SLOT}.${featureband}"
+
+	mkdir -p "${S}/${workloads}" || die
+	touch "${S}/${workloads}/userlocal" || die
+
+	mv "${S}" "${ED}/${dest}" || die
+	mkdir "${S}" || die
+
+	fperms 0755 "/${dest}"
+	dosym ../../${dest}/dotnet /usr/bin/dotnet-bin-${SDK_SLOT}
+}
+
+pkg_postinst() {
+	eselect dotnet update ifunset
+}
+
+pkg_postrm() {
+	eselect dotnet update ifunset
+}
diff --git a/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.203.ebuild b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.203.ebuild
new file mode 100644
index 0000000000..9b24e7afb5
--- /dev/null
+++ b/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-7.0.203.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION=".NET is a free, cross-platform, open-source developer platform"
+HOMEPAGE="https://dotnet.microsoft.com/"
+SRC_URI="
+amd64? (
+	elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-x64.tar.gz )
+	elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-x64.tar.gz )
+)
+arm? (
+	elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm.tar.gz )
+	elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-arm.tar.gz )
+)
+arm64? (
+	elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-arm64.tar.gz )
+	elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Sdk/${PV}/dotnet-sdk-${PV}-linux-musl-arm64.tar.gz )
+)
+"
+S="${WORKDIR}"
+
+SDK_SLOT="$(ver_cut 1-2)"
+RUNTIME_SLOT="${SDK_SLOT}.5"
+SLOT="${SDK_SLOT}/${RUNTIME_SLOT}"
+
+LICENSE="MIT"
+KEYWORDS="~amd64"
+RESTRICT="splitdebug"
+
+RDEPEND="
+	app-crypt/mit-krb5:0/0
+	dev-libs/icu
+	dev-util/lttng-ust:0/2.12
+	sys-libs/zlib:0/1
+"
+IDEPEND="app-eselect/eselect-dotnet"
+PDEPEND="
+	~dev-dotnet/dotnet-runtime-nugets-${RUNTIME_SLOT}
+	~dev-dotnet/dotnet-runtime-nugets-3.1.32
+	~dev-dotnet/dotnet-runtime-nugets-6.0.16
+"
+
+QA_PREBUILT="*"
+
+src_install() {
+	local dest=opt/${PN}-${SDK_SLOT}
+	dodir "${dest%/*}"
+
+	# Create a magic workloads file, bug #841896
+	local featureband="$(( $(ver_cut 3) / 100 * 100 ))"       # e.g. 404 -> 400
+	local workloads="metadata/workloads/${SDK_SLOT}.${featureband}"
+
+	mkdir -p "${S}/${workloads}" || die
+	touch "${S}/${workloads}/userlocal" || die
+
+	mv "${S}" "${ED}/${dest}" || die
+	mkdir "${S}" || die
+
+	fperms 0755 "/${dest}"
+	dosym ../../${dest}/dotnet /usr/bin/dotnet-bin-${SDK_SLOT}
+}
+
+pkg_postinst() {
+	eselect dotnet update ifunset
+}
+
+pkg_postrm() {
+	eselect dotnet update ifunset
+}
-- 
2.41.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-09-05 20:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-05 20:21 [gentoo-dev] [PATCH 1/6] eclass/nuget.eclass: add new "nuget" eclass Maciej Barć
2023-09-05 20:21 ` [gentoo-dev] [PATCH 2/6] eclass/dotnet-pkg-base.eclass: add new "dotnet-pkg-base" eclass Maciej Barć
2023-09-05 20:21 ` [gentoo-dev] [PATCH 3/6] eclass/dotnet-pkg.eclass: add new "dotnet-pkg" eclass Maciej Barć
2023-09-05 20:21 ` [gentoo-dev] [PATCH 4/6] app-eselect/eselect-dotnet: new package; add version 0.1.0 Maciej Barć
2023-09-05 20:21 ` [gentoo-dev] [PATCH 5/6] dev-dotnet/dotnet-runtime-nugets: new package Maciej Barć
2023-09-05 20:22 ` [gentoo-dev] [PATCH 6/6] dev-dotnet/dotnet-sdk-bin: add 6.0.404-r1 and 7.0.203 Maciej Barć

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox