Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jan 2016 08:42:05 +0000 (UTC)
From:      Ruslan Makhmatkhanov <rm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r405276 - head/math/py-networkx
Message-ID:  <201601050842.u058g56U049504@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rm
Date: Tue Jan  5 08:42:05 2016
New Revision: 405276
URL: https://svnweb.freebsd.org/changeset/ports/405276

Log:
  math/py-networkx: let it build with python3
  
  Drop the python version limit, by asking user to uncheck some options,
  that will not work with python3 for now.
  
  PR:		204594
  Submitted by:	John W. O'Brien <john@saltant.com>
  Approved by:	dikshie@sfc.wide.ad.jp (maintainer)

Modified:
  head/math/py-networkx/Makefile

Modified: head/math/py-networkx/Makefile
==============================================================================
--- head/math/py-networkx/Makefile	Tue Jan  5 08:36:07 2016	(r405275)
+++ head/math/py-networkx/Makefile	Tue Jan  5 08:42:05 2016	(r405276)
@@ -3,6 +3,7 @@
 
 PORTNAME=	networkx
 PORTVERSION=	1.10
+PORTREVISION=	1
 CATEGORIES=	math python
 MASTER_SITES=	http://networkx.lanl.gov/download/networkx/ \
 		CHEESESHOP
@@ -19,7 +20,7 @@ RUN_DEPENDS:=	${PYTHON_PKGNAMEPREFIX}dec
 #		${PYTHON_PKGNAMEPREFIX}docutils>=0.12:${PORTSDIR}/textproc/py-docutils
 
 NO_ARCH=	yes
-USES=		python:2 shebangfix
+USES=		python shebangfix
 USE_PYTHON=	autoplist concurrent distutils
 
 PLIST_SUB+=	PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER}
@@ -46,10 +47,16 @@ GRAPHVIZ_RUN_DEPENDS=	${PYTHON_PKGNAMEPR
 YAML_DESC=	Reading and writing YAML files
 YAML_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>=0:${PORTSDIR}/devel/py-yaml
 
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} >= 3000 && (${PORT_OPTIONS:MMPL} || ${PORT_OPTIONS:MGRAPHVIZ})
+BROKEN=		Neither math/py-matplotlib nor graphics/py-graphviz support Python 3.x yet. Please disable both the MPL and GRAPHVIZ options
+.endif
+
 PORTEXAMPLES=	*
 
 post-install:
 	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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