sci-chemistry/dssp: conditionally build tests

9->6 targets when tests are disabled

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-05-24 03:59:42 +01:00
parent 144dcffd61
commit 99785a80e0

View File

@@ -13,7 +13,8 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
# doc disabled as it only generates a PDF from the manpage for now
# https://github.com/PDB-REDO/dssp/issues/64
#IUSE="doc"
IUSE="test"
RESTRICT="!test? ( test )"
CDEPEND="
dev-libs/boost:=[zlib]
@@ -42,6 +43,7 @@ src_configure() {
-DINSTALL_LIBRARY=YES
#-DBUILD_DOCUMENTATION=$(usex doc)
-DBUILD_DOCUMENTATION=NO
-DBUILD_TESTING=$(usex test)
)
cmake_src_configure
}