Skip to content

Commit

Permalink
out-of-source-utils.eclass: add global-scope ewarn for deprecated < E…
Browse files Browse the repository at this point in the history
…API 7

Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Sep 8, 2024
1 parent 2057ba7 commit d379eaf
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions eclass/out-of-source-utils.eclass
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022-2023 Gentoo Authors
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# @ECLASS: out-of-source-utils.eclass
Expand All @@ -12,14 +12,18 @@
# This eclass provides a run_in_build_dir() helper that can be used
# to execute specified command inside BUILD_DIR.

if [[ ! ${_OUT_OF_SOURCE_UTILS_ECLASS} ]]; then
_OUT_OF_SOURCE_UTILS_ECLASS=1

case ${EAPI} in
6|7|8) ;;
6)
ewarn "${CATEGORY}/${PF}: ebuild uses ${ECLASS} with deprecated EAPI ${EAPI}!"
ewarn "${CATEGORY}/${PF}: Support will be removed on 2024-10-08. Please port to newer EAPI."
;;
7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac

if [[ ! ${_OUT_OF_SOURCE_UTILS_ECLASS} ]]; then
_OUT_OF_SOURCE_UTILS_ECLASS=1

# @FUNCTION: run_in_build_dir
# @USAGE: <argv>...
# @DESCRIPTION:
Expand Down

0 comments on commit d379eaf

Please sign in to comment.