dev-python/matplotlib: dependency on backports-functools-lru-cache fixed
authorAndrey Grozin <grozin@gentoo.org>
Tue, 21 Nov 2017 12:13:28 +0000 (19:13 +0700)
committerAndrey Grozin <grozin@gentoo.org>
Tue, 21 Nov 2017 12:13:28 +0000 (19:13 +0700)
With python_targets_python2_7, backports-functools-lru-cache is needed at runtime.
It is also needed at build time with USE=test,
or with USE=doc if python2_ is the only element in PYTHON_TARGETS.
Therefore, Ive added it to COMMON_DEPEND.

Closes: https://bugs.gentoo.org/637588
Package-Manager: Portage-2.3.14, Repoman-2.3.6

dev-python/matplotlib/matplotlib-2.1.0-r1.ebuild

index db96f8cb7fbe4a344d90c9ba2411e126e6d7b566..1d9b9b227acb1572aba2b9456d7623dbd81ebd4e 100644 (file)
@@ -45,6 +45,7 @@ COMMON_DEPEND="
        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? (
@@ -76,7 +77,6 @@ DEPEND="${COMMON_DEPEND}
                media-gfx/graphviz[cairo]
        )
        test? (
-               dev-python/backports-functools-lru-cache[${PY2_USEDEP}]
                dev-python/mock[${PYTHON_USEDEP}]
                >=dev-python/nose-0.11.1[${PYTHON_USEDEP}]
                )"