Skip to content

Commit

Permalink
dev-ada/VSS: fix test
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/830125
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Alfredo Tupone <[email protected]>
  • Loading branch information
atupone committed Dec 28, 2021
1 parent ebe92f3 commit 74f9617
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions dev-ada/VSS/VSS-22.0.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
}

0 comments on commit 74f9617

Please sign in to comment.