diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2022-12-14 08:55:56 +0100 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2022-12-14 08:55:56 +0100 |
commit | cc055d33245dd50dac041b1c112d6368a5f65e16 (patch) | |
tree | 5b578ed45dbc754743cbf6866454027db239df13 /dev-ada | |
parent | dev-ada/templates-parser: new package, add 23.0.0 (diff) | |
download | gentoo-cc055d33245dd50dac041b1c112d6368a5f65e16.tar.gz gentoo-cc055d33245dd50dac041b1c112d6368a5f65e16.tar.bz2 gentoo-cc055d33245dd50dac041b1c112d6368a5f65e16.zip |
dev-ada/libadalang-tools: add 23.0.0
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ada')
-rw-r--r-- | dev-ada/libadalang-tools/Manifest | 1 | ||||
-rw-r--r-- | dev-ada/libadalang-tools/libadalang-tools-23.0.0.ebuild | 70 |
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-ada/libadalang-tools/Manifest b/dev-ada/libadalang-tools/Manifest index 57faecc3da70..fa9b73123a4e 100644 --- a/dev-ada/libadalang-tools/Manifest +++ b/dev-ada/libadalang-tools/Manifest @@ -1 +1,2 @@ DIST libadalang-tools-22.0.0.tar.gz 892619 BLAKE2B 5ba3cc91c0cd251ade396eda1d8de4244712905ef33ec9bb68a76ab20908d4034b78989dc051b2e47a2fd37e41ae49bf46b1459a74742205750c8a60697e27cc SHA512 c9028428379e68644dee140b76c6806b15561484bdc77a8c85c88c1ae4de512b6252f41b415fe767c5c7ae533fba1583e075620bd222a7be240d6cd1130d25bd +DIST libadalang-tools-23.0.0.tar.gz 1101324 BLAKE2B 6bfa794a243126bc5b70b7ab89fd08c9591d009b2a6dc749298804699cec8a067c9babd38d31048eea31a625c6fd5a2a9f6e49cfd97fa371d46a975c5407a65f SHA512 922a0b72ac9fa2a7ce3fa70aa360e67c987ee4ddfb77199a8e63092df640f3d7dc8ebc01d88cce8b97ef91ed6af1fd3555fb7c223cdae91bbdda5e336b3d067e diff --git a/dev-ada/libadalang-tools/libadalang-tools-23.0.0.ebuild b/dev-ada/libadalang-tools/libadalang-tools-23.0.0.ebuild new file mode 100644 index 000000000000..5dbcf4d5336b --- /dev/null +++ b/dev-ada/libadalang-tools/libadalang-tools-23.0.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +ADA_COMPAT=( gnat_2021 gcc_12_2_0 ) +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}]" +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 +} |