dev-util/cmake: build tests conditionally
authorMichael Palimaka <kensington@gentoo.org>
Thu, 25 Apr 2019 04:52:44 +0000 (14:52 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Thu, 25 Apr 2019 04:53:16 +0000 (14:53 +1000)
Closes: https://bugs.gentoo.org/683742
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Michael Palimaka <kensington@gentoo.org>
dev-util/cmake/cmake-3.14.3.ebuild

index 81acae6e75272161198170185def4f6d3b6611f4..0ec739545d3b73ec12747682410329e20afaca18 100644 (file)
@@ -17,7 +17,7 @@ LICENSE="CMake"
 SLOT="0"
 [[ "${PV}" = *_rc* ]] || \
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
-IUSE="doc emacs system-jsoncpp ncurses qt5"
+IUSE="doc emacs system-jsoncpp ncurses qt5 test"
 
 RDEPEND="
        app-crypt/rhash
@@ -165,6 +165,7 @@ src_configure() {
                -DSPHINX_MAN=$(usex doc)
                -DSPHINX_HTML=$(usex doc)
                -DBUILD_CursesDialog="$(usex ncurses)"
+               -DBUILD_TESTING=$(usex test)
        )
 
        if use qt5 ; then