diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-18 12:50:07 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-18 12:50:07 +0000 |
commit | ebb07c94f800907e02d2a6b92c1bc757b2f86f49 (patch) | |
tree | 9b5feb42804ee57e6fe960470f5b0c98c1aa4970 /dev-ada/libadalang-tools | |
parent | 529bbf6d047ac6b80c0d9310ec0f666c145ec5fe (diff) |
gentoo auto-resync : 18:03:2024 - 12:50:07
Diffstat (limited to 'dev-ada/libadalang-tools')
-rw-r--r-- | dev-ada/libadalang-tools/Manifest | 2 | ||||
-rw-r--r-- | dev-ada/libadalang-tools/libadalang-tools-24.0.0.ebuild | 71 |
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-ada/libadalang-tools/Manifest b/dev-ada/libadalang-tools/Manifest index 8ddbaa383a59..f461b631cf62 100644 --- a/dev-ada/libadalang-tools/Manifest +++ b/dev-ada/libadalang-tools/Manifest @@ -1,3 +1,5 @@ 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 EBUILD libadalang-tools-23.0.0-r2.ebuild 1685 BLAKE2B 96f84bc47a13ce306c6209c98430e1299e56cf31febbc7c5cbac2bba158b11d41da33756923034ba761d050e264e0f1f34eae3494a3d97b6638985798d47641c SHA512 78e6a06c23b80c696a9cfeb9af6fe6d11d11908219540452c96728fc37f55771b2fa683c68db193dfc05233f6a843041a17054c6e8f6a70db13914d952f80712 +EBUILD libadalang-tools-24.0.0.ebuild 1713 BLAKE2B 33a1aa44f3f0695c0f3f3ab56ca6c95cd6fc407d896f6116bec82087f1cf7cdfb202476610dcad185f392d7abf4872f4f2850258e2b0ed89422761e74b894df4 SHA512 290cab956407c18818ae29db07b2978552107b70358f8376efe387c77d589d5ab4754c8ade95c2c6fcdb4a5cd7ecd3c49e1e6c4494f72f299fcb38ad688cbdda MISC metadata.xml 438 BLAKE2B f0d65575ba5329888a28fa4b9c2c68365db7e3e30c892889a30e7d0fa94e4de08ceab1c3ba61d8e4c6c39888304d5a674c15095fb223df11529abd1c8468aa86 SHA512 d32995545a62f04f3504f54868c58e8449d19e62bb06b7b63ce14596ed9ee78c5028111ea2111433c200068f69bac0bb3e37989a004e43e7e3f60d115ac498d5 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 +} |