From e541f3731ca0b33a9d7dabb159a4318a1e1c353b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Tue, 14 Sep 2010 09:27:53 +0000 Subject: [PATCH] The purpose of dot2tex is to give graphs generated by Graphviz a more LaTeX friendly look and feel. This is accomplished by converting xdot output from Graphviz to a series of PSTricks or PGF/TikZ commands. This approach allows: - Typesetting labels with LaTeX, allowing mathematical notation. - Using native PSTricks and PGF/TikZ commands for drawing arrows (optional). - Using backend specific styles to customize the output WWW: http://www.fauskes.net/code/dot2tex/ --- print/Makefile | 1 + print/dot2tex/Makefile | 24 ++++++++++++++++++++++++ print/dot2tex/distinfo | 3 +++ print/dot2tex/pkg-descr | 10 ++++++++++ print/dot2tex/pkg-plist | 12 ++++++++++++ 5 files changed, 50 insertions(+) create mode 100644 print/dot2tex/Makefile create mode 100644 print/dot2tex/distinfo create mode 100644 print/dot2tex/pkg-descr create mode 100644 print/dot2tex/pkg-plist diff --git a/print/Makefile b/print/Makefile index 3669a3797ca6..8ae527b1a400 100644 --- a/print/Makefile +++ b/print/Makefile @@ -58,6 +58,7 @@ SUBDIR += cups-smb-backend SUBDIR += detex SUBDIR += dk-acroread8 + SUBDIR += dot2tex SUBDIR += dvi2tty SUBDIR += dvi2xx SUBDIR += dvipdfmx diff --git a/print/dot2tex/Makefile b/print/dot2tex/Makefile new file mode 100644 index 000000000000..f047f8b33c37 --- /dev/null +++ b/print/dot2tex/Makefile @@ -0,0 +1,24 @@ +# New ports collection makefile for: dot2tex +# Date created: 2010-09-14 +# Whom: Romain Tartiere +# +# $FreeBSD$ +# + +PORTNAME= dot2tex +PORTVERSION= 2.8.7 +CATEGORIES= print +MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} + +MAINTAINER= romain@FreeBSD.org +COMMENT= A Graphviz to LaTeX converter + +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pyparsing.py:${PORTSDIR}/devel/py-parsing \ + dot:${PORTSDIR}/graphics/graphviz + +USE_PYDISTUTILS=yes +USE_PYTHON= yes +# The .tar.gz sucks! +USE_ZIP= yes + +.include diff --git a/print/dot2tex/distinfo b/print/dot2tex/distinfo new file mode 100644 index 000000000000..af6121dc9784 --- /dev/null +++ b/print/dot2tex/distinfo @@ -0,0 +1,3 @@ +MD5 (dot2tex-2.8.7.zip) = a306d58ef6fe79e6fe876a242b0cbef5 +SHA256 (dot2tex-2.8.7.zip) = 6bac96a242553060af8a0f40af9d3a2c31d190173311f28600a09c1aac32b7f8 +SIZE (dot2tex-2.8.7.zip) = 592439 diff --git a/print/dot2tex/pkg-descr b/print/dot2tex/pkg-descr new file mode 100644 index 000000000000..95d235f8b1ce --- /dev/null +++ b/print/dot2tex/pkg-descr @@ -0,0 +1,10 @@ +The purpose of dot2tex is to give graphs generated by Graphviz a more LaTeX +friendly look and feel. This is accomplished by converting xdot output from +Graphviz to a series of PSTricks or PGF/TikZ commands. This approach allows: + + - Typesetting labels with LaTeX, allowing mathematical notation. + - Using native PSTricks and PGF/TikZ commands for drawing arrows (optional). + - Using backend specific styles to customize the output + + +WWW: http://www.fauskes.net/code/dot2tex/ diff --git a/print/dot2tex/pkg-plist b/print/dot2tex/pkg-plist new file mode 100644 index 000000000000..81390eda49c0 --- /dev/null +++ b/print/dot2tex/pkg-plist @@ -0,0 +1,12 @@ +@comment $FreeBSD$ +bin/dot2tex +%%PYTHON_SITELIBDIR%%/dot2tex/__init__.py +%%PYTHON_SITELIBDIR%%/dot2tex/__init__.pyc +%%PYTHON_SITELIBDIR%%/dot2tex/__init__.pyo +%%PYTHON_SITELIBDIR%%/dot2tex/dot2tex.py +%%PYTHON_SITELIBDIR%%/dot2tex/dot2tex.pyc +%%PYTHON_SITELIBDIR%%/dot2tex/dot2tex.pyo +%%PYTHON_SITELIBDIR%%/dot2tex/dotparsing.py +%%PYTHON_SITELIBDIR%%/dot2tex/dotparsing.pyc +%%PYTHON_SITELIBDIR%%/dot2tex/dotparsing.pyo +@dirrm %%PYTHON_SITELIBDIR%%/dot2tex