summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ada/gprbuild/gprbuild-22.0.0-r1.ebuild')
-rw-r--r--dev-ada/gprbuild/gprbuild-22.0.0-r1.ebuild16
1 files changed, 14 insertions, 2 deletions
diff --git a/dev-ada/gprbuild/gprbuild-22.0.0-r1.ebuild b/dev-ada/gprbuild/gprbuild-22.0.0-r1.ebuild
index 06eb16e01235..97506af95abf 100644
--- a/dev-ada/gprbuild/gprbuild-22.0.0-r1.ebuild
+++ b/dev-ada/gprbuild/gprbuild-22.0.0-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-ADA_COMPAT=( gnat_2021 )
+ADA_COMPAT=( gnat_202{0,1} )
inherit ada multiprocessing
@@ -53,6 +53,18 @@ src_prepare() {
-e "s:@GNATBIND@:${GNATBIND}:g" \
src/gprlib.adb \
|| die
+ if use ada_target_gnat_2020; then
+ sed -i \
+ -e "s:Append_Vector:Append:g" \
+ -e "s:Insert_Vector:Insert:g" \
+ src/gprbuild-link.adb \
+ src/gprinstall-install.adb \
+ src/gprlib.adb \
+ src/gprlib-build_shared_lib.adb \
+ src/gprbind.adb \
+ || die
+ eapply "${FILESDIR}"/${P}-2020.patch
+ fi
}
bin_progs="gprbuild gprconfig gprclean gprinstall gprname gprls"