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/
This commit is contained in:
parent
6ffa3797ff
commit
c19e32f609
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=189043
5 changed files with 192 additions and 0 deletions
|
@ -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
|
||||
|
|
47
textproc/py-pygments/Makefile
Normal file
47
textproc/py-pygments/Makefile
Normal file
|
@ -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>
|
3
textproc/py-pygments/distinfo
Normal file
3
textproc/py-pygments/distinfo
Normal file
|
@ -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
|
13
textproc/py-pygments/pkg-descr
Normal file
13
textproc/py-pygments/pkg-descr
Normal file
|
@ -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/
|
128
textproc/py-pygments/pkg-plist
Normal file
128
textproc/py-pygments/pkg-plist
Normal file
|
@ -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%%
|
Loading…
Reference in a new issue