sys-libs/ldb: require USE=python for tests
authorBen Kohler <bkohler@gentoo.org>
Fri, 14 Feb 2020 14:17:54 +0000 (08:17 -0600)
committerBen Kohler <bkohler@gentoo.org>
Fri, 14 Feb 2020 14:18:08 +0000 (08:18 -0600)
Closes: https://bugs.gentoo.org/684564
Closes: https://bugs.gentoo.org/709600
Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
sys-libs/ldb/ldb-2.0.8.ebuild

index 0b0fd52ea9c6067c883e129e701a4c6223220e73..714949be4e5a9c8386c2f6679a5f707fabbab6c7 100644 (file)
@@ -14,7 +14,10 @@ SRC_URI="https://www.samba.org/ftp/pub/${PN}/${P}.tar.gz"
 LICENSE="LGPL-3"
 SLOT="0/${PV}"
 KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86"
-IUSE="doc +ldap +lmdb python"
+IUSE="doc +ldap +lmdb python test"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="test? ( python )"
 
 RDEPEND="
        !elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )