mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
eclass: standardize inherit guard
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: app-alternatives.eclass
|
||||
@@ -21,7 +21,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} unsupported."
|
||||
esac
|
||||
|
||||
if [[ ! ${_APP_ALTERNATIVES_ECLASS} ]]; then
|
||||
if [[ -z ${_APP_ALTERNATIVES_ECLASS} ]]; then
|
||||
_APP_ALTERNATIVES_ECLASS=1
|
||||
|
||||
# @ECLASS_VARIABLE: ALTERNATIVES
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: aspell-dict-r1.eclass
|
||||
@@ -41,7 +41,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_ASPELL_DICT_R1_ECLASS} ]]; then
|
||||
if [[ -z ${_ASPELL_DICT_R1_ECLASS} ]]; then
|
||||
_ASPELL_DICT_R1_ECLASS=1
|
||||
|
||||
# Most of those aspell packages have an idiosyncratic versioning scheme,
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
# }
|
||||
# @CODE
|
||||
|
||||
if [[ ! ${_BASH_COMPLETION_R1_ECLASS} ]]; then
|
||||
if [[ -z ${_BASH_COMPLETION_R1_ECLASS} ]]; then
|
||||
_BASH_COMPLETION_R1_ECLASS=1
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: dotnet.eclass
|
||||
@@ -17,7 +17,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_DOTNET_ECLASS} ]]; then
|
||||
if [[ -z ${_DOTNET_ECLASS} ]]; then
|
||||
_DOTNET_ECLASS=1
|
||||
|
||||
BDEPEND="dev-lang/mono"
|
||||
|
||||
@@ -19,7 +19,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_DUNE_ECLASS} ]]; then
|
||||
if [[ -z ${_DUNE_ECLASS} ]]; then
|
||||
_DUNE_ECLASS=1
|
||||
|
||||
# @ECLASS_VARIABLE: DUNE_PKG_NAME
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: emboss-r3.eclass
|
||||
@@ -38,7 +38,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_EMBOSS_R3_ECLASS} ]]; then
|
||||
if [[ -z ${_EMBOSS_R3_ECLASS} ]]; then
|
||||
_EMBOSS_R3_ECLASS=1
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: gkrellm-plugin.eclass
|
||||
@@ -36,7 +36,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_GKRELLM_PLUGIN_ECLASS} ]]; then
|
||||
if [[ -z ${_GKRELLM_PLUGIN_ECLASS} ]]; then
|
||||
_GKRELLM_PLUGIN_ECLASS=1
|
||||
|
||||
inherit multilib
|
||||
|
||||
@@ -33,7 +33,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_KERNEL_BUILD_ECLASS} ]]; then
|
||||
if [[ -z ${_KERNEL_BUILD_ECLASS} ]]; then
|
||||
_KERNEL_BUILD_ECLASS=1
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
# packages to depend on for building the generic UKI and their licenses.
|
||||
# Used in kernel-build.eclass.
|
||||
|
||||
if [[ ! ${_KERNEL_INSTALL_ECLASS} ]]; then
|
||||
if [[ -z ${_KERNEL_INSTALL_ECLASS} ]]; then
|
||||
_KERNEL_INSTALL_ECLASS=1
|
||||
|
||||
case ${EAPI} in
|
||||
|
||||
@@ -106,7 +106,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_LINUX_MOD_R1_ECLASS} ]]; then
|
||||
if [[ -z ${_LINUX_MOD_R1_ECLASS} ]]; then
|
||||
_LINUX_MOD_R1_ECLASS=1
|
||||
|
||||
inherit dist-kernel-utils edo linux-info multiprocessing toolchain-funcs
|
||||
|
||||
@@ -42,7 +42,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_LLVM_R1_ECLASS} ]]; then
|
||||
if [[ -z ${_LLVM_R1_ECLASS} ]]; then
|
||||
_LLVM_R1_ECLASS=1
|
||||
|
||||
inherit llvm-utils
|
||||
|
||||
@@ -18,7 +18,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_LLVM_UTILS_ECLASS} ]]; then
|
||||
if [[ -z ${_LLVM_UTILS_ECLASS} ]]; then
|
||||
_LLVM_UTILS_ECLASS=1
|
||||
|
||||
# @FUNCTION: llvm_tuple_to_target
|
||||
|
||||
@@ -63,7 +63,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_LLVM_ECLASS} ]]; then
|
||||
if [[ -z ${_LLVM_ECLASS} ]]; then
|
||||
_LLVM_ECLASS=1
|
||||
|
||||
inherit llvm-utils
|
||||
|
||||
@@ -20,7 +20,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_MOZCORECONF_V6_ECLASS} ]]; then
|
||||
if [[ -z ${_MOZCORECONF_V6_ECLASS} ]]; then
|
||||
_MOZCORECONF_V6_ECLASS=1
|
||||
|
||||
inherit toolchain-funcs flag-o-matic python-any-r1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: mozextension.eclass
|
||||
@@ -12,7 +12,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_MOZEXTENSION_ECLASS} ]]; then
|
||||
if [[ -z ${_MOZEXTENSION_ECLASS} ]]; then
|
||||
_MOZEXTENSION_ECLASS=1
|
||||
|
||||
# @ECLASS_VARIABLE: MOZEXTENSION_TARGET
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: mozlinguas-v2.eclass
|
||||
@@ -19,7 +19,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_MOZLINGUAS_V2_ECLASS} ]]; then
|
||||
if [[ -z ${_MOZLINGUAS_V2_ECLASS} ]]; then
|
||||
_MOZLINGUAS_V2_ECLASS=1
|
||||
|
||||
inherit mozextension
|
||||
|
||||
@@ -19,7 +19,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_POSTGRES_MULTI_ECLASS} ]]; then
|
||||
if [[ -z ${_POSTGRES_MULTI_ECLASS} ]]; then
|
||||
_POSTGRES_MULTI_ECLASS=1
|
||||
|
||||
inherit multibuild postgres
|
||||
|
||||
@@ -19,7 +19,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_POSTGRES_ECLASS} ]]; then
|
||||
if [[ -z ${_POSTGRES_ECLASS} ]]; then
|
||||
_POSTGRES_ECLASS=1
|
||||
|
||||
# @ECLASS_VARIABLE: _POSTGRES_ALL_VERSIONS
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Copyright 2023-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: pypi.eclass
|
||||
@@ -40,7 +40,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_PYPI_ECLASS} ]]; then
|
||||
if [[ -z ${_PYPI_ECLASS} ]]; then
|
||||
_PYPI_ECLASS=1
|
||||
|
||||
# @ECLASS_VARIABLE: PYPI_NO_NORMALIZE
|
||||
|
||||
@@ -43,7 +43,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_PYTHON_ANY_R1_ECLASS} ]]; then
|
||||
if [[ -z ${_PYTHON_ANY_R1_ECLASS} ]]; then
|
||||
_PYTHON_ANY_R1_ECLASS=1
|
||||
|
||||
if [[ ${_PYTHON_R1_ECLASS} ]]; then
|
||||
|
||||
@@ -42,7 +42,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_PYTHON_SINGLE_R1_ECLASS} ]]; then
|
||||
if [[ -z ${_PYTHON_SINGLE_R1_ECLASS} ]]; then
|
||||
_PYTHON_SINGLE_R1_ECLASS=1
|
||||
|
||||
if [[ ${_PYTHON_R1_ECLASS} ]]; then
|
||||
|
||||
@@ -89,7 +89,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_ROCM_ECLASS} ]]; then
|
||||
if [[ -z ${_ROCM_ECLASS} ]]; then
|
||||
_ROCM_ECLASS=1
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
@@ -18,7 +18,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_RUBY_NG_GNOME2_ECLASS} ]]; then
|
||||
if [[ -z ${_RUBY_NG_GNOME2_ECLASS} ]]; then
|
||||
_RUBY_NG_GNOME2_ECLASS=1
|
||||
|
||||
RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN#ruby-}}"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: ruby-single.eclass
|
||||
@@ -28,7 +28,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_RUBY_SINGLE_ECLASS} ]]; then
|
||||
if [[ -z ${_RUBY_SINGLE_ECLASS} ]]; then
|
||||
_RUBY_SINGLE_ECLASS=1
|
||||
|
||||
inherit ruby-utils
|
||||
|
||||
@@ -23,7 +23,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_SELINUX_POLICY_2_ECLASS} ]]; then
|
||||
if [[ -z ${_SELINUX_POLICY_2_ECLASS} ]]; then
|
||||
_SELINUX_POLICY_2_ECLASS=1
|
||||
|
||||
# @ECLASS_VARIABLE: MODS
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Copyright 2023-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: shell-completion.eclass
|
||||
@@ -20,7 +20,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported"
|
||||
esac
|
||||
|
||||
if [[ ! ${_SHELL_COMPLETION_ECLASS} ]]; then
|
||||
if [[ -z ${_SHELL_COMPLETION_ECLASS} ]]; then
|
||||
_SHELL_COMPLETION_ECLASS=1
|
||||
|
||||
# Extend bash-completion-r1
|
||||
|
||||
@@ -47,7 +47,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_VCS_SNAPSHOT_ECLASS} ]]; then
|
||||
if [[ -z ${_VCS_SNAPSHOT_ECLASS} ]]; then
|
||||
_VCS_SNAPSHOT_ECLASS=1
|
||||
|
||||
# @FUNCTION: vcs-snapshot_src_unpack
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: waf-utils.eclass
|
||||
@@ -20,7 +20,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_WAF_UTILS_ECLASS} ]]; then
|
||||
if [[ -z ${_WAF_UTILS_ECLASS} ]]; then
|
||||
_WAF_UTILS_ECLASS=1
|
||||
|
||||
inherit multilib toolchain-funcs multiprocessing
|
||||
|
||||
Reference in New Issue
Block a user