From d69399c7befdd98cda62d6a1788ae2aa7f104c5e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 7 Jan 2025 06:41:06 +0000 Subject: gentoo auto-resync : 07:01:2025 - 06:41:06 --- dev-ada/templates-parser/Manifest | 2 +- .../templates-parser-25.0.0-r1.ebuild | 157 --------------------- .../templates-parser-25.0.0-r2.ebuild | 155 ++++++++++++++++++++ 3 files changed, 156 insertions(+), 158 deletions(-) delete mode 100644 dev-ada/templates-parser/templates-parser-25.0.0-r1.ebuild create mode 100644 dev-ada/templates-parser/templates-parser-25.0.0-r2.ebuild (limited to 'dev-ada/templates-parser') diff --git a/dev-ada/templates-parser/Manifest b/dev-ada/templates-parser/Manifest index 129c0a1a9e2d..063df5a612fc 100644 --- a/dev-ada/templates-parser/Manifest +++ b/dev-ada/templates-parser/Manifest @@ -1,5 +1,5 @@ DIST templates-parser-24.0.0.tar.gz 226649 BLAKE2B 6e84721cbe28164e9c5f683906ff0b360a7dca82a2b91a7fe0253546c6d617d82ff2bb385133435e48c1588821daa3171eee86aeb0de27a55f38cad372f858db SHA512 3661ccb4be3bc3a6a81bbf04244f3b943c87655cad25370e857bb09d24b86ee801388a4a71d63f9135d5f069c54bc184cef4a8a25bcc90d0add8a15c67f8c374 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 -EBUILD templates-parser-25.0.0-r1.ebuild 3895 BLAKE2B d6b84d9c1355817bd89dc3495a87124de1f55dc87703dd8bd3773a5fbc9a6232ca227f81828cdbf91d8a963a22d940f300b21b60ccd89bd2a0a3fc34cb4206bc SHA512 21a40dbd1f8c942a2dbd466090d816ef9b0a9b9d38cdabe2d6ac62fb471fead6880cbb09fbafc77db1f9e38cc88d84becfbccf7fafa98394794ca1a4196dbbd4 +EBUILD templates-parser-25.0.0-r2.ebuild 3861 BLAKE2B f3aed9a3afcf29020d77d4c0c51874945ffa4a6ff201b9097d304fc6d08a384379740f9e207ed37fdadb09e1dc90a504dead7015decbdcdf366ca653d7adafeb SHA512 cb39dde6b1e8878df0599722c46098bf8603e2d111beb3d9659ce0a36b622e791d1a87fa727823dc26feebab597d3ba2363889a27ae6834212fde179dcdd1fb0 MISC metadata.xml 630 BLAKE2B 85fcb405c631c72043010eb82381dc7d2b118f288fdd358f42adbd2113189d38912efa90bd5980626cd648bbbf8549c1dd6feeb9591c605d49d1b40f33744f24 SHA512 f2914f4184cfc534641e8b6ba24690a9be459b153fb3fad9491cbe330ba9dedc524923756d1a371473e757f15dbb345883af9bd14dbbfbbe0cfebf688e5eff4b 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 deleted file mode 100644 index 1d01279f3846..000000000000 --- a/dev-ada/templates-parser/templates-parser-25.0.0-r1.ebuild +++ /dev/null @@ -1,157 +0,0 @@ -# Copyright 2022-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -ADA_COMPAT=( 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 -} diff --git a/dev-ada/templates-parser/templates-parser-25.0.0-r2.ebuild b/dev-ada/templates-parser/templates-parser-25.0.0-r2.ebuild new file mode 100644 index 000000000000..6fd9775b8876 --- /dev/null +++ b/dev-ada/templates-parser/templates-parser-25.0.0-r2.ebuild @@ -0,0 +1,155 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ADA_COMPAT=( gcc_12 gcc_13 gcc_14 ) +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?,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() { + cp config/tp_xmlada_dummy.gpr tp_xmlada.gpr + echo "PRJ_TARGET = Linux" > makefile.setup + echo "VERSION = $(ver_cut 1-2)" >> makefile.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