From owner-svn-ports-all@freebsd.org Wed Dec 6 19:46:55 2017 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 01161E8A3DF; Wed, 6 Dec 2017 19:46:55 +0000 (UTC) (envelope-from tobik@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 C1B9980020; Wed, 6 Dec 2017 19:46:54 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB6JkrI7081046; Wed, 6 Dec 2017 19:46:53 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB6JkrT8081045; Wed, 6 Dec 2017 19:46:53 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201712061946.vB6JkrT8081045@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Wed, 6 Dec 2017 19:46:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r455676 - head/math/py-matplotlib X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/math/py-matplotlib X-SVN-Commit-Revision: 455676 X-SVN-Commit-Repository: ports 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.25 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: Wed, 06 Dec 2017 19:46:55 -0000 Author: tobik Date: Wed Dec 6 19:46:53 2017 New Revision: 455676 URL: https://svnweb.freebsd.org/changeset/ports/455676 Log: 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 Modified: head/math/py-matplotlib/Makefile Modified: head/math/py-matplotlib/Makefile ============================================================================== --- head/math/py-matplotlib/Makefile Wed Dec 6 19:26:04 2017 (r455675) +++ head/math/py-matplotlib/Makefile Wed Dec 6 19:46:53 2017 (r455676) @@ -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 QT4 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