c19e32f609
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/
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# 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>
|