1 |
commit: 7f873b4c39d17c82268c502cf470432939f5d01a |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 18 16:57:21 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 18 17:18:11 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f873b4c |
7 |
|
8 |
sys-apps/findutils: fix python handling when running tests #518838 |
9 |
|
10 |
sys-apps/findutils/findutils-4.5.14-r1.ebuild | 9 ++++++++- |
11 |
1 file changed, 8 insertions(+), 1 deletion(-) |
12 |
|
13 |
diff --git a/sys-apps/findutils/findutils-4.5.14-r1.ebuild b/sys-apps/findutils/findutils-4.5.14-r1.ebuild |
14 |
index 6d0ad70..f4f5a44 100644 |
15 |
--- a/sys-apps/findutils/findutils-4.5.14-r1.ebuild |
16 |
+++ b/sys-apps/findutils/findutils-4.5.14-r1.ebuild |
17 |
@@ -4,7 +4,9 @@ |
18 |
|
19 |
EAPI="4" |
20 |
|
21 |
-inherit eutils flag-o-matic toolchain-funcs |
22 |
+PYTHON_COMPAT=( python2_7 ) |
23 |
+ |
24 |
+inherit eutils flag-o-matic toolchain-funcs python-any-r1 |
25 |
|
26 |
DESCRIPTION="GNU utilities for finding files" |
27 |
HOMEPAGE="https://www.gnu.org/software/findutils/" |
28 |
@@ -18,8 +20,13 @@ IUSE="debug nls selinux static" |
29 |
RDEPEND="selinux? ( sys-libs/libselinux ) |
30 |
nls? ( virtual/libintl )" |
31 |
DEPEND="${RDEPEND} |
32 |
+ test? ( ${PYTHON_DEPS} ) |
33 |
nls? ( sys-devel/gettext )" |
34 |
|
35 |
+pkg_setup() { |
36 |
+ use test && python-any-r1_pkg_setup |
37 |
+} |
38 |
+ |
39 |
src_prepare() { |
40 |
epatch "${FILESDIR}"/${P}-test-bashisms.patch #531020 |
41 |
# Don't build or install locate because it conflicts with slocate, |