I want to add support to gcc:13 for ada packages

In attachment the new ada.eclass.

Inline are the changes applyed:

--- ada.eclass  2023-11-04 13:38:30.857702705 +0100
+++ ada.eclass.new      2023-11-03 23:16:34.643870434 +0100
@@ -57,7 +57,7 @@
 # @DESCRIPTION:
 # All supported Ada implementations, most preferred last.
 _ADA_ALL_IMPLS=(
-       gnat_2021 gcc_12
+       gnat_2021 gcc_12 gcc_13
 )
 readonly _ADA_ALL_IMPLS
 
@@ -119,10 +119,7 @@
        # keep in sync with _ADA_ALL_IMPLS!
        # (not using that list because inline patterns shall be faster)
        case "${impl}" in
-               gnat_2021)
-                       return 0
-                       ;;
-               gcc_12)
+               gnat_2021|gcc_12|gcc_13)
                        return 0
                        ;;
                *)
@@ -216,11 +213,7 @@
        local impl var
 
        case "${1}" in
-               gnat_2021)
-                       impl=${1}
-                       shift
-                       ;;
-               gcc_12)
+               gnat_2021|gcc_12|gcc_13)
                        impl=${1}
                        shift
                        ;;
@@ -244,6 +237,10 @@
                        gcc_pv=12
                        slot=12
                        ;;
+               gcc_13)
+                       gcc_pv=13
+                       slot=13
+                       ;;
                *)
                        gcc_pv="9.9.9"
                        slot=9.9.9
@@ -293,7 +290,7 @@
                                        gnat_2021)
                                                
ADA_PKG_DEP="dev-lang/gnat-gpl:${slot}[ada]"
                                                ;;
-                                       gcc_12)
+                                       gcc_12|gcc_13)
                                                
ADA_PKG_DEP="sys-devel/gcc:${slot}[ada]"
                                                ;;
                                        *)


Any comments? Can I do things better?

Alfredo

Attachment: ada.eclass.new
Description: Binary data

Reply via email to