Lines 2-54
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= networkx |
4 |
PORTNAME= networkx |
5 |
DISTVERSION= 2.1 |
5 |
PORTVERSION= 1.11 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= math python |
6 |
CATEGORIES= math python |
8 |
MASTER_SITES= CHEESESHOP |
7 |
MASTER_SITES= http://networkx.lanl.gov/download/networkx/ \ |
|
|
8 |
CHEESESHOP |
9 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
9 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
|
|
10 |
PKGNAMESUFFIX= 1 |
10 |
|
11 |
|
11 |
MAINTAINER= dikshie@sfc.wide.ad.jp |
12 |
MAINTAINER= freebsd_ports@k-worx.org |
12 |
COMMENT= Tools for complex networks |
13 |
COMMENT= Tools for complex networks / Backported version |
13 |
|
14 |
|
14 |
LICENSE= BSD3CLAUSE |
15 |
LICENSE= BSD3CLAUSE |
15 |
|
16 |
|
16 |
RUN_DEPENDS:= ${PYTHON_PKGNAMEPREFIX}decorator>=4.1.0:devel/py-decorator@${PY_FLAVOR} |
17 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}decorator>=3.4.0:devel/py-decorator@${PY_FLAVOR} |
17 |
|
18 |
|
18 |
# ${PYTHON_PKGNAMEPREFIX}sphinx>=1.2.3:textproc/py-sphinx@${PY_FLAVOR} \ |
19 |
USES= python shebangfix |
19 |
# ${PYTHON_PKGNAMEPREFIX}docutils>=0.12:textproc/py-docutils@${PY_FLAVOR} |
20 |
USE_PYTHON= autoplist concurrent distutils |
20 |
|
21 |
|
21 |
USES= python shebangfix zip |
|
|
22 |
USE_PYTHON= autoplist concurrent distutils |
23 |
SHEBANG_GLOB= *.py |
24 |
NO_ARCH= yes |
22 |
NO_ARCH= yes |
|
|
23 |
PORTSCOUT= limit:^5\. |
24 |
PORTEXAMPLES= * |
25 |
SHEBANG_FILES= examples/graph/atlas.py \ |
26 |
examples/multigraph/chess_masters.py \ |
27 |
networkx/generators/tests/test_random_graphs.py |
25 |
|
28 |
|
26 |
PLIST_SUB+= PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER} |
29 |
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}py-networkx |
27 |
|
30 |
|
28 |
OPTIONS_DEFINE= EXAMPLES YAML |
31 |
OPTIONS_DEFINE= EXAMPLES YAML |
29 |
OPTIONS_GROUP= MATRIX RENDER |
32 |
OPTIONS_GROUP= MATRIX RENDER |
30 |
OPTIONS_GROUP_MATRIX= NUMPY SCIPY |
33 |
OPTIONS_GROUP_MATRIX= NUMPY SCIPY |
31 |
OPTIONS_GROUP_RENDER= MPL GRAPHVIZ |
34 |
OPTIONS_GROUP_RENDER= GRAPHVIZ MPL |
32 |
OPTIONS_DEFAULT= NUMPY SCIPY MPL GRAPHVIZ YAML |
35 |
OPTIONS_DEFAULT= GRAPHVIZ MPL NUMPY SCIPY YAML |
33 |
|
36 |
|
34 |
NUMPY_DESC= Matrix representation of graphs |
37 |
GRAPHVIZ_DESC= Additional graph layout and rendering algorithms |
|
|
38 |
GRAPHVIZ_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygraphviz>=1.2:graphics/py-pygraphviz@${PY_FLAVOR} |
39 |
|
40 |
MPL_DESC= Flexible graph rendering |
41 |
MPL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>=1.4.0:math/py-matplotlib@${PY_FLAVOR} |
42 |
|
43 |
NUMPY_DESC= Matrix representation of graphs |
35 |
NUMPY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.9.2,1:math/py-numpy@${PY_FLAVOR} |
44 |
NUMPY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.9.2,1:math/py-numpy@${PY_FLAVOR} |
36 |
|
45 |
|
37 |
SCIPY_DESC= Sparse matrix representation of graphs |
46 |
SCIPY_DESC= Sparse matrix representation of graphs |
38 |
SCIPY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scipy>=0.15.1:science/py-scipy@${PY_FLAVOR} \ |
47 |
SCIPY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scipy>=0.15.1:science/py-scipy@${PY_FLAVOR} \ |
39 |
${PYTHON_PKGNAMEPREFIX}scikit-sparse>=0.2:science/py-scikit-sparse@${PY_FLAVOR} |
48 |
${PYTHON_PKGNAMEPREFIX}scikit-sparse>=0.2:science/py-scikit-sparse@${PY_FLAVOR} |
40 |
|
49 |
|
41 |
MPL_DESC= Flexible graph rendering |
50 |
YAML_DESC= Reading and writing YAML files |
42 |
MPL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>=1.4.0:math/py-matplotlib@${PY_FLAVOR} |
|
|
43 |
|
44 |
GRAPHVIZ_DESC= Additional graph layout and rendering algorithms |
45 |
GRAPHVIZ_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygraphviz>=1.2:graphics/py-pygraphviz@${PY_FLAVOR} |
46 |
|
47 |
YAML_DESC= Reading and writing YAML files |
48 |
YAML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} |
51 |
YAML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} |
49 |
|
52 |
|
50 |
PORTEXAMPLES= * |
|
|
51 |
|
52 |
post-install: |
53 |
post-install: |
53 |
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
54 |
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
54 |
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} |
55 |
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} |