mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
2f9e0ad0c5
- update to 1.10 - add YAML option (on by default) - remove gratuitous word from option descriptions - USE_PYTHON=concurrent instead of setting EXAMPLESDIR - alphabetize USE_PYTHON - discard pkg-message given all options are enabled by default While here limit python version to 2.x, because it's dependencies graphics/py-graphviz and math/py-matplotlib failed to configure with python3. PR: 204594 Submitted by: John W. O'Brien <john@saltant.com> Approved by: dikshie@sfc.wide.ad.jp (maintainer)
56 lines
1.7 KiB
Makefile
56 lines
1.7 KiB
Makefile
# Created by: dikshie
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= networkx
|
|
PORTVERSION= 1.10
|
|
CATEGORIES= math python
|
|
MASTER_SITES= http://networkx.lanl.gov/download/networkx/ \
|
|
CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= dikshie@sfc.wide.ad.jp
|
|
COMMENT= Tools for complex networks
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
RUN_DEPENDS:= ${PYTHON_PKGNAMEPREFIX}decorator>=3.4.0:${PORTSDIR}/devel/py-decorator
|
|
|
|
# ${PYTHON_PKGNAMEPREFIX}sphinx>=1.2.3:${PORTSDIR}/textproc/py-sphinx \
|
|
# ${PYTHON_PKGNAMEPREFIX}docutils>=0.12:${PORTSDIR}/textproc/py-docutils
|
|
|
|
NO_ARCH= yes
|
|
USES= python:2 shebangfix
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
|
|
PLIST_SUB+= PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER}
|
|
|
|
OPTIONS_DEFINE= EXAMPLES YAML
|
|
OPTIONS_GROUP= MATRIX RENDER
|
|
OPTIONS_GROUP_MATRIX= NUMPY SCIPY
|
|
OPTIONS_GROUP_RENDER= MPL GRAPHVIZ
|
|
OPTIONS_DEFAULT= NUMPY SCIPY MPL GRAPHVIZ YAML
|
|
|
|
NUMPY_DESC= Matrix representation of graphs
|
|
NUMPY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.9.2:${PORTSDIR}/math/py-numpy
|
|
|
|
SCIPY_DESC= Sparse matrix representation of graphs
|
|
SCIPY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scipy>=0.15.1:${PORTSDIR}/science/py-scipy \
|
|
${PYTHON_PKGNAMEPREFIX}scikit-sparse>=0.2:${PORTSDIR}/science/py-scikit-sparse
|
|
|
|
MPL_DESC= Flexible graph rendering
|
|
MPL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>=1.4.0:${PORTSDIR}/math/py-matplotlib
|
|
|
|
GRAPHVIZ_DESC= Additional graph layout and rendering algorithms
|
|
GRAPHVIZ_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}graphviz>=1.2:${PORTSDIR}/graphics/py-graphviz
|
|
|
|
YAML_DESC= Reading and writing YAML files
|
|
YAML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=0:${PORTSDIR}/devel/py-yaml
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|