commit:     50d9cf48986effb0baf5d92103137e7902d6ae5d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 10 00:03:17 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 10 01:54:29 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50d9cf48

ada.eclass: drop gnat_2021 (dev-lang/gnat-gpl) support

dev-lang/gnat-gpl is being last-rited.

Bug: https://bugs.gentoo.org/951054
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/ada.eclass | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/eclass/ada.eclass b/eclass/ada.eclass
index 3d22dd5d2a61..2732b4f57afd 100644
--- a/eclass/ada.eclass
+++ b/eclass/ada.eclass
@@ -1,4 +1,4 @@
-# Copyright 2019-2024 Gentoo Authors
+# Copyright 2019-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: ada.eclass
@@ -49,7 +49,7 @@ _ADA_ECLASS=1
 # Example value:
 # @CODE
 # ada_target_gcc_12? ( sys-devel/gcc:12[ada] )
-# ada_target_gnat_2021? ( dev-lang/gnat-gps:2021[ada] )
+# ada_target_gcc_13? ( sys-devel/gcc:13[ada] )
 # @CODE
 
 # @ECLASS_VARIABLE: _ADA_ALL_IMPLS
@@ -57,7 +57,7 @@ _ADA_ECLASS=1
 # @DESCRIPTION:
 # All supported Ada implementations, most preferred last.
 _ADA_ALL_IMPLS=(
-       gnat_2021 gcc_12 gcc_13 gcc_14 gcc_15
+       gcc_12 gcc_13 gcc_14 gcc_15
 )
 readonly _ADA_ALL_IMPLS
 
@@ -77,7 +77,7 @@ readonly _ADA_ALL_IMPLS
 #
 # Example value:
 # @CODE
-# ^^ ( ada_target_gnat_2021 ada_target_gcc_12 )
+# ^^ ( ada_target_gcc_12 ada_target_gcc_13 )
 # @CODE
 
 # @ECLASS_VARIABLE: ADA_USEDEP
@@ -119,7 +119,7 @@ _ada_impl_supported() {
        # keep in sync with _ADA_ALL_IMPLS!
        # (not using that list because inline patterns shall be faster)
        case "${impl}" in
-               gnat_2021|gcc_12|gcc_13|gcc_14|gcc_15)
+               gcc_12|gcc_13|gcc_14|gcc_15)
                        return 0
                        ;;
                *)
@@ -213,7 +213,7 @@ ada_export() {
        local impl var
 
        case "${1}" in
-               gnat_2021|gcc_12|gcc_13|gcc_14|gcc_15)
+               gcc_12|gcc_13|gcc_14|gcc_15)
                        impl=${1}
                        shift
                        ;;
@@ -229,10 +229,6 @@ ada_export() {
        local gcc_pv
        local slot
        case "${impl}" in
-               gnat_2021)
-                       gcc_pv=10
-                       slot=10
-                       ;;
                gcc_12)
                        gcc_pv=12
                        slot=12
@@ -299,9 +295,6 @@ ada_export() {
                                ;;
                        ADA_PKG_DEP)
                                case "${impl}" in
-                                       gnat_2021)
-                                               
ADA_PKG_DEP="dev-lang/gnat-gpl:${slot}[ada]"
-                                               ;;
                                        gcc_12|gcc_13|gcc_14|gcc_15)
                                                
ADA_PKG_DEP="sys-devel/gcc:${slot}[ada]"
                                                ;;

Reply via email to