svn commit: r405276 - head/math/py-networkx

Ruslan Makhmatkhanov rm at FreeBSD.org
Tue Jan 5 08:42:06 UTC 2016


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 at saltant.com>
  Approved by:	dikshie at 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>


More information about the svn-ports-head mailing list