From ff733bfb4d0bd82175e03255004faef8721b53ea Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 2 Jan 2025 06:31:11 +0000 Subject: gentoo auto-resync : 02:01:2025 - 06:31:11 --- dev-ada/templates-parser/Manifest | 7 +- dev-ada/templates-parser/metadata.xml | 5 + .../templates-parser-23.0.0-r1.ebuild | 45 ------ .../templates-parser-23.0.0-r2.ebuild | 45 ------ .../templates-parser-25.0.0-r1.ebuild | 157 +++++++++++++++++++++ 5 files changed, 165 insertions(+), 94 deletions(-) delete mode 100644 dev-ada/templates-parser/templates-parser-23.0.0-r1.ebuild delete mode 100644 dev-ada/templates-parser/templates-parser-23.0.0-r2.ebuild create mode 100644 dev-ada/templates-parser/templates-parser-25.0.0-r1.ebuild (limited to 'dev-ada/templates-parser') diff --git a/dev-ada/templates-parser/Manifest b/dev-ada/templates-parser/Manifest index da82cafdc5b5..9caa75a1a521 100644 --- a/dev-ada/templates-parser/Manifest +++ b/dev-ada/templates-parser/Manifest @@ -1,6 +1,5 @@ -DIST templates-parser-23.0.0.tar.gz 225459 BLAKE2B 0971030e3079ff93b876bcb51925208eeee63837878a24589700dc9e0c025272e2d7920f82ee9b769c04857e4701d3eed629a1ac1f0979714c47fc132a188bed SHA512 c0a94b42391c61b4251cbbe86f91c506f46f6eed5be3779385bf199cf43281b704c68fd078b8b917948675976538168c1ac4c1f3b757f6db9988a45af7bfc4a5 DIST templates-parser-24.0.0.tar.gz 226649 BLAKE2B 6e84721cbe28164e9c5f683906ff0b360a7dca82a2b91a7fe0253546c6d617d82ff2bb385133435e48c1588821daa3171eee86aeb0de27a55f38cad372f858db SHA512 3661ccb4be3bc3a6a81bbf04244f3b943c87655cad25370e857bb09d24b86ee801388a4a71d63f9135d5f069c54bc184cef4a8a25bcc90d0add8a15c67f8c374 -EBUILD templates-parser-23.0.0-r1.ebuild 1011 BLAKE2B ef95a12ef02ae5a130056a58121bd4d1f115716f1c790047ba3b2be5dbf518d95b656398cff9a951f443dddc1052bc1d83b7d28b3176bcfcc732c984584788ce SHA512 2b19679f7414dfb43dc17a701e1ebe737717c292bc1a8b705d897ab5ba0f0a4d42907fe368c0a68ec417f122d64fe66e75f6ee62f2e7ce5890cd553a8e486e04 -EBUILD templates-parser-23.0.0-r2.ebuild 1020 BLAKE2B 05188dad7fe7eac6de420a86a7a6f31b8809e240c360f589d165d5d189f0e099571d3dfe2356277883a09e59548ab1d355903afa5302e8bc1c94f63099aa2e5a SHA512 4b3e8b4163d6cf795fc1ca8ab6172eaffcd55d5e441cc2667b56e49de14b27556c9d72f330e41f8a94c6df708a2b993e92a4f40ef382d8d39194da791939b84e +DIST templates-parser-25.0.0.tar.gz 259459 BLAKE2B b0ba2ad87cbd9cb34773cce54160a30e59b566ec72ce773525ba4cbb33be659dd83f23846bcb6d6fd88726c7cfae52e2993c1ced052f078bd589b14cf73cef55 SHA512 902e41f713dd8446e08ba6f180b4c88c35d37da3476d0c925a4b6a05fb5038ff9ec1b0daa0443a55e82f902867b774efb4e28c0b7d8ec59fb15d050ee523ee87 EBUILD templates-parser-24.0.0.ebuild 1022 BLAKE2B 86edd650de78cc010460baadb67560089457fbcd584cae67ba9fc4b951396f5d776bb520f4960da8f1553ad2d667308e0c8af6b75b72ea2466db07016456f6d7 SHA512 9ff929b285cfd0d5d226cedb7388286d295ff7bc22bdcdfe5e835475614b7846d8cc465cbf4012b40985ad8952e4ba8d4d234670c8e036963063c99d26182d39 -MISC metadata.xml 370 BLAKE2B 69c033fb988741a15510bfa2550038d9618b0d062e289f529c60c513cc9e63d0cd721a1f48212602f90be74e2f08e806bf0a6745b2488cfd6dde600a10eaaca6 SHA512 5ecbbb2c164d96711c20aa96dfbec89c17516406a649e8d1afa68455e262800f43b3f3697d9715a371027a850e821fcf80deb4c3f64ae0ece72a20edb1577767 +EBUILD templates-parser-25.0.0-r1.ebuild 3905 BLAKE2B 2b0f7fc311656da3ca467c03384c8e9a159c6b03c78f0b9170e8bab83e3042d37e44ba4efedb9dbb1ae94079c6c088f1fb5007179b9be957a22ae03b3aad6c1b SHA512 46277ee252cb2eb76a126da43c85a64f0e0b8500209a815dce173e210172ac7034484dba4063374239d6101a24c838d729de4a0e319fa0173cb413dfe2566db1 +MISC metadata.xml 630 BLAKE2B 85fcb405c631c72043010eb82381dc7d2b118f288fdd358f42adbd2113189d38912efa90bd5980626cd648bbbf8549c1dd6feeb9591c605d49d1b40f33744f24 SHA512 f2914f4184cfc534641e8b6ba24690a9be459b153fb3fad9491cbe330ba9dedc524923756d1a371473e757f15dbb345883af9bd14dbbfbbe0cfebf688e5eff4b diff --git a/dev-ada/templates-parser/metadata.xml b/dev-ada/templates-parser/metadata.xml index 71e5ca6a8779..eb0de48e9af6 100644 --- a/dev-ada/templates-parser/metadata.xml +++ b/dev-ada/templates-parser/metadata.xml @@ -6,7 +6,12 @@ Build shared library + Build static library with pic code + + The templates parser package has been designed to parse files and to + replace some specific tags into these files by some specified values. + AdaCore/templates-parser diff --git a/dev-ada/templates-parser/templates-parser-23.0.0-r1.ebuild b/dev-ada/templates-parser/templates-parser-23.0.0-r1.ebuild deleted file mode 100644 index 501a155a74e7..000000000000 --- a/dev-ada/templates-parser/templates-parser-23.0.0-r1.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 2022-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -ADA_COMPAT=( gnat_2021 gcc_12 ) -inherit ada multiprocessing - -DESCRIPTION="A template engine" -HOMEPAGE="https://github.com/AdaCore/templates-parser" -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" -RESTRICT="test" - -RDEPEND="${ADA_DEPS} - dev-ada/xmlada[${ADA_USEDEP},shared?,static-libs?] - shared? ( dev-ada/xmlada[static-pic] )" -DEPEND="${RDEPEND} - dev-ada/gprbuild[${ADA_USEDEP}]" - -REQUIRED_USE="|| ( shared static-libs ) - ${ADA_REQUIRED_USE}" - -src_configure() { - emake PROCESSORS=$(makeopts_jobs) \ - DEFAULT_LIBRARY_TYPE=$(usex shared relocatable static) \ - ENABLE_STATIC=$(usex static-libs true false) \ - ENABLE_SHARED=$(usex shared true false) \ - prefix=/usr \ - setup -} - -src_compile() { - emake GPROPTS=-v -} - -src_install() { - emake DESTDIR="${D}" -j1 install - einstalldocs -} diff --git a/dev-ada/templates-parser/templates-parser-23.0.0-r2.ebuild b/dev-ada/templates-parser/templates-parser-23.0.0-r2.ebuild deleted file mode 100644 index d014363fa2a1..000000000000 --- a/dev-ada/templates-parser/templates-parser-23.0.0-r2.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 2022-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="A template engine" -HOMEPAGE="https://github.com/AdaCore/templates-parser" -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" -RESTRICT="test" - -RDEPEND="${ADA_DEPS} - dev-ada/xmlada[${ADA_USEDEP},shared?,static-libs?] - shared? ( dev-ada/xmlada[static-pic] )" -DEPEND="${RDEPEND} - dev-ada/gprbuild[${ADA_USEDEP}]" - -REQUIRED_USE="|| ( shared static-libs ) - ${ADA_REQUIRED_USE}" - -src_configure() { - emake PROCESSORS=$(makeopts_jobs) \ - DEFAULT_LIBRARY_TYPE=$(usex shared relocatable static) \ - ENABLE_STATIC=$(usex static-libs true false) \ - ENABLE_SHARED=$(usex shared true false) \ - prefix=/usr \ - setup -} - -src_compile() { - emake GPROPTS=-v -} - -src_install() { - emake DESTDIR="${D}" -j1 install - einstalldocs -} diff --git a/dev-ada/templates-parser/templates-parser-25.0.0-r1.ebuild b/dev-ada/templates-parser/templates-parser-25.0.0-r1.ebuild new file mode 100644 index 000000000000..e6e1c9babf22 --- /dev/null +++ b/dev-ada/templates-parser/templates-parser-25.0.0-r1.ebuild @@ -0,0 +1,157 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ADA_COMPAT=( gnat_2021 gcc_12 gcc_13 ) +PYTHON_COMPAT=( python3_{10..13} python3_13t ) +inherit ada python-any-r1 multiprocessing + +DESCRIPTION="A template engine" +HOMEPAGE="https://github.com/AdaCore/templates-parser" +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="doc man +shared static-libs static-pic test" +RESTRICT="!test? ( test )" + +RDEPEND="${ADA_DEPS} + dev-ada/xmlada[${ADA_USEDEP},shared?,static-libs?] + shared? ( dev-ada/xmlada[static-pic] )" +DEPEND="${RDEPEND} + dev-ada/gprbuild[${ADA_USEDEP}]" +BDEPEND="doc? ( + dev-tex/latexmk + dev-texlive/texlive-latexextra +) +man? ( + dev-python/sphinx + dev-python/sphinx-rtd-theme +) +test? ( + ${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-ada/e3-testsuite[${PYTHON_USEDEP}] + ') + dev-ada/gnatmem +)" + +REQUIRED_USE="|| ( shared static-libs static-pic ) + ${ADA_REQUIRED_USE} + doc? ( man ) + test? ( static-libs ) +" + +python_check_deps() { + use test || return 0 + python_has_version "dev-ada/e3-testsuite[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + # Drop tests that require TP_XMLADA + rm -r regtests/tests/010{7,9}* || die + default +} + +src_configure() { + emake PROCESSORS=$(makeopts_jobs) \ + ENABLE_STATIC=$(usex static-libs true false) \ + ENABLE_SHARED=$(usex shared true false) \ + prefix=/usr \ + setup +} + +src_compile() { + build() { + gprbuild -p -v -XPRJ_BUILD=Release -XPRJ_TARGET=Linux \ + -XTP_XMLADA=Disabled -XPROCESSORS=$(makeopts_jobs) \ + -XVERSION=$(ver_cut 1-2) -XLIBRARY_TYPE=$1 -XXMLADA_BUILD=$1 \ + --subdirs=${CHOST}/release/$1 \ + -Ptemplates_parser -largs ${LDFLAGS} -cargs ${ADAFLAGS} \ + || die "gprbuild failed" + } + if use shared; then + build relocatable + fi + if use static-libs; then + build static + fi + if use static-pic; then + build static-pic + fi + local lib + if use shared; then + lib=relocatable + elif use static-libs; then + lib=static + else + lib=static-pic + fi + gprbuild -p -v -XPRJ_BUILD=Release -XPRJ_TARGET=Linux \ + -XTP_XMLADA=Disabled -XPROCESSORS=$(makeopts_jobs) \ + -XVERSION=$(ver_cut 1-2) -XLIBRARY_TYPE=${lib} -XXMLADA_BUILD=${lib} \ + --subdirs=${CHOST}/release/${lib} -Ptools/tools -largs ${LDFLAGS} \ + -cargs ${ADAFLAGS} \ + || die "gprbuild failed" + if use man; then + emake -C docs man GPROPTS=-v + fi + if use doc; then + emake -C docs html epub latexpdf GPROPTS=-v + fi +} + +src_install() { + build() { + gprinstall -XPRJ_BUILD=Release -XPRJ_TARGET=Linux \ + -XTP_XMLADA=Disabled -XPROCESSORS=$(makeopts_jobs) \ + -XVERSION=$(ver_cut 1-2) -XLIBRARY_TYPE=$1 -XXMLADA_BUILD=$1 \ + -p -f --prefix="${D}"/usr --build-var=LIBRARY_TYPE \ + --build-var=TEMPLATES_PARSER_BUILD --subdirs=${CHOST}/release/$1 \ + --build-name=$1 -Ptemplates_parser \ + || die "gprinstall failed" + } + if use shared; then + build relocatable + fi + if use static-libs; then + build static + fi + if use static-pic; then + build static-pic + fi + local lib + if use shared; then + lib=relocatable + elif use static-libs; then + lib=static + else + lib=static-pic + fi + gprinstall -XPRJ_BUILD=Release -XPRJ_TARGET=Linux -XTP_XMLADA=Disabled \ + -XPROCESSORS=$(makeopts_jobs) -XVERSION=$(ver_cut 1-2) \ + -XLIBRARY_TYPE=${lib} -XXMLADA_BUILD=${lib} -p -f --prefix="${D}"/usr \ + --build-var=LIBRARY_TYPE --build-var=TEMPLATES_PARSER_BUILD \ + --mode=usage --subdirs=${CHOST}/release/${lib} \ + --install-name=templates_parser -Ptools/tools \ + || die "gprinstall failed" + DOCS="README.md" + if use doc; then + mv "${D}"/usr/share/doc/templates_parser "${D}"/usr/share/doc/"${PF}" || die + DOCS+=" docs/build/epub/Templates_ParserTemplatesEngine.epub" + fi + einstalldocs + use man && doman docs/build/man/templates_parser.1 + rm -r "${D}"/usr/share/gpr/manifests +} + +src_test() { + emake -j1 test +} -- cgit v1.2.3