dev-ada/gnatsymbolize: support gcc:16

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone 2025-12-11 11:33:28 +01:00
parent 4246fb8e42
commit 3235bfe75d
No known key found for this signature in database
GPG Key ID: FBE5925C5B02CE58

View File

@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
ADA_COMPAT=( gcc_{12..15} ) ADA_COMPAT=( gcc_{12..16} )
inherit ada inherit ada
MYP=${P}-${PV}0518-19D3B-src MYP=${P}-${PV}0518-19D3B-src
@ -23,6 +23,16 @@ RDEPEND="${ADA_DEPS}"
DEPEND="${RDEPEND}" DEPEND="${RDEPEND}"
REQUIRED_USE="${ADA_REQUIRED_USE}" REQUIRED_USE="${ADA_REQUIRED_USE}"
src_prepare () {
if use ada_target_gcc_16; then
sed -i \
-e "s:Success,:Full, Success,:" \
gnatsymbolize.adb \
|| die
fi
default
}
src_compile() { src_compile() {
gnatmake -v gnatsymbolize -cargs ${ADAFLAGS} -largs ${LDFLAGS} || die gnatmake -v gnatsymbolize -cargs ${ADAFLAGS} -largs ${LDFLAGS} || die
} }