1 |
commit: ac9080851649f3d88fd86a47fbe7e40a08c507cf |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Wed Mar 21 02:27:40 2018 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 23 01:34:52 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac908085 |
7 |
|
8 |
sys-fs/fuse: Use python-any-r1.eclass instead of python-single-r1.eclass. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/651048 |
11 |
|
12 |
sys-fs/fuse/fuse-3.2.1.ebuild | 18 ++++++++++++------ |
13 |
1 file changed, 12 insertions(+), 6 deletions(-) |
14 |
|
15 |
diff --git a/sys-fs/fuse/fuse-3.2.1.ebuild b/sys-fs/fuse/fuse-3.2.1.ebuild |
16 |
index 9da51f7e84c..2514b6960a7 100644 |
17 |
--- a/sys-fs/fuse/fuse-3.2.1.ebuild |
18 |
+++ b/sys-fs/fuse/fuse-3.2.1.ebuild |
19 |
@@ -4,7 +4,7 @@ |
20 |
EAPI=6 |
21 |
PYTHON_COMPAT=( python3_{4,5,6} ) |
22 |
|
23 |
-inherit meson multilib-minimal flag-o-matic python-single-r1 |
24 |
+inherit meson multilib-minimal flag-o-matic python-any-r1 |
25 |
|
26 |
DESCRIPTION="An interface for filesystems implemented in userspace" |
27 |
HOMEPAGE="https://github.com/libfuse/libfuse" |
28 |
@@ -14,18 +14,24 @@ LICENSE="GPL-2 LGPL-2.1" |
29 |
SLOT="3" |
30 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
31 |
IUSE="test" |
32 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
33 |
|
34 |
DEPEND="virtual/pkgconfig |
35 |
test? ( |
36 |
${PYTHON_DEPS} |
37 |
- dev-python/pytest[${PYTHON_USEDEP}] |
38 |
- ) |
39 |
- " |
40 |
+ $(python_gen_any_dep 'dev-python/pytest[${PYTHON_USEDEP}]') |
41 |
+ )" |
42 |
RDEPEND="sys-fs/fuse-common" |
43 |
|
44 |
DOCS=( AUTHORS ChangeLog.rst README.md doc/README.NFS doc/kernel.txt ) |
45 |
|
46 |
+python_check_deps() { |
47 |
+ has_version "dev-python/pytest[${PYTHON_USEDEP}]" |
48 |
+} |
49 |
+ |
50 |
+pkg_setup() { |
51 |
+ use test && python-any-r1_pkg_setup |
52 |
+} |
53 |
+ |
54 |
src_prepare() { |
55 |
default |
56 |
|
57 |
@@ -45,7 +51,7 @@ multilib_src_compile() { |
58 |
} |
59 |
|
60 |
multilib_src_test() { |
61 |
- python3 -m pytest test || die |
62 |
+ ${EPYTHON} -m pytest test || die |
63 |
} |
64 |
|
65 |
multilib_src_install() { |