commit:     aa4da3b30e4f1621dd92b2492b59398426a46cfc
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  2 09:16:21 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Feb  2 09:20:37 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa4da3b3

dev-ada/gprconfig_kb: update EAPI 7 -> 8

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

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

diff --git a/dev-ada/gprconfig_kb/gprconfig_kb-23.0.0-r2.ebuild 
b/dev-ada/gprconfig_kb/gprconfig_kb-23.0.0-r2.ebuild
new file mode 100644
index 000000000000..6c1b527c0680
--- /dev/null
+++ b/dev-ada/gprconfig_kb/gprconfig_kb-23.0.0-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ADA_COMPAT=( gnat_2021 gcc_12_2_0 gcc_12 )
+
+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=""
+
+RDEPEND="!=dev-ada/gprbuild-2021*"
+
+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