summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2023-02-02 10:16:21 +0100
committerAlfredo Tupone <tupone@gentoo.org>2023-02-02 10:20:37 +0100
commitaa4da3b30e4f1621dd92b2492b59398426a46cfc (patch)
treee80c4ce041b93dc2e52092fe179f7c04745a43fc /dev-ada/gprconfig_kb
parentada.eclass: add ada_target_gcc_12 USE flag (diff)
downloadgentoo-aa4da3b30e4f1621dd92b2492b59398426a46cfc.tar.gz
gentoo-aa4da3b30e4f1621dd92b2492b59398426a46cfc.tar.bz2
gentoo-aa4da3b30e4f1621dd92b2492b59398426a46cfc.zip
dev-ada/gprconfig_kb: update EAPI 7 -> 8
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ada/gprconfig_kb')
-rw-r--r--dev-ada/gprconfig_kb/gprconfig_kb-23.0.0-r2.ebuild41
1 files changed, 41 insertions, 0 deletions
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
+}