dev-python/http-parser: Replace custom cython dep with python_gen_cond_dep
authorMichał Górny <mgorny@gentoo.org>
Wed, 9 Dec 2015 17:38:24 +0000 (18:38 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 9 Dec 2015 19:06:47 +0000 (20:06 +0100)
dev-python/http-parser/http-parser-0.8.3.ebuild

index 085dbef7d3ff924e7f12ca3ebfcd6ecd82572fe0..bf086e559ba2dbadbba9a3adbad4d5bc48dbd5ca 100644 (file)
@@ -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