diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-01 23:49:35 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-01 23:49:35 +0000 |
commit | f8ce9f2b903374606b4f44deb7727aca194ef970 (patch) | |
tree | 60b15bcfcc2e2f638e9307f40ecbabb9ca911b1c /dev-ada/aunit/aunit-24.0.0.ebuild | |
parent | c16ac3f2fa4ccc7440fd13db1e5872a3e319f48c (diff) |
gentoo auto-resync : 01:01:2024 - 23:49:35
Diffstat (limited to 'dev-ada/aunit/aunit-24.0.0.ebuild')
-rw-r--r-- | dev-ada/aunit/aunit-24.0.0.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-ada/aunit/aunit-24.0.0.ebuild b/dev-ada/aunit/aunit-24.0.0.ebuild new file mode 100644 index 000000000000..c31c1793e16c --- /dev/null +++ b/dev-ada/aunit/aunit-24.0.0.ebuild @@ -0,0 +1,38 @@ +# 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 +} |