commit:     b5e43793fcf6703e48640017106657614e91475d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May 21 10:18:57 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 21 10:18:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5e43793

dev-libs/nanomsg: conditionally build tests

199 -> 101 targets when tests are disabled

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/nanomsg/nanomsg-1.2.1-r1.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-libs/nanomsg/nanomsg-1.2.1-r1.ebuild 
b/dev-libs/nanomsg/nanomsg-1.2.1-r1.ebuild
index d06c61510346..9f9e8d2e2dfb 100644
--- a/dev-libs/nanomsg/nanomsg-1.2.1-r1.ebuild
+++ b/dev-libs/nanomsg/nanomsg-1.2.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -12,7 +12,8 @@ 
SRC_URI="https://github.com/nanomsg/nanomsg/archive/${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="MIT"
 SLOT="0/6.0.1"
 KEYWORDS="amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~riscv x86"
-IUSE="doc"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
 
 BDEPEND="doc? ( dev-ruby/asciidoctor )"
 
@@ -34,6 +35,7 @@ src_configure() {
        local mycmakeargs=(
                -DNN_STATIC_LIB=OFF
                -DNN_ENABLE_DOC=$(usex doc)
+               -DNN_TESTS=$(usex test)
        )
 
        cmake_src_configure

Reply via email to