diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2019-10-22 05:32:15 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2019-10-22 05:32:15 +0000 |
commit | 9414e89dfe1fd6990889cd5f7688eaec9b39c409 (patch) | |
tree | 46c4f9c245a91ac6cdc3ede25838754b66cd3115 | |
parent | dc64885b59326f25b7d0747b8c16995f0e4e991c (diff) | |
download | ports-9414e89dfe1fd6990889cd5f7688eaec9b39c409.tar.gz ports-9414e89dfe1fd6990889cd5f7688eaec9b39c409.zip |
Notes
-rw-r--r-- | math/py-networkx/Makefile | 18 | ||||
-rw-r--r-- | math/py-networkx/distinfo | 6 | ||||
-rw-r--r-- | math/py-networkx/files/patch-setup.py | 39 |
3 files changed, 50 insertions, 13 deletions
diff --git a/math/py-networkx/Makefile b/math/py-networkx/Makefile index 9eb0a67ede9d..0816601a1006 100644 --- a/math/py-networkx/Makefile +++ b/math/py-networkx/Makefile @@ -2,7 +2,8 @@ # $FreeBSD$ PORTNAME= networkx -DISTVERSION= 2.4 +DISTVERSION= 2.1 +PORTEPOCH= 1 CATEGORIES= math python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -17,8 +18,8 @@ RUN_DEPENDS:= ${PYTHON_PKGNAMEPREFIX}decorator>=4.1.0:devel/py-decorator@${PY_FL # ${PYTHON_PKGNAMEPREFIX}sphinx>=1.2.3:textproc/py-sphinx@${PY_FLAVOR} \ # ${PYTHON_PKGNAMEPREFIX}docutils>=0.12:textproc/py-docutils@${PY_FLAVOR} -USES= python:3.5+ shebangfix -USE_PYTHON= autoplist distutils +USES= python shebangfix zip +USE_PYTHON= autoplist concurrent distutils SHEBANG_GLOB= *.py NO_ARCH= yes @@ -26,7 +27,7 @@ CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}networkx1 PLIST_SUB+= PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER} -OPTIONS_DEFINE= YAML +OPTIONS_DEFINE= EXAMPLES YAML OPTIONS_GROUP= MATRIX RENDER OPTIONS_GROUP_MATRIX= NUMPY SCIPY OPTIONS_GROUP_RENDER= MPL GRAPHVIZ @@ -48,13 +49,10 @@ GRAPHVIZ_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygraphviz>=1.2:graphics/py-pygraph YAML_DESC= Reading and writing YAML files YAML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} -POST_PLIST= rm-examples-docs-from-plist - -rm-examples-docs-from-plist: - @${REINPLACE_CMD} '/.*\/examples\//d' ${TMPPLIST} - @${REINPLACE_CMD} '/.*\/doc\//d' ${TMPPLIST} +PORTEXAMPLES= * post-install: - @${RM} -r ${STAGEDIR}${PREFIX}/share + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> diff --git a/math/py-networkx/distinfo b/math/py-networkx/distinfo index f54df8b3c0aa..4a5467755c16 100644 --- a/math/py-networkx/distinfo +++ b/math/py-networkx/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1571523367 -SHA256 (networkx-2.4.tar.gz) = f8f4ff0b6f96e4f9b16af6b84622597b5334bf9cae8cf9b2e42e7985d5c95c64 -SIZE (networkx-2.4.tar.gz) = 1462338 +TIMESTAMP = 1534738249 +SHA256 (networkx-2.1.zip) = 64272ca418972b70a196cb15d9c85a5a6041f09a2f32e0d30c0255f25d458bb1 +SIZE (networkx-2.1.zip) = 1612593 diff --git a/math/py-networkx/files/patch-setup.py b/math/py-networkx/files/patch-setup.py new file mode 100644 index 000000000000..5ae341839a65 --- /dev/null +++ b/math/py-networkx/files/patch-setup.py @@ -0,0 +1,39 @@ +--- setup.py.orig 2018-08-20 04:50:16 UTC ++++ setup.py +@@ -57,28 +57,6 @@ packages = ["networkx", + "networkx.testing", + "networkx.utils"] + +-docdirbase = 'share/doc/networkx-%s' % version +-# add basic documentation +-data = [(docdirbase, glob("*.txt"))] +-# add examples +-for d in ['advanced', +- 'algorithms', +- 'basic', +- '3d_drawing', +- 'drawing', +- 'graph', +- 'javascript', +- 'jit', +- 'pygraphviz', +- 'subclass']: +- dd = os.path.join(docdirbase, 'examples', d) +- pp = os.path.join('examples', d) +- data.append((dd, glob(os.path.join(pp, "*.py")))) +- data.append((dd, glob(os.path.join(pp, "*.bz2")))) +- data.append((dd, glob(os.path.join(pp, "*.gz")))) +- data.append((dd, glob(os.path.join(pp, "*.mbox")))) +- data.append((dd, glob(os.path.join(pp, "*.edgelist")))) +- + # add the tests + package_data = { + 'networkx': ['tests/*.py'], +@@ -130,7 +108,6 @@ if __name__ == "__main__": + download_url=release.download_url, + classifiers=release.classifiers, + packages=packages, +- data_files=data, + package_data=package_data, + install_requires=install_requires, + extras_require=extras_require, |