summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2021-12-28 11:25:42 +0100
committerAlfredo Tupone <tupone@gentoo.org>2021-12-28 11:25:42 +0100
commit74f961794c3cf1592b4af3ce77eaec05e8698dea (patch)
treebee3b678b2c7b14f0345a8c6d825baa5478f0b39 /dev-ada
parentdev-vcs/git: Stabilize 2.34.1 arm64, #830134 (diff)
downloadgentoo-74f961794c3cf1592b4af3ce77eaec05e8698dea.tar.gz
gentoo-74f961794c3cf1592b4af3ce77eaec05e8698dea.tar.bz2
gentoo-74f961794c3cf1592b4af3ce77eaec05e8698dea.zip
dev-ada/VSS: fix test
Closes: https://bugs.gentoo.org/830125 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ada')
-rw-r--r--dev-ada/VSS/VSS-22.0.0.ebuild18
1 files changed, 16 insertions, 2 deletions
diff --git a/dev-ada/VSS/VSS-22.0.0.ebuild b/dev-ada/VSS/VSS-22.0.0.ebuild
index 170d744c2a58..4b8a933229a2 100644
--- a/dev-ada/VSS/VSS-22.0.0.ebuild
+++ b/dev-ada/VSS/VSS-22.0.0.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-ADA_COMPAT=( gnat_202{0,1} )
+ADA_COMPAT=( gnat_2021 )
inherit ada multiprocessing
DESCRIPTION="A high level string and text processing library"
@@ -14,12 +14,26 @@ SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz
LICENSE="GPL-3 gcc-runtime-library-exception-3.1"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
REQUIRED_USE="${ADA_REQUIRED_USE}"
RDEPEND="${ADA_DEPS}"
DEPEND="${RDEPEND}"
-BDEPEND="dev-ada/gprbuild[${ADA_USEDEP}]"
+BDEPEND="dev-ada/gprbuild[${ADA_USEDEP}]
+ test? ( app-i18n/unicode-data )"
+
+src_prepare() {
+ mkdir data
+ ln -sf /usr/share/unicode-data data/ucd || die
+ default
+}
src_compile() {
emake GPRBUILD_FLAGS="-p -j$(makeopts_jobs) -v"
}
+
+src_test() {
+ emake -j1 GPRBUILD_FLAGS="-p -j$(makeopts_jobs) -v" build_tests
+ emake check_text check_json
+}