commit:     17c13e45b33619a0c151427e4be14765814cb8d7
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Nov  6 07:10:18 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Nov  6 07:10:43 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17c13e45

dev-ada/gprconfig_kb: add gcc_13 support

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ada/gprconfig_kb/gprconfig_kb-23.0.0-r4.ebuild | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/dev-ada/gprconfig_kb/gprconfig_kb-23.0.0-r4.ebuild 
b/dev-ada/gprconfig_kb/gprconfig_kb-23.0.0-r4.ebuild
new file mode 100644
index 000000000000..5e6e81063638
--- /dev/null
+++ b/dev-ada/gprconfig_kb/gprconfig_kb-23.0.0-r4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ADA_COMPAT=( gnat_2021 gcc_12 gcc_13 )
+
+inherit ada
+
+DESCRIPTION="GPR configuration knowledge base"
+HOMEPAGE="https://www.adacore.com/";
+SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz
+       -> ${P}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+REQUIRED_USE="${ADA_REQUIRED_USE}"
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_prepare() {
+       default
+
+       sed -i \
+               -e "s:@VER@:${GCC_PV}:g" \
+               db/compilers.xml \
+               db/gnat.xml \
+               db/c.xml \
+               db/linker.xml \
+               || die
+}
+
+src_install() {
+       insinto /usr/share/gprconfig
+       doins db/*.xml
+       doins db/*.ent
+       einstalldocs
+}

Reply via email to