commit:     ac9080851649f3d88fd86a47fbe7e40a08c507cf
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Wed Mar 21 02:27:40 2018 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Fri Mar 23 01:34:52 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac908085

sys-fs/fuse: Use python-any-r1.eclass instead of python-single-r1.eclass.

Closes: https://bugs.gentoo.org/651048

 sys-fs/fuse/fuse-3.2.1.ebuild | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/sys-fs/fuse/fuse-3.2.1.ebuild b/sys-fs/fuse/fuse-3.2.1.ebuild
index 9da51f7e84c..2514b6960a7 100644
--- a/sys-fs/fuse/fuse-3.2.1.ebuild
+++ b/sys-fs/fuse/fuse-3.2.1.ebuild
@@ -4,7 +4,7 @@
 EAPI=6
 PYTHON_COMPAT=( python3_{4,5,6} )
 
-inherit meson multilib-minimal flag-o-matic python-single-r1
+inherit meson multilib-minimal flag-o-matic python-any-r1
 
 DESCRIPTION="An interface for filesystems implemented in userspace"
 HOMEPAGE="https://github.com/libfuse/libfuse";
@@ -14,18 +14,24 @@ LICENSE="GPL-2 LGPL-2.1"
 SLOT="3"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sh ~sparc ~x86"
 IUSE="test"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 DEPEND="virtual/pkgconfig
        test? (
                ${PYTHON_DEPS}
-               dev-python/pytest[${PYTHON_USEDEP}]
-       )
-               "
+               $(python_gen_any_dep 'dev-python/pytest[${PYTHON_USEDEP}]')
+       )"
 RDEPEND="sys-fs/fuse-common"
 
 DOCS=( AUTHORS ChangeLog.rst README.md doc/README.NFS doc/kernel.txt )
 
+python_check_deps() {
+       has_version "dev-python/pytest[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+       use test && python-any-r1_pkg_setup
+}
+
 src_prepare() {
        default
 
@@ -45,7 +51,7 @@ multilib_src_compile() {
 }
 
 multilib_src_test() {
-       python3 -m pytest test || die
+       ${EPYTHON} -m pytest test || die
 }
 
 multilib_src_install() {

Reply via email to