From owner-svn-ports-all@freebsd.org Sun Oct 30 11:39:44 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 022D7C14363; Sun, 30 Oct 2016 11:39:44 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B77DA1D9B; Sun, 30 Oct 2016 11:39:43 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9UBdgoH009603; Sun, 30 Oct 2016 11:39:42 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9UBdgAD009601; Sun, 30 Oct 2016 11:39:42 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201610301139.u9UBdgAD009601@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Sun, 30 Oct 2016 11:39:42 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2016 11:39:44 -0000 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 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