Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Oct 2016 11:39:42 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r424942 - in head/math/py-matplotlib: . files
Message-ID:  <201610301139.u9UBdgAD009601@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Sun Oct 30 11:39:42 2016
New Revision: 424942
URL: https://svnweb.freebsd.org/changeset/ports/424942

Log:
  math/py-matplotlib: Add Qt5Agg backend option
  
  - Now that there are Qt5 python bindings in ports, matplotlib can
    be configured to use them.
  
  PR:		212763
  Submitted by:	Matthieu Volat <mazhe@alkumuna.eu>
  Approved by:	mainland@apeiron.net (maintainer)

Modified:
  head/math/py-matplotlib/Makefile
  head/math/py-matplotlib/files/patch-setup.cfg

Modified: head/math/py-matplotlib/Makefile
==============================================================================
--- head/math/py-matplotlib/Makefile	Sun Oct 30 11:14:41 2016	(r424941)
+++ head/math/py-matplotlib/Makefile	Sun Oct 30 11:39:42 2016	(r424942)
@@ -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_PK
 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

Modified: head/math/py-matplotlib/files/patch-setup.cfg
==============================================================================
--- head/math/py-matplotlib/files/patch-setup.cfg	Sun Oct 30 11:14:41 2016	(r424941)
+++ head/math/py-matplotlib/files/patch-setup.cfg	Sun Oct 30 11:39:42 2016	(r424942)
@@ -61,6 +61,7 @@
 +gtk = %%GTK_BACKEND%%
 +gtkagg = %%GTKAGG_BACKEND%%
 +qt4agg = %%QT4AGG_BACKEND%%
++qt5agg = %%QT5AGG_BACKEND%%
 +tkagg = %%TKAGG_BACKEND%%
 +wxagg = %%WXAGG_BACKEND%%
 +#macosx = False



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610301139.u9UBdgAD009601>