View | Details | Raw Unified | Return to bug 232240 | Differences between
and this patch

Collapse All | Expand All

(-)py-networkx1/Makefile (+56 lines)
Line 0 Link Here
1
# Created by: dikshie
2
# $FreeBSD$
3
4
PORTNAME=	networkx
5
PORTVERSION=	1.11
6
CATEGORIES=	math python
7
MASTER_SITES=	http://networkx.lanl.gov/download/networkx/ \
8
		CHEESESHOP
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
10
PKGNAMESUFFIX=	1
11
12
MAINTAINER=	freebsd_ports@k-worx.org
13
COMMENT=	Tools for complex networks / Backported version
14
15
LICENSE=	BSD3CLAUSE
16
17
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}decorator>=3.4.0:devel/py-decorator@${PY_FLAVOR}
18
19
USES=		python shebangfix
20
USE_PYTHON=	autoplist concurrent distutils
21
SHEBANG_FILES=	examples/graph/atlas.py \
22
		examples/multigraph/chess_masters.py \
23
		networkx/generators/tests/test_random_graphs.py
24
25
OPTIONS_DEFINE=	EXAMPLES YAML
26
OPTIONS_GROUP=	MATRIX RENDER
27
OPTIONS_GROUP_MATRIX=	NUMPY SCIPY
28
OPTIONS_GROUP_RENDER=	GRAPHVIZ MPL
29
OPTIONS_DEFAULT=	GRAPHVIZ MPL NUMPY SCIPY YAML
30
31
GRAPHVIZ_DESC=		Additional graph layout and rendering algorithms
32
GRAPHVIZ_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pygraphviz>=1.2:graphics/py-pygraphviz@${PY_FLAVOR}
33
34
MPL_DESC=		Flexible graph rendering
35
MPL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}matplotlib>=1.4.0:math/py-matplotlib@${PY_FLAVOR}
36
37
NUMPY_DESC=		Matrix representation of graphs
38
NUMPY_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.9.2,1:math/py-numpy@${PY_FLAVOR}
39
40
SCIPY_DESC=		Sparse matrix representation of graphs
41
SCIPY_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}scipy>=0.15.1:science/py-scipy@${PY_FLAVOR} \
42
			${PYTHON_PKGNAMEPREFIX}scikit-sparse>=0.2:science/py-scikit-sparse@${PY_FLAVOR}
43
44
YAML_DESC=		Reading and writing YAML files
45
YAML_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR}
46
47
PORTEXAMPLES=	*
48
NO_ARCH=	yes
49
50
PORTSCOUT=	limit:^5\.
51
52
post-install:
53
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
54
	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
55
56
.include <bsd.port.mk>
(-)py-networkx1/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1539454780
2
SHA256 (networkx-1.11.tar.gz) = 0d0e70e10dfb47601cbb3425a00e03e2a2e97477be6f80638fef91d54dd1e4b8
3
SIZE (networkx-1.11.tar.gz) = 1315737
(-)py-networkx1/files/patch-setup.py (+38 lines)
Line 0 Link Here
1
--- setup.py.orig	2015-11-15 23:06:39 UTC
2
+++ setup.py
3
@@ -59,27 +59,6 @@ packages=["networkx",
4
           "networkx.testing",
5
           "networkx.utils"]
6
 
7
-docdirbase  = 'share/doc/networkx-%s' % version
8
-# add basic documentation
9
-data = [(docdirbase, glob("*.txt"))]
10
-# add examples
11
-for d in ['advanced',
12
-          'algorithms',
13
-          'basic',
14
-          '3d_drawing',
15
-          'drawing',
16
-          'graph',
17
-          'multigraph',
18
-          'pygraphviz',
19
-          'readwrite']:
20
-    dd = os.path.join(docdirbase,'examples', d)
21
-    pp = os.path.join('examples', d)
22
-    data.append((dd, glob(os.path.join(pp ,"*.py"))))
23
-    data.append((dd, glob(os.path.join(pp ,"*.bz2"))))
24
-    data.append((dd, glob(os.path.join(pp ,"*.gz"))))
25
-    data.append((dd, glob(os.path.join(pp ,"*.mbox"))))
26
-    data.append((dd, glob(os.path.join(pp ,"*.edgelist"))))
27
-
28
 # add the tests
29
 package_data     = {
30
     'networkx': ['tests/*.py'],
31
@@ -131,7 +110,6 @@ if __name__ == "__main__":
32
         download_url     = release.download_url,
33
         classifiers      = release.classifiers,
34
         packages         = packages,
35
-        data_files       = data,
36
         package_data     = package_data,
37
         install_requires = install_requires,
38
         test_suite       = 'nose.collector',
(-)py-networkx1/pkg-descr (+23 lines)
Line 0 Link Here
1
NetworkX (NX) is a Python package for the creation, manipulation, and
2
study of the structure, dynamics, and functions of complex networks.
3
Features:
4
* Includes standard graph-theoretic and statistical physics functions
5
* Easy exchange of network algorithms between applications, disciplines,
6
  and platforms
7
* Includes many classic graphs and synthetic networks
8
* Nodes and edges can be "anything" (e.g. time-series, text, images,
9
  XML records)
10
* Exploits existing code from high-quality legacy software in C, C++,
11
  Fortran, etc.
12
* Open source (encourages community input)
13
* Unit-tested
14
15
Additional benefits due to Python:
16
* Allows fast prototyping of new algorithms
17
* Easy to teach
18
* Multi-platform
19
* Allows easy access to almost any database
20
21
Note: This is a backported version of the 1.x branch.
22
23
WWW: https://networkx.github.io/

Return to bug 232240