diff options
-rw-r--r-- | math/py-matplotlib/Makefile | 9 | ||||
-rw-r--r-- | math/py-matplotlib/files/patch-setup.cfg | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/math/py-matplotlib/Makefile b/math/py-matplotlib/Makefile index 216c6e62fc71..513fc01d1143 100644 --- a/math/py-matplotlib/Makefile +++ b/math/py-matplotlib/Makefile @@ -29,7 +29,7 @@ USE_PYTHON= autoplist distutils CFLAGS+= -I${LOCALBASE}/include OPTIONS_DEFINE= EXAMPLES GTKBACKEND GTKAGGBACKEND QT4AGGBACKEND \ - TKAGGBACKEND WXAGGBACKEND + QT5AGGBACKEND TKAGGBACKEND WXAGGBACKEND OPTIONS_DEFAULT= GTKBACKEND GTKAGGBACKEND TKAGGBACKEND OPTIONS_SUB= yes GTKBACKEND_DESC= GTK backend support @@ -45,6 +45,11 @@ QT4AGGBACKEND_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt4-gui>=4.8.5:x11-toolkits/ QT4AGGBACKEND_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qt4-gui>=4.8.5:x11-toolkits/py-qt4-gui QT4AGGBACKEND_VARS= QT4AGG_BACKEND=True QT4AGGBACKEND_VARS_OFF= QT4AGG_BACKEND=False +QT5AGGBACKEND_DESC= Qt5Agg backend support +QT5AGGBACKEND_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sip>=${SIP_VERSION}:devel/py-sip ${PYTHON_PKGNAMEPREFIX}qt5-widgets>=5.5.1:x11-toolkits/py-qt5-widgets +QT5AGGBACKEND_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sip>=${SIP_VERSION}:devel/py-sip ${PYTHON_PKGNAMEPREFIX}qt5-widgets>=5.5.1:x11-toolkits/py-qt5-widgets +QT5AGGBACKEND_VARS= QT5AGG_BACKEND=True +QT5AGGBACKEND_VARS_OFF= QT5AGG_BACKEND=False TKAGGBACKEND_DESC= TKAgg backend support TKAGGBACKEND_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter TKAGGBACKEND_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter @@ -63,6 +68,7 @@ PORTEXAMPLES= * GTKBACKEND_BUILD_DEPENDS= Xvfb:x11-servers/xorg-vfbserver GTKAGGBACKEND_BUILD_DEPENDS= Xvfb:x11-servers/xorg-vfbserver QT4AGGBACKEND_BUILD_DEPENDS+= Xvfb:x11-servers/xorg-vfbserver +QT5AGGBACKEND_BUILD_DEPENDS+= Xvfb:x11-servers/xorg-vfbserver TKAGGBACKEND_BUILD_DEPENDS+= Xvfb:x11-servers/xorg-vfbserver WXAGGBACKEND_BUILD_DEPENDS= Xvfb:x11-servers/xorg-vfbserver .endif @@ -82,6 +88,7 @@ post-patch: ${REINPLACE_CMD} -e 's|%%GTK_BACKEND%%|${GTK_BACKEND}|g' \ -e 's|%%GTKAGG_BACKEND%%|${GTKAGG_BACKEND}|g' \ -e 's|%%QT4AGG_BACKEND%%|${QT4AGG_BACKEND}|g' \ + -e 's|%%QT5AGG_BACKEND%%|${QT5AGG_BACKEND}|g' \ -e 's|%%TKAGG_BACKEND%%|${TKAGG_BACKEND}|g' \ -e 's|%%WXAGG_BACKEND%%|${WXAGG_BACKEND}|g' \ ${WRKSRC}/setup.cfg diff --git a/math/py-matplotlib/files/patch-setup.cfg b/math/py-matplotlib/files/patch-setup.cfg index f237d71845e1..c364140c860a 100644 --- a/math/py-matplotlib/files/patch-setup.cfg +++ b/math/py-matplotlib/files/patch-setup.cfg @@ -61,6 +61,7 @@ +gtk = %%GTK_BACKEND%% +gtkagg = %%GTKAGG_BACKEND%% +qt4agg = %%QT4AGG_BACKEND%% ++qt5agg = %%QT5AGG_BACKEND%% +tkagg = %%TKAGG_BACKEND%% +wxagg = %%WXAGG_BACKEND%% +#macosx = False |