diff options
| author | Michał Górny <mgorny@gentoo.org> | 2020-06-07 21:32:56 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2020-06-07 21:33:37 +0200 |
| commit | c2f59153a0e36150ff7a5878552f98d4599d5d07 (patch) | |
| tree | 9dc2f454bd0d7ba182fd5893a2c69231346ebbd4 /dev-python/matplotlib | |
| parent | 97c4dede6786e106dbeb9359b36351ed9358910f (diff) | |
| download | gentoo-c2f59153a0e36150ff7a5878552f98d4599d5d07.tar.gz gentoo-c2f59153a0e36150ff7a5878552f98d4599d5d07.tar.bz2 gentoo-c2f59153a0e36150ff7a5878552f98d4599d5d07.zip | |
dev-python/matplotlib: Disable wxwidgets on py3.9
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/matplotlib')
| -rw-r--r-- | dev-python/matplotlib/matplotlib-3.2.1.ebuild | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/dev-python/matplotlib/matplotlib-3.2.1.ebuild b/dev-python/matplotlib/matplotlib-3.2.1.ebuild index 6be4bf19ff01..5f616ebccb19 100644 --- a/dev-python/matplotlib/matplotlib-3.2.1.ebuild +++ b/dev-python/matplotlib/matplotlib-3.2.1.ebuild @@ -66,7 +66,9 @@ RDEPEND=" dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}] ) wxwidgets? ( - dev-python/wxpython:*[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/wxpython:*[${PYTHON_USEDEP}] + ' python3_{6,7,8}) ) " @@ -106,9 +108,19 @@ pkg_setup() { unset DISPLAY # bug #278524 } +use_supported() { + case ${1} in + wxwidgets) + [[ ${EPYTHON} == python3.[678] ]] + ;; + esac + + return 0 +} + use_setup() { local uword="${2:-${1}}" - if use ${1}; then + if use_supported "${1}" && use "${1}"; then echo "${uword} = True" echo "${uword}agg = True" else |
