diff options
author | nivit <nivit@FreeBSD.org> | 2007-04-03 05:35:26 +0800 |
---|---|---|
committer | nivit <nivit@FreeBSD.org> | 2007-04-03 05:35:26 +0800 |
commit | ae6a6fee08d1f87d025231643cbda3b011733b1b (patch) | |
tree | 09b9c555b6d1cc1e28911a5d1d46962ea5cc0395 /textproc | |
parent | ed1b1f795ff81dc0e99cf36793f144744b3befdd (diff) | |
download | freebsd-ports-gnome-ae6a6fee08d1f87d025231643cbda3b011733b1b.tar.gz freebsd-ports-gnome-ae6a6fee08d1f87d025231643cbda3b011733b1b.tar.zst freebsd-ports-gnome-ae6a6fee08d1f87d025231643cbda3b011733b1b.zip |
Pygments is a syntax highlighting package written in Python.
It is a generic syntax highlighter for general use in all kinds of software
such as forum systems, wikis or other applications that need to prettify
source code. Highlights are:
* a wide range of common languages and markup formats is supported
* special attention is paid to details, increasing quality by a fair amount
* support for new languages and formats are added easily
* a number of output formats, presently HTML, LaTeX, RTF and ANSI sequences
* it is usable as a command-line tool and as a library
WWW: http://pygments.org/
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/py-pygments/Makefile | 47 | ||||
-rw-r--r-- | textproc/py-pygments/distinfo | 3 | ||||
-rw-r--r-- | textproc/py-pygments/pkg-descr | 13 | ||||
-rw-r--r-- | textproc/py-pygments/pkg-plist | 128 |
5 files changed, 192 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 80793e1c90e0..9777c0e367a3 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -758,6 +758,7 @@ SUBDIR += py-ltxml SUBDIR += py-lucene SUBDIR += py-markdown + SUBDIR += py-pygments SUBDIR += py-pyx12 SUBDIR += py-qt4-xml SUBDIR += py-rdflib diff --git a/textproc/py-pygments/Makefile b/textproc/py-pygments/Makefile new file mode 100644 index 000000000000..04723a97ebeb --- /dev/null +++ b/textproc/py-pygments/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: py-pygments +# Date created: 2007-04-01 +# Whom: Nicola Vitale <nivit@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= pygments +PORTVERSION= 0.7.1 +#PORTREVISION= 0 +CATEGORIES= textproc python +MASTER_SITES= SF +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= Pygments-${PORTVERSION} + +MAINTAINER= nivit@FreeBSD.org +COMMENT= A syntax highlighter written in Python + +BUILD_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools +RUN_DEPENDS= ${BUILD_DEPENDS} + +USE_PYTHON= yes +USE_PYDISTUTILS= yes +PYDISTUTILS_BUILD_TARGET= bdist_egg +PYDISTUTILS_INSTALL_TARGET= easy_install +PYDISTUTILS_INSTALLARGS= -N -s ${PREFIX}/bin -S ${PYTHON_SITELIBDIR} dist/${PYPYGMENTS_EGG} + +PLIST_SUB= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \ + PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION} \ + PYPYGMENTS_EGG=${PYPYGMENTS_EGG} + +EASY_INSTALL_CMD= easy_install-${PYTHON_VER} +PYPYGMENTS_EGG= ${DISTNAME}-py${PYTHON_VER}.egg + +.if !defined(NOPORTDOCS) +DOCSDIR= ${TARGETDIR}/share/doc/py-${PORTNAME} +FIND_DOCS= . -type f +MAN1= pygmentize.1 +MANCOMPRESSED= no + +post-install: + @${INSTALL_DATA} ${WRKSRC}/docs/${MAN1} ${MANPREFIX}/man/man1/ + @${MKDIR} ${DOCSDIR} + @cd ${WRKSRC}/docs/build && ${FIND} ${FIND_DOCS} -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} ";" +.endif + +.include <bsd.port.mk> diff --git a/textproc/py-pygments/distinfo b/textproc/py-pygments/distinfo new file mode 100644 index 000000000000..c9d906a2c311 --- /dev/null +++ b/textproc/py-pygments/distinfo @@ -0,0 +1,3 @@ +MD5 (Pygments-0.7.1.tar.gz) = 8b5b50fb53ce39f94dbcf7040c0a441a +SHA256 (Pygments-0.7.1.tar.gz) = 932866bde0019c370c36232d877c223a5f1d275c3161806552cb123d6f5d3638 +SIZE (Pygments-0.7.1.tar.gz) = 664696 diff --git a/textproc/py-pygments/pkg-descr b/textproc/py-pygments/pkg-descr new file mode 100644 index 000000000000..00d94a26688a --- /dev/null +++ b/textproc/py-pygments/pkg-descr @@ -0,0 +1,13 @@ +Pygments is a syntax highlighting package written in Python. + +It is a generic syntax highlighter for general use in all kinds of software +such as forum systems, wikis or other applications that need to prettify +source code. Highlights are: + + * a wide range of common languages and markup formats is supported + * special attention is paid to details, increasing quality by a fair amount + * support for new languages and formats are added easily + * a number of output formats, presently HTML, LaTeX, RTF and ANSI sequences + * it is usable as a command-line tool and as a library + +WWW: http://pygments.org/ diff --git a/textproc/py-pygments/pkg-plist b/textproc/py-pygments/pkg-plist new file mode 100644 index 000000000000..fdb7d3490e2c --- /dev/null +++ b/textproc/py-pygments/pkg-plist @@ -0,0 +1,128 @@ +@comment $FreeBSD$ +@unexec %%EASY_INSTALL_CMD%% -q -x -N -m -S %D/%%PYTHON_SITELIBDIR%% %%PORTNAME%%==%%PORTVERSION%% +bin/pygmentize +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/EGG-INFO/PKG-INFO +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/EGG-INFO/SOURCES.txt +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/EGG-INFO/dependency_links.txt +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/EGG-INFO/not-zip-safe +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/EGG-INFO/scripts/pygmentize +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/EGG-INFO/top_level.txt +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/cmdline.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/cmdline.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/console.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/console.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/filter.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/filter.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/filters/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/filters/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatter.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatter.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/_mapping.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/_mapping.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/bbcode.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/bbcode.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/html.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/html.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/latex.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/latex.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/other.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/other.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/rtf.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/rtf.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/terminal.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters/terminal.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexer.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexer.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/_luabuiltins.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/_luabuiltins.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/_mapping.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/_mapping.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/_phpbuiltins.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/_phpbuiltins.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/agile.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/agile.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/compiled.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/compiled.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/dotnet.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/dotnet.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/other.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/other.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/special.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/special.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/templates.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/templates.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/text.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/text.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/web.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers/web.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/plugin.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/plugin.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/scanner.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/scanner.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/style.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/style.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/autumn.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/autumn.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/borland.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/borland.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/colorful.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/colorful.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/default.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/default.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/friendly.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/friendly.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/fruity.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/fruity.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/manni.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/manni.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/murphy.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/murphy.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/native.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/native.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/pastie.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/pastie.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/perldoc.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/perldoc.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/trac.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles/trac.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/token.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/token.pyc +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/util.py +%%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/util.pyc +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/styles +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/lexers +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/formatters +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments/filters +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/pygments +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/EGG-INFO/scripts +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%%/EGG-INFO +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPYGMENTS_EGG%% +%%PORTDOCS%%%%DOCSDIR%%/api.html +%%PORTDOCS%%%%DOCSDIR%%/authors.html +%%PORTDOCS%%%%DOCSDIR%%/changelog.html +%%PORTDOCS%%%%DOCSDIR%%/cmdline.html +%%PORTDOCS%%%%DOCSDIR%%/filterdevelopment.html +%%PORTDOCS%%%%DOCSDIR%%/filters.html +%%PORTDOCS%%%%DOCSDIR%%/formatterdevelopment.html +%%PORTDOCS%%%%DOCSDIR%%/formatters.html +%%PORTDOCS%%%%DOCSDIR%%/index.html +%%PORTDOCS%%%%DOCSDIR%%/installation.html +%%PORTDOCS%%%%DOCSDIR%%/lexerdevelopment.html +%%PORTDOCS%%%%DOCSDIR%%/lexers.html +%%PORTDOCS%%%%DOCSDIR%%/moinmoin.html +%%PORTDOCS%%%%DOCSDIR%%/plugins.html +%%PORTDOCS%%%%DOCSDIR%%/quickstart.html +%%PORTDOCS%%%%DOCSDIR%%/rstdirective.html +%%PORTDOCS%%%%DOCSDIR%%/styles.html +%%PORTDOCS%%%%DOCSDIR%%/tokens.html +%%PORTDOCS%%%%DOCSDIR%%/unicode.html +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@exec %%EASY_INSTALL_CMD%% -N -x -S %D/%%PYTHON_SITELIBDIR%% %%PORTNAME%%==%%PORTVERSION%% |