summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2024-03-18 11:14:48 +0100
committerAlfredo Tupone <tupone@gentoo.org>2024-03-18 11:14:48 +0100
commit844e974274da23d6ef386c42765b4da1fabaa3fa (patch)
treec83811606599a1bbc1baf1f0914242d1e4b36ef1 /dev-ada
parentdev-ada/templates-parser: add 24.0.0 (diff)
downloadgentoo-844e974274da23d6ef386c42765b4da1fabaa3fa.tar.gz
gentoo-844e974274da23d6ef386c42765b4da1fabaa3fa.tar.bz2
gentoo-844e974274da23d6ef386c42765b4da1fabaa3fa.zip
dev-ada/libadalang-tools: add 24.0.0
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ada')
-rw-r--r--dev-ada/libadalang-tools/Manifest1
-rw-r--r--dev-ada/libadalang-tools/libadalang-tools-24.0.0.ebuild71
2 files changed, 72 insertions, 0 deletions
diff --git a/dev-ada/libadalang-tools/Manifest b/dev-ada/libadalang-tools/Manifest
index fca2d1536828..e9b0bd43b601 100644
--- a/dev-ada/libadalang-tools/Manifest
+++ b/dev-ada/libadalang-tools/Manifest
@@ -1 +1,2 @@
DIST libadalang-tools-23.0.0.tar.gz 1101324 BLAKE2B 6bfa794a243126bc5b70b7ab89fd08c9591d009b2a6dc749298804699cec8a067c9babd38d31048eea31a625c6fd5a2a9f6e49cfd97fa371d46a975c5407a65f SHA512 922a0b72ac9fa2a7ce3fa70aa360e67c987ee4ddfb77199a8e63092df640f3d7dc8ebc01d88cce8b97ef91ed6af1fd3555fb7c223cdae91bbdda5e336b3d067e
+DIST libadalang-tools-24.0.0.tar.gz 1083580 BLAKE2B e3d7cb94500afaebb00ba3f727b903cfd6ea57b02efccbf0dc61ef0d625dd06364b67a94c236c4cc8e4eee955e1767b0eb73122895a8f3edfb05c5fea57e18d8 SHA512 982fefa454108a604a67a0ec0d33fc420ccbbc4c03f01eb1cfbfe57cb51ca3bf13eef465775dab0843b5573663150e6d185b3a3887cc1cbcc5a353214842f223
diff --git a/dev-ada/libadalang-tools/libadalang-tools-24.0.0.ebuild b/dev-ada/libadalang-tools/libadalang-tools-24.0.0.ebuild
new file mode 100644
index 000000000000..dc2603b0c70a
--- /dev/null
+++ b/dev-ada/libadalang-tools/libadalang-tools-24.0.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2024 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 multiprocessing
+
+DESCRIPTION="Libadalang-based tools: gnatpp, gnatmetric and gnatstub"
+HOMEPAGE="https://www.adacore.com/community"
+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="+shared static-libs static-pic"
+
+RESTRICT="test"
+
+REQUIRED_USE="|| ( shared static-libs static-pic )
+ ${ADA_REQUIRED_USE}"
+
+RDEPEND="${ADA_DEPS}
+ dev-ada/templates-parser[${ADA_USEDEP}]
+ dev-ada/VSS[${ADA_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-ada/libadalang:=[${ADA_USEDEP},static-libs?,static-pic?]"
+BDEPEND="dev-ada/gprbuild[${ADA_USEDEP}]"
+
+src_compile() {
+ build () {
+ gprbuild -v -k -XLIBRARY_TYPE=$1 -XBUILD_MODE=prod \
+ -P src/lal_tools.gpr -p -j$(makeopts_jobs) \
+ -cargs:Ada ${ADAFLAGS} || die
+ gprbuild -v -k -XLIBRARY_TYPE=$1 -XXMLADA_BUILD=$1 \
+ -XBUILD_MODE=prod -XLALTOOLS_SET=all \
+ -P src/build.gpr -p -j$(makeopts_jobs) \
+ -cargs:Ada ${ADAFLAGS} || die
+ }
+ if use shared; then
+ build relocatable
+ fi
+ if use static-libs; then
+ build static
+ fi
+ if use static-pic; then
+ build static-pic
+ fi
+}
+
+src_install() {
+ build () {
+ gprinstall -XLIBRARY_TYPE=$1 -XBUILD_MODE=prod \
+ --prefix="${D}"/usr --sources-subdir=include/lal_tools \
+ --build-name=$1 --build-var=LIBRARY_TYPE \
+ --build-var=LAL_TOOLS_BUILD \
+ -P src/lal_tools.gpr -p -f || die
+ }
+ if use shared; then
+ build relocatable
+ fi
+ if use static-libs; then
+ build static
+ fi
+ if use static-pic; then
+ build static-pic
+ fi
+ dobin bin/gnat{metric,pp,stub,test}
+ einstalldocs
+}