From 908d8e520d6078a592ce8db946e86f9e26a8bbdc Mon Sep 17 00:00:00 2001 From: Andrey Grozin Date: Tue, 16 Jan 2018 21:44:04 +0700 Subject: dev-python/matplotlib: in python3-only setup, don't pull python2 packages in Suggested-by: jan vereecke Closws: https://bugs.gentoo.org/642090 Package-Manager: Portage-2.3.19, Repoman-2.3.6 --- dev-python/matplotlib/matplotlib-2.1.0-r1.ebuild | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'dev-python/matplotlib') diff --git a/dev-python/matplotlib/matplotlib-2.1.0-r1.ebuild b/dev-python/matplotlib/matplotlib-2.1.0-r1.ebuild index 37e6b936a7e4..f50fb4db1178 100644 --- a/dev-python/matplotlib/matplotlib-2.1.0-r1.ebuild +++ b/dev-python/matplotlib/matplotlib-2.1.0-r1.ebuild @@ -34,18 +34,19 @@ REQUIRED_USE=" # #456704 -- a lot of py2-only deps PY2_USEDEP=$(python_gen_usedep python2_7) +PY2_DEPEND=" + $(python_gen_cond_dep 'dev-python/functools32[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'dev-python/subprocess32[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]' python2_7)" COMMON_DEPEND=" dev-python/cycler[${PYTHON_USEDEP}] - dev-python/functools32[${PY2_USEDEP}] >=dev-python/numpy-1.7.1[${PYTHON_USEDEP}] dev-python/python-dateutil:0[${PYTHON_USEDEP}] dev-python/pytz[${PYTHON_USEDEP}] >=dev-python/six-1.10[${PYTHON_USEDEP}] - dev-python/subprocess32[${PY2_USEDEP}] media-fonts/stix-fonts media-libs/freetype:2 media-libs/libpng:0 - python_targets_python2_7? ( dev-python/backports-functools-lru-cache[${PY2_USEDEP}] ) >=media-libs/qhull-2013 cairo? ( dev-python/cairocffi[${PYTHON_USEDEP}] ) gtk2? ( @@ -59,6 +60,7 @@ COMMON_DEPEND=" # dev-python/pycxx DEPEND="${COMMON_DEPEND} + ${PY2_DEPEND} dev-python/versioneer[${PYTHON_USEDEP}] dev-python/setuptools[${PYTHON_USEDEP}] virtual/pkgconfig @@ -82,6 +84,7 @@ DEPEND="${COMMON_DEPEND} )" RDEPEND="${COMMON_DEPEND} + ${PY2_DEPEND} >=dev-python/pyparsing-1.5.6[${PYTHON_USEDEP}] excel? ( dev-python/xlwt[${PYTHON_USEDEP}] ) gtk3? ( -- cgit v1.2.3