commit:     cfe5896f6b5cf781c5c5d87e0b61d883f4dc65fe
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  9 17:38:24 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Dec  9 19:06:47 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfe5896f

dev-python/http-parser: Replace custom cython dep with python_gen_cond_dep

 dev-python/http-parser/http-parser-0.8.3.ebuild | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/dev-python/http-parser/http-parser-0.8.3.ebuild 
b/dev-python/http-parser/http-parser-0.8.3.ebuild
index 085dbef..bf086e5 100644
--- a/dev-python/http-parser/http-parser-0.8.3.ebuild
+++ b/dev-python/http-parser/http-parser-0.8.3.ebuild
@@ -19,15 +19,8 @@ IUSE="examples"
 
 RDEPEND=""
 DEPEND="${RDEPEND}
-       dev-python/setuptools[${PYTHON_USEDEP}]"
-
-cython_dep() {
-       local flag
-       for flag in $(python_gen_useflags 'python*'); do
-               DEPEND+=" ${flag}? ( dev-python/cython[${flag}(-)] )"
-       done
-}
-cython_dep
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]' 'python*')"
 
 python_compile() {
        if [[ ${EPYTHON} != python3* ]]; then

Reply via email to