From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3DED715815E for ; Sat, 3 Feb 2024 16:24:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 058C72BC03B; Sat, 3 Feb 2024 16:24:36 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 856FA2BC036 for ; Sat, 3 Feb 2024 16:24:35 +0000 (UTC) From: =?UTF-8?q?Maciej=20Bar=C4=87?= To: gentoo-dev@lists.gentoo.org Cc: dotnet@gentoo.org, =?UTF-8?q?Maciej=20Bar=C4=87?= Subject: [gentoo-dev] [PATCH 2/7] eclass/dotnet-pkg-base.eclass: deprecate wring-style names Date: Sat, 3 Feb 2024 17:24:13 +0100 Message-ID: <20240203162422.91906-2-xgqt@gentoo.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240203162422.91906-1-xgqt@gentoo.org> References: <20240203162422.91906-1-xgqt@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: e26cc4c2-7b29-4571-bf7d-3e0789134a87 X-Archives-Hash: 3ebaa9c84bd6cd74926f20eabd6fa10e Signed-off-by: Maciej Barć --- eclass/dotnet-pkg-base.eclass | 38 ++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/eclass/dotnet-pkg-base.eclass b/eclass/dotnet-pkg-base.eclass index e7484a6c5..b31e8e70f 100644 --- a/eclass/dotnet-pkg-base.eclass +++ b/eclass/dotnet-pkg-base.eclass @@ -360,7 +360,7 @@ dotnet-pkg-base_restore() { edotnet restore "${restore_args[@]}" } -# @FUNCTION: dotnet-pkg-base_restore_tools +# @FUNCTION: dotnet-pkg-base_restore-tools # @USAGE: [config-file] [args] ... # @DESCRIPTION: # Restore dotnet tools for a project in the current directory. @@ -370,7 +370,7 @@ dotnet-pkg-base_restore() { # # Additionally any number of "args" maybe be given, they are appended to # the "dotnet" command invocation. -dotnet-pkg-base_restore_tools() { +dotnet-pkg-base_restore-tools() { debug-print-function "${FUNCNAME[0]}" "${@}" local -a tool_restore_args=( @@ -387,6 +387,14 @@ dotnet-pkg-base_restore_tools() { edotnet tool restore "${tool_restore_args[@]}" } +# @FUNCTION: dotnet-pkg-base_restore_tools +# @USAGE: [config-file] [args] ... +# @DESCRIPTION: +# DEPRECATED, use "dotnet-pkg-base_restore_tools" instead. +dotnet-pkg-base_restore_tools() { + dotnet-pkg-base_restore-tools "${@}" +} + # @FUNCTION: dotnet-pkg-base_build # @USAGE: [args] ... # @DESCRIPTION: @@ -488,7 +496,7 @@ dotnet-pkg-base_launcherinto() { _DOTNET_PKG_LAUNCHERDEST="${1}" } -# @FUNCTION: dotnet-pkg-base_append_launchervar +# @FUNCTION: dotnet-pkg-base_append-launchervar # @USAGE: # @DESCRIPTION: # Appends a given variable setting to the "_DOTNET_PKG_LAUNCHERVARS". @@ -504,7 +512,7 @@ dotnet-pkg-base_launcherinto() { # @CODE # # For more info see the "_DOTNET_PKG_LAUNCHERVARS" variable. -dotnet-pkg-base_append_launchervar() { +dotnet-pkg-base_append-launchervar() { debug-print-function "${FUNCNAME[0]}" "${@}" [[ -z ${1} ]] && die "${FUNCNAME[0]}: no variable setting specified" @@ -512,6 +520,14 @@ dotnet-pkg-base_append_launchervar() { _DOTNET_PKG_LAUNCHERVARS+=( "${1}" ) } +# @FUNCTION: dotnet-pkg-base_append_launchervar +# @USAGE: +# @DESCRIPTION: +# DEPRECATED, use "dotnet-pkg-base_append-launchervar" instead. +dotnet-pkg-base_append_launchervar() { + dotnet-pkg-base_append-launchervar "${@}" +} + # @FUNCTION: dotnet-pkg-base_dolauncher # @USAGE: [filename] # @DESCRIPTION: @@ -579,7 +595,7 @@ dotnet-pkg-base_dolauncher() { doexe "${executable_target}" } -# @FUNCTION: dotnet-pkg-base_dolauncher_portable +# @FUNCTION: dotnet-pkg-base_dolauncher-portable # @USAGE: # @DESCRIPTION: # Make a wrapper script to launch a .NET DLL file built from a .NET package. @@ -590,12 +606,12 @@ dotnet-pkg-base_dolauncher() { # # Example: # @CODE -# dotnet-pkg-base_dolauncher_portable \ +# 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() { +dotnet-pkg-base_dolauncher-portable() { debug-print-function "${FUNCNAME[0]}" "${@}" local dll_path="${1}" @@ -621,4 +637,12 @@ dotnet-pkg-base_dolauncher_portable() { doexe "${executable_target}" } +# @FUNCTION: dotnet-pkg-base_dolauncher_portable +# @USAGE: +# @DESCRIPTION: +# DEPRECATED, use "dotnet-pkg-base_dolauncher-portable" instead. +dotnet-pkg-base_dolauncher_portable() { + dotnet-pkg-base_dolauncher-portable "${@}" +} + fi -- 2.43.0