diff options
author | tota <tota@FreeBSD.org> | 2011-08-07 14:02:49 +0800 |
---|---|---|
committer | tota <tota@FreeBSD.org> | 2011-08-07 14:02:49 +0800 |
commit | 895da91915eaeda6f08c8ff387222dc1f0d3f99e (patch) | |
tree | f99cfc72328898182ec65834901763124f0d003f /graphics/py-nwdiag | |
parent | d50e4bbe36977ef7e79a407ed7b6c0f9c34275b7 (diff) | |
download | freebsd-ports-gnome-895da91915eaeda6f08c8ff387222dc1f0d3f99e.tar.gz freebsd-ports-gnome-895da91915eaeda6f08c8ff387222dc1f0d3f99e.tar.zst freebsd-ports-gnome-895da91915eaeda6f08c8ff387222dc1f0d3f99e.zip |
- Add a new port: graphics/py-nwdiag
`nwdiag` generate network-diagram image file from spec-text file.
Features
* Generate network-diagram from dot like text (basic feature).
* Multilingualization for node-label (utf-8 only).
WWW: http://blockdiag.com/nwdiag/build/html/
Diffstat (limited to 'graphics/py-nwdiag')
-rw-r--r-- | graphics/py-nwdiag/Makefile | 54 | ||||
-rw-r--r-- | graphics/py-nwdiag/distinfo | 2 | ||||
-rw-r--r-- | graphics/py-nwdiag/pkg-descr | 7 | ||||
-rw-r--r-- | graphics/py-nwdiag/pkg-plist | 48 |
4 files changed, 111 insertions, 0 deletions
diff --git a/graphics/py-nwdiag/Makefile b/graphics/py-nwdiag/Makefile new file mode 100644 index 000000000000..0a44df81fd70 --- /dev/null +++ b/graphics/py-nwdiag/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: py-nwdiag +# Date created: 2011-08-07 +# Whom: TAKATSU Tomonari <tota@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= nwdiag +PORTVERSION= 0.3.3 +CATEGORIES= graphics python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= tota@FreeBSD.org +COMMENT= A simple network-diagram image generator + +LICENSE= ASL +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PKGNAMEPREFIX}imaging>=1.1.5:${PORTSDIR}/graphics/py-imaging \ + ${PKGNAMEPREFIX}funcparserlib>=0.3.4:${PORTSDIR}/devel/py-funcparserlib \ + ${PKGNAMEPREFIX}blockdiag>=0.8.7:${PORTSDIR}/graphics/py-blockdiag + +USE_PYTHON= yes +USE_PYDISTUTILS= easy_install + +DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} +EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} + +PORTDOCS= README.txt +PORTEXAMPLES= * + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${INSTALL_WRKSRC}/src/${PORTDOCS} ${DOCSDIR} +.endif +.if !defined(NOPORTEXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + @${INSTALL_DATA} ${INSTALL_WRKSRC}/examples/${PORTEXAMPLES} ${EXAMPLESDIR} +.endif + +x-generate-plist: + ${ECHO} bin/${PORTNAME} > pkg-plist.new + ${FIND} ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG} -type f | ${SORT} | \ + ${SED} -e 's,${PYTHON_SITELIBDIR},%%PYTHON_SITELIBDIR%%,' \ + -e 's,${PYEASYINSTALL_EGG},%%PYEASYINSTALL_EGG%%,' \ + >> pkg-plist.new + ${FIND} ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG} -type d -depth | ${SORT} -r | \ + ${SED} -e 's,${PYTHON_SITELIBDIR},@dirrm %%PYTHON_SITELIBDIR%%,' \ + -e 's,${PYEASYINSTALL_EGG},%%PYEASYINSTALL_EGG%%,' \ + >> pkg-plist.new + +.include <bsd.port.mk> diff --git a/graphics/py-nwdiag/distinfo b/graphics/py-nwdiag/distinfo new file mode 100644 index 000000000000..2ec458319e5d --- /dev/null +++ b/graphics/py-nwdiag/distinfo @@ -0,0 +1,2 @@ +SHA256 (nwdiag-0.3.3.tar.gz) = 898597e0012c6a4c1d562c9de63a41e44b9773c4498232898ec3639b67e2c3ba +SIZE (nwdiag-0.3.3.tar.gz) = 23555 diff --git a/graphics/py-nwdiag/pkg-descr b/graphics/py-nwdiag/pkg-descr new file mode 100644 index 000000000000..d96fb8a39f59 --- /dev/null +++ b/graphics/py-nwdiag/pkg-descr @@ -0,0 +1,7 @@ +`nwdiag` generate network-diagram image file from spec-text file. + +Features + * Generate network-diagram from dot like text (basic feature). + * Multilingualization for node-label (utf-8 only). + +WWW: http://blockdiag.com/nwdiag/build/html/ diff --git a/graphics/py-nwdiag/pkg-plist b/graphics/py-nwdiag/pkg-plist new file mode 100644 index 000000000000..10c43d4ed152 --- /dev/null +++ b/graphics/py-nwdiag/pkg-plist @@ -0,0 +1,48 @@ +bin/nwdiag +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/entry_points.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/DiagramDraw.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/DiagramDraw.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/DiagramDraw.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/DiagramMetrix.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/DiagramMetrix.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/DiagramMetrix.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/__init__.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/builder.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/builder.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/builder.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/command.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/command.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/command.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/diagparser.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/diagparser.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/diagparser.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/elements.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/elements.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/elements.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/tests/test_builder.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/tests/test_builder.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/tests/test_builder.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/tests/test_generate_diagram.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/tests/test_generate_diagram.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/tests/test_generate_diagram.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/tests/test_pep8.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/tests/test_pep8.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/tests/test_pep8.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag_sphinxhelper.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag_sphinxhelper.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag_sphinxhelper.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sphinxcontrib_nwdiag.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sphinxcontrib_nwdiag.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/sphinxcontrib_nwdiag.pyo +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag/tests +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/nwdiag +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% |