diff options
author | Sam James <sam@gentoo.org> | 2023-05-31 04:33:40 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-05-31 04:33:40 +0100 |
commit | 8d5428f7bbd5dc4fe9e8cb36c9383a86adbb96a0 (patch) | |
tree | a95b1e2e593d08dd501591c4f61d402d10f8b40b /net-libs/libssh2 | |
parent | sys-fs/mtd-utils: wire up tests (diff) | |
download | gentoo-8d5428f7bbd5dc4fe9e8cb36c9383a86adbb96a0.tar.gz gentoo-8d5428f7bbd5dc4fe9e8cb36c9383a86adbb96a0.tar.bz2 gentoo-8d5428f7bbd5dc4fe9e8cb36c9383a86adbb96a0.zip |
net-libs/libssh2: conditionally set test options
Closes: https://bugs.gentoo.org/907443
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs/libssh2')
-rw-r--r-- | net-libs/libssh2/libssh2-1.11.0.ebuild | 11 | ||||
-rw-r--r-- | net-libs/libssh2/libssh2-9999.ebuild | 12 |
2 files changed, 20 insertions, 3 deletions
diff --git a/net-libs/libssh2/libssh2-1.11.0.ebuild b/net-libs/libssh2/libssh2-1.11.0.ebuild index 2f60c46c3928..30a399914f72 100644 --- a/net-libs/libssh2/libssh2-1.11.0.ebuild +++ b/net-libs/libssh2/libssh2-1.11.0.ebuild @@ -47,9 +47,16 @@ multilib_src_configure() { -DBUILD_TESTING=$(usex test) -DCRYPTO_BACKEND=${crypto_backend} -DENABLE_ZLIB_COMPRESSION=$(usex zlib) - -DRUN_SSHD_TESTS=OFF - -DRUN_DOCKER_TESTS=OFF ) + + if use test ; then + # Pass separately to avoid unused var warnings w/ USE=-test + mycmakeargs+=( + -DRUN_SSHD_TESTS=OFF + -DRUN_DOCKER_TESTS=OFF + ) + fi + cmake_src_configure } diff --git a/net-libs/libssh2/libssh2-9999.ebuild b/net-libs/libssh2/libssh2-9999.ebuild index 290d28ce2558..8a5ad181cafd 100644 --- a/net-libs/libssh2/libssh2-9999.ebuild +++ b/net-libs/libssh2/libssh2-9999.ebuild @@ -48,10 +48,20 @@ multilib_src_configure() { -DRUN_SSHD_TESTS=OFF -DRUN_DOCKER_TESTS=OFF ) + + if use test ; then + # Pass separately to avoid unused var warnings w/ USE=-test + mycmakeargs+=( + -DRUN_SSHD_TESTS=OFF + -DRUN_DOCKER_TESTS=OFF + ) + fi + + cmake_src_configure } multilib_src_install_all() { einstalldocs - find "${ED}" -name '*.la' -delete || die + find "${ED}" -name '*.a' -delete || die } |