commit:     7f873b4c39d17c82268c502cf470432939f5d01a
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 18 16:57:21 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Fri Dec 18 17:18:11 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f873b4c

sys-apps/findutils: fix python handling when running tests #518838

 sys-apps/findutils/findutils-4.5.14-r1.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/sys-apps/findutils/findutils-4.5.14-r1.ebuild 
b/sys-apps/findutils/findutils-4.5.14-r1.ebuild
index 6d0ad70..f4f5a44 100644
--- a/sys-apps/findutils/findutils-4.5.14-r1.ebuild
+++ b/sys-apps/findutils/findutils-4.5.14-r1.ebuild
@@ -4,7 +4,9 @@
 
 EAPI="4"
 
-inherit eutils flag-o-matic toolchain-funcs
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils flag-o-matic toolchain-funcs python-any-r1
 
 DESCRIPTION="GNU utilities for finding files"
 HOMEPAGE="https://www.gnu.org/software/findutils/";
@@ -18,8 +20,13 @@ IUSE="debug nls selinux static"
 RDEPEND="selinux? ( sys-libs/libselinux )
        nls? ( virtual/libintl )"
 DEPEND="${RDEPEND}
+       test? ( ${PYTHON_DEPS} )
        nls? ( sys-devel/gettext )"
 
+pkg_setup() {
+       use test && python-any-r1_pkg_setup
+}
+
 src_prepare() {
        epatch "${FILESDIR}"/${P}-test-bashisms.patch #531020
        # Don't build or install locate because it conflicts with slocate,

Reply via email to