From 60dfdc8134991a9aecfa999d40f20602db19396a Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Fri, 1 Mar 2024 22:46:19 +0100 Subject: dev-ada/aunit: add doc Signed-off-by: Alfredo Tupone --- dev-ada/aunit/aunit-24.0.0-r1.ebuild | 51 +++++++++++++++++++++++++++ dev-ada/aunit/aunit-24.0.0.ebuild | 38 -------------------- dev-ada/aunit/files/aunit-24.0.0-gentoo.patch | 35 ++++++++++++++++++ 3 files changed, 86 insertions(+), 38 deletions(-) create mode 100644 dev-ada/aunit/aunit-24.0.0-r1.ebuild delete mode 100644 dev-ada/aunit/aunit-24.0.0.ebuild create mode 100644 dev-ada/aunit/files/aunit-24.0.0-gentoo.patch (limited to 'dev-ada') diff --git a/dev-ada/aunit/aunit-24.0.0-r1.ebuild b/dev-ada/aunit/aunit-24.0.0-r1.ebuild new file mode 100644 index 000000000000..09130deee820 --- /dev/null +++ b/dev-ada/aunit/aunit-24.0.0-r1.ebuild @@ -0,0 +1,51 @@ +# 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="Ada unit testing framework" +HOMEPAGE="http://libre.adacore.com/tools/aunit/" +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" + +RDEPEND="${ADA_DEPS}" +DEPEND="${RDEPEND} + dev-ada/gprbuild[${ADA_USEDEP}]" + +REQUIRED_USE="${ADA_REQUIRED_USE}" + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_prepare() { + default + sed -i \ + -e "s|@PF@|${PF}|g" \ + lib/gnat/aunit.gpr \ + || die +} + +src_compile() { + emake GPROPTS_EXTRA="-j$(makeopts_jobs) -v -cargs ${ADAFLAGS}" + if use doc; then + emake -C doc html-all + emake -C doc txt-all + fi +} + +src_install() { + emake INSTALL="${D}"/usr install + einstalldocs + rm -r "${D}"/usr/share/gpr/manifests || die +} + +src_test() { + emake PROJECT_PATH_ARG="ADA_PROJECT_PATH=$(pwd)/lib/gnat" -C test +} diff --git a/dev-ada/aunit/aunit-24.0.0.ebuild b/dev-ada/aunit/aunit-24.0.0.ebuild deleted file mode 100644 index c31c1793e16c..000000000000 --- a/dev-ada/aunit/aunit-24.0.0.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# 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="Ada unit testing framework" -HOMEPAGE="http://libre.adacore.com/tools/aunit/" -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" - -RDEPEND="${ADA_DEPS}" -DEPEND="${RDEPEND} - dev-ada/gprbuild[${ADA_USEDEP}]" - -REQUIRED_USE="${ADA_REQUIRED_USE}" - -src_compile() { - emake GPROPTS_EXTRA="-j$(makeopts_jobs) -v -cargs ${ADAFLAGS}" -} - -src_install() { - emake INSTALL="${D}"/usr install - einstalldocs - mv "${D}"/usr/share/examples/${PN} "${D}"/usr/share/doc/${PF}/examples || die - rmdir "${D}"/usr/share/examples || die - rm -r "${D}"/usr/share/gpr/manifests || die -} - -src_test() { - emake PROJECT_PATH_ARG="ADA_PROJECT_PATH=$(pwd)/lib/gnat" -C test -} diff --git a/dev-ada/aunit/files/aunit-24.0.0-gentoo.patch b/dev-ada/aunit/files/aunit-24.0.0-gentoo.patch new file mode 100644 index 000000000000..934e49b6153c --- /dev/null +++ b/dev-ada/aunit/files/aunit-24.0.0-gentoo.patch @@ -0,0 +1,35 @@ +--- a/lib/gnat/aunit.gpr 2022-12-19 22:08:42.000000000 +0100 ++++ b/lib/gnat/aunit.gpr 2024-03-01 22:32:34.298510972 +0100 +@@ -50,16 +50,16 @@ + + package Install is + for Artifacts ("share/doc/aunit/pdf") +- use ("../../doc/pdf/**"); +- for Artifacts ("share/doc/aunit/txt") +- use ("../../doc/txt/**"); ++ use ("../../doc/build/aunit_cb/pdf/**"); ++ for Artifacts ("share/doc/@PF@") ++ use ("../../doc/build/aunit_cb/txt/**"); + for Artifacts ("share/doc/aunit/info") +- use ("../../doc/info/**"); +- for Artifacts ("share/doc/aunit/html") +- use ("../../doc/html/**"); ++ use ("../../doc/build/aunit_cb/info/**"); ++ for Artifacts ("share/doc/@PF@/html") ++ use ("../../doc/build/aunit_cb/html/**"); + + for Artifacts ("share/gps/plug-ins") use ("../../support/aunit.xml"); +- for Artifacts ("share/examples/aunit") use ("../../examples/*"); ++ for Artifacts ("share/doc/@PF@/examples") use ("../../examples/*"); + end Install; + + end AUnit; +--- a/doc/share/conf.py 2024-03-01 22:35:22.194546565 +0100 ++++ b/doc/share/conf.py 2024-03-01 22:35:34.657400722 +0100 +@@ -95,6 +95,3 @@ + u'AdaCore', doc_name, doc_name, '')] + + +-def setup(app): +- app.add_lexer('ada', ada_pygments.AdaLexer()) +- app.add_lexer('gpr', ada_pygments.GNATProjectLexer()) -- cgit v1.2.3-65-gdbad