aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authortobik <tobik@FreeBSD.org>2017-12-07 03:46:53 +0800
committerKoop Mast <kwm@rainbow-runner.nl>2018-02-04 06:05:07 +0800
commit60d82abd632da4636c9377a144f336360caed105 (patch)
treee6aa9829692a06fd651571a967343759304bd31c /math
parent096ab137722840c00c6848b0c28e2de2ff358694 (diff)
downloadfreebsd-ports-gnome-60d82abd632da4636c9377a144f336360caed105.tar.gz
freebsd-ports-gnome-60d82abd632da4636c9377a144f336360caed105.tar.zst
freebsd-ports-gnome-60d82abd632da4636c9377a144f336360caed105.zip
math/py-matplotlib: Allow build for Python 3.x
- x11-toolkits/{py-gtk2,py-wxPython28} do not support Python 3.x, so exclude the GTKBACKEND, GTKAGGBACKEND, and WXAGGBACKEND in that case. PR: 213636 Reported by: lbartoletti@tuxfamily.org Submitted by: rsmith@xs4all.nl (based on) Reviewed by: mat Approved by: maintainer timeout Differential Revision: https://reviews.freebsd.org/D13377
Diffstat (limited to 'math')
-rw-r--r--math/py-matplotlib/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/math/py-matplotlib/Makefile b/math/py-matplotlib/Makefile
index 83b113e31c3c..704b2ec23b2a 100644
--- a/math/py-matplotlib/Makefile
+++ b/math/py-matplotlib/Makefile
@@ -27,7 +27,7 @@ RUN_DEPENDS= ${PYNUMPY} \
USE_GITHUB= yes
-USES= compiler:c++11-lib gettext pkgconfig python:2.7 shebangfix uniquefiles:dirs
+USES= compiler:c++11-lib gettext pkgconfig python shebangfix uniquefiles:dirs
USE_PYTHON= autoplist distutils
CFLAGS+= -I${LOCALBASE}/include
@@ -35,6 +35,11 @@ OPTIONS_DEFINE= EXAMPLES GTKBACKEND GTKAGGBACKEND QT4AGGBACKEND \
QT5AGGBACKEND TKAGGBACKEND WXAGGBACKEND
OPTIONS_DEFAULT= GTKBACKEND GTKAGGBACKEND TKAGGBACKEND
OPTIONS_SUB= yes
+.if ${FLAVOR:U:Mpy3*}
+# x11-toolkits/py-gtk2, x11-toolkits/py-wxPython28 do not support Python 3
+OPTIONS_EXCLUDE= GTKBACKEND GTKAGGBACKEND WXAGGBACKEND
+.endif
+
GTKBACKEND_DESC= GTK backend support
GTKBACKEND_VARS= GTK_BACKEND=True
GTKBACKEND_VARS_OFF= GTK_BACKEND=False