diff options
Diffstat (limited to 'dev-ada/aunit')
-rw-r--r-- | dev-ada/aunit/Manifest | 3 | ||||
-rw-r--r-- | dev-ada/aunit/aunit-24.0.0-r1.ebuild (renamed from dev-ada/aunit/aunit-24.0.0.ebuild) | 17 | ||||
-rw-r--r-- | dev-ada/aunit/files/aunit-24.0.0-gentoo.patch | 35 |
3 files changed, 52 insertions, 3 deletions
diff --git a/dev-ada/aunit/Manifest b/dev-ada/aunit/Manifest index 81f34eb81569..da3a343486d9 100644 --- a/dev-ada/aunit/Manifest +++ b/dev-ada/aunit/Manifest @@ -1,5 +1,6 @@ +AUX aunit-24.0.0-gentoo.patch 1347 BLAKE2B a11543913de0b0f698814ae2d3897beacf54c8dc87c643b2064bf8511343fd32c1054e6f3060c232c80bc92cf9584ba324b4e8556d0bac4f5e0438e131211a7c SHA512 8382f2497984977d0344beccf77782fb34313a532bd9148ca10f32464dfe9e3292c52a9dfc96f2ccbb77348100685cb62bcda475e610edeb86b4cc30049cdfcf DIST aunit-23.0.0.tar.gz 131699 BLAKE2B 04ff77214ab6f4f5d59ea0609fffbc6fcfb4695d2fbbed45efa14e2b745c33868e1c134e5d00a7c3d8f11b1a8d15c6212110c78a53df4230b5862fb9b912a434 SHA512 450caa79e4808188107cd065665ca9cab599934e3934d18406b08d3ccebe26c1e95cd0c712ea3403d6082c7c5e8fd9ecf09ae3b63d231b80ad575048b3d61943 DIST aunit-24.0.0.tar.gz 131699 BLAKE2B e43e7a94b278597475767d93f28a95a586abeaf45d141ea7035df9cb45d1be67c189a5be3d0364943b4649270f8f96d7cfd20fcba7a28917b14266c9e9424815 SHA512 25b973d1eb35e9e15ed24abe9c4ad7165d684c0e72abe619dcb9bec04cef8b28c78c1994e96e4bc29fd3b06567e15360f47ac87f49e1fa9888f55675defc226f EBUILD aunit-23.0.0-r1.ebuild 918 BLAKE2B 87b83757ebdd9b4b48507eae4d97005784be280dfacc48c3735531197691589945531871e98b4583a94a2efb1c294584a28a538a6a0f6d93fc80ee781ae61224 SHA512 7f78e9c734d80f15274a2d224bb23a343fe653dcd9ae3fab104747b9004dfe0a703b963d9cb10bf8ea2d27d49857f94317ecf2e85e6559cdd82d6865da6bb81f -EBUILD aunit-24.0.0.ebuild 920 BLAKE2B 7631d53c2f50211fc359c615686144289c69a3e714c05d85713d9ac4c8a6237382cdc096a28721a4702d3d1dc984fa3f588b3d673212c84c972371c311c3371a SHA512 bf8751678099c5de0e23fe0964f41e7f6fe0054ac5397824a38b0d3d04dd3028448fade702f99cecc1d8e89bf1eeb9a1459580b0fb6f237ff3cdf6345eaa7145 +EBUILD aunit-24.0.0-r1.ebuild 1020 BLAKE2B 0528b01cf1a1fa44d15c76d7dca9f52a7d86af62770e6342361385fc920688a1c5c51f8104a0e9dda7ed64de2106ab66f242e9e17aef7ab79b45cf21610e82b4 SHA512 41c6d3559142194bd340b7932961d5a6138965c196b20d5fe59a0a8b3ffa317f525cee44c8707e3e3f01caf72326c657850461666425edc53a1c5caa9632b80a MISC metadata.xml 843 BLAKE2B 3f8a899e8d22a411596aae79b739e3cf47b7b867bedede255761146d65e70adfd810544528018212b8a3f36a59f2d886682146a6370ab33c976f676d331b9390 SHA512 2ae746ded1a937362aad360ccd273143b495e43e71aeffb23dbcc71f93154bcc2fce6fcf6fa99d2a7ab1140ffb52ece0b08d1a010a627c0d10ee80e7984fdc92 diff --git a/dev-ada/aunit/aunit-24.0.0.ebuild b/dev-ada/aunit/aunit-24.0.0-r1.ebuild index c31c1793e16c..09130deee820 100644 --- a/dev-ada/aunit/aunit-24.0.0.ebuild +++ b/dev-ada/aunit/aunit-24.0.0-r1.ebuild @@ -14,6 +14,7 @@ SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" +IUSE="doc" RDEPEND="${ADA_DEPS}" DEPEND="${RDEPEND} @@ -21,15 +22,27 @@ DEPEND="${RDEPEND} 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 - 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 } 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()) |