summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-12-18 11:57:21 -0500
committerMike Frysinger <vapier@gentoo.org>2015-12-18 12:18:11 -0500
commit7f873b4c39d17c82268c502cf470432939f5d01a (patch)
tree98048cb0be9e7813da07e60e106626385648b234
parentsys-apps/findutils: drop old 4.5.x versions (diff)
downloadgentoo-7f873b4c39d17c82268c502cf470432939f5d01a.tar.gz
gentoo-7f873b4c39d17c82268c502cf470432939f5d01a.tar.bz2
gentoo-7f873b4c39d17c82268c502cf470432939f5d01a.zip
sys-apps/findutils: fix python handling when running tests #518838
-rw-r--r--sys-apps/findutils/findutils-4.5.14-r1.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys-apps/findutils/findutils-4.5.14-r1.ebuild b/sys-apps/findutils/findutils-4.5.14-r1.ebuild
index 6d0ad7085f59..f4f5a4415e0a 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,