public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Sam James <sam@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: Sam James <sam@gentoo.org>
Subject: [gentoo-dev] [PATCH 31/44] strip-linguas.eclass: add global-scope ewarn for deprecated < EAPI 7
Date: Sun,  8 Sep 2024 19:16:40 +0100	[thread overview]
Message-ID: <708323c8abfbfc95e39bab87326bb42dc51a7e94.1725819412.git.sam@gentoo.org> (raw)
In-Reply-To: <cover.1725819408.git.sam@gentoo.org>

Signed-off-by: Sam James <sam@gentoo.org>
---
 eclass/strip-linguas.eclass | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/eclass/strip-linguas.eclass b/eclass/strip-linguas.eclass
index 718341b4a6264..b31f414c87c31 100644
--- a/eclass/strip-linguas.eclass
+++ b/eclass/strip-linguas.eclass
@@ -1,4 +1,4 @@
-# Copyright 2004-2021 Gentoo Authors
+# Copyright 2004-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: strip-linguas.eclass
@@ -9,15 +9,19 @@
 # @SUPPORTED_EAPIS: 5 6 7 8
 # @BLURB: convenience function for LINGUAS support
 
+if [[ -z ${_STRIP_LINGUAS_ECLASS} ]]; then
+_STRIP_LINGUAS_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 ${_STRIP_LINGUAS_ECLASS} ]]; then
-_STRIP_LINGUAS_ECLASS=1
-
-# @FUNCTION: strip-linguas
+# FUNCTION: strip-linguas
 # @USAGE: [<allow LINGUAS>|<-i|-u> <directories of .po files>]
 # @DESCRIPTION:
 # Make sure that LINGUAS only contains languages that a package can
-- 
2.46.0



  parent reply	other threads:[~2024-09-08 18:27 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-08 18:16 [gentoo-dev] [PATCH 00/44] eclass: add global-scope ewarn for deprecated < EAPI 7 Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 01/44] apache-module.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 02/44] autotools.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 03/44] bash-completion-r1.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 04/44] cdrom.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 05/44] check-reqs.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 06/44] depend.apache.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 07/44] desktop.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 08/44] flag-o-matic.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 09/44] fortran-2.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 10/44] gnuconfig.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 11/44] java-pkg-2.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 12/44] java-utils-2.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 13/44] libtool.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 14/44] mono-env.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 15/44] multibuild.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 16/44] multilib-build.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 17/44] multilib.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 18/44] multilib-minimal.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 19/44] multiprocessing.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 20/44] out-of-source-utils.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 21/44] pax-utils.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 22/44] perl-functions.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 23/44] php-pear-r2.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 24/44] portability.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 25/44] prefix.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 26/44] preserve-libs.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 27/44] readme.gentoo-r1.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 28/44] ruby-fakegem.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 29/44] ruby-ng.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 30/44] ruby-utils.eclass: " Sam James
2024-09-08 18:16 ` Sam James [this message]
2024-09-08 18:16 ` [gentoo-dev] [PATCH 32/44] systemd.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 33/44] tmpfiles.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 34/44] toolchain-funcs.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 35/44] udev.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 36/44] vcs-clean.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 37/44] vim-doc.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 38/44] vim-plugin.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 39/44] vim-spell.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 40/44] virtualx.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 41/44] webapp.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 42/44] wrapper.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 43/44] xdg.eclass: " Sam James
2024-09-08 18:16 ` [gentoo-dev] [PATCH 44/44] xdg-utils.eclass: " Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=708323c8abfbfc95e39bab87326bb42dc51a7e94.1725819412.git.sam@gentoo.org \
    --to=sam@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox