diff options
author | Sam James <sam@gentoo.org> | 2024-09-07 22:39:09 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-09-08 19:21:27 +0100 |
commit | 93c765a9b349be736f86cb6ca823d8cf6220a335 (patch) | |
tree | a65eddd49d466c54576e4832b7e46181c0450079 /eclass | |
parent | webapp.eclass: add global-scope ewarn for deprecated < EAPI 7 (diff) | |
download | gentoo-93c765a9b349be736f86cb6ca823d8cf6220a335.tar.gz gentoo-93c765a9b349be736f86cb6ca823d8cf6220a335.tar.bz2 gentoo-93c765a9b349be736f86cb6ca823d8cf6220a335.zip |
wrapper.eclass: add global-scope ewarn for deprecated < EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/wrapper.eclass | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/eclass/wrapper.eclass b/eclass/wrapper.eclass index 8d3d273d81c6..a62bb51d0fe7 100644 --- a/eclass/wrapper.eclass +++ b/eclass/wrapper.eclass @@ -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: wrapper.eclass @@ -7,15 +7,19 @@ # @SUPPORTED_EAPIS: 5 6 7 8 # @BLURB: create a shell wrapper script +if [[ -z ${_WRAPPER_ECLASS} ]]; then +_WRAPPER_ECLASS=1 + case ${EAPI} in - 5|6|7|8) ;; + 5|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 [[ -z ${_WRAPPER_ECLASS} ]]; then -_WRAPPER_ECLASS=1 - -# @FUNCTION: make_wrapper +# FUNCTION: make_wrapper # @USAGE: <wrapper> <target> [chdir] [libpaths] [installpath] # @DESCRIPTION: # Create a shell wrapper script named wrapper in installpath |