summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-08-12 06:23:40 -0400
committerMike Frysinger <vapier@gentoo.org>2015-08-12 06:38:09 -0400
commit29a9b9b90f986edfdbea997315d7bb34762e32a1 (patch)
tree4eb2f41209ee119dcc190c59e52208b5170f180a /sys-libs/ncurses
parentsys-libs/ncurses: build the C++ libs as shared (diff)
downloadgentoo-29a9b9b90f986edfdbea997315d7bb34762e32a1.tar.gz
gentoo-29a9b9b90f986edfdbea997315d7bb34762e32a1.tar.bz2
gentoo-29a9b9b90f986edfdbea997315d7bb34762e32a1.zip
sys-libs/ncurses: avoid building tests when unused
If the user isn't going to run the testsuite, there's no point in building all the test binaries, so put that logic behind the standard USE=test.
Diffstat (limited to 'sys-libs/ncurses')
-rw-r--r--sys-libs/ncurses/ncurses-6.0.ebuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-libs/ncurses/ncurses-6.0.ebuild b/sys-libs/ncurses/ncurses-6.0.ebuild
index 7372e09a589..8a055bf713e 100644
--- a/sys-libs/ncurses/ncurses-6.0.ebuild
+++ b/sys-libs/ncurses/ncurses-6.0.ebuild
@@ -18,7 +18,7 @@ LICENSE="MIT"
# The subslot reflects the SONAME.
SLOT="5/6"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
-IUSE="ada +cxx debug doc gpm minimal profile static-libs tinfo trace unicode"
+IUSE="ada +cxx debug doc gpm minimal profile static-libs test tinfo trace unicode"
DEPEND="gpm? ( sys-libs/gpm[${MULTILIB_USEDEP}] )"
# berkdb? ( sys-libs/db )"
@@ -115,6 +115,7 @@ do_configure() {
$(use_enable !debug leaks)
$(use_with debug expanded)
$(use_with !debug macros)
+ $(use_with test tests)
$(use_with trace)
$(use_with tinfo termlib)
)