summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/findutils/findutils-4.5.14-r1.ebuild')
-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,