From ebe8e28a8c98251e7896bf95f3921936ea5e087e Mon Sep 17 00:00:00 2001 From: rm Date: Tue, 5 Jan 2016 08:42:05 +0000 Subject: 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 Approved by: dikshie@sfc.wide.ad.jp (maintainer) --- math/py-networkx/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'math/py-networkx') diff --git a/math/py-networkx/Makefile b/math/py-networkx/Makefile index 065a88d2c419..ad8e136949bd 100644 --- a/math/py-networkx/Makefile +++ b/math/py-networkx/Makefile @@ -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}decorator>=3.4.0:${PORTSDIR}/devel/py-decor # ${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_PKGNAMEPREFIX}graphviz>=1.2:${PORTSDIR}/graphics/ YAML_DESC= Reading and writing YAML files YAML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=0:${PORTSDIR}/devel/py-yaml +.include + +.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 +.include -- cgit