dev-util/binaryen: test dependencies

Closes: https://bugs.gentoo.org/834742
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-03-16 08:03:38 +01:00
parent 9240374437
commit 91a379ff12

View File

@@ -3,7 +3,9 @@
EAPI=8
inherit cmake
PYTHON_COMPAT=( python3_{8..10} pypy3 )
inherit cmake python-any-r1
DESCRIPTION="Compiler and toolchain infrastructure library for WebAssembly"
HOMEPAGE="https://github.com/WebAssembly/binaryen"
@@ -15,6 +17,14 @@ SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
DEPEND="
test? (
${PYTHON_DEPS}
$(python_gen_any_dep '>=dev-python/filecheck-0.0.17[${PYTHON_USEDEP}]')
$(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]')
)
"
RESTRICT="!test? ( test )"
src_configure() {
@@ -26,5 +36,5 @@ src_configure() {
}
src_test() {
./check.py || die
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BUILD_DIR}/lib" "${EPYTHON}" check.py --binaryen-bin="${BUILD_DIR}/bin" || die
}