# Created by: Nicola Vitale # $FreeBSD$ PORTNAME= pygments PORTVERSION= 1.6 CATEGORIES= textproc python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= Pygments-${PORTVERSION} MAINTAINER= nivit@FreeBSD.org COMMENT= Syntax highlighter written in Python LICENSE= BSD # Python3 ready USE_PYTHON= yes USE_PYDISTUTILS= easy_install PYDISTUTILS_PKGNAME= Pygments DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} .if !defined(NO_INSTALL_MANPAGES) MAN1= pygmentize.1 .endif NO_STAGE= yes .include post-install: .if !defined(NO_INSTALL_MANPAGES) @${INSTALL_MAN} ${WRKSRC}/docs/${MAN1} ${MANPREFIX}/man/man1/ .endif .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} @cd ${WRKSRC}/docs/build && ${COPYTREE_SHARE} . ${DOCSDIR} .endif .include .if ${PYTHON_REL} >= 320 .include "${PORTSDIR}/devel/py-virtualenv/files/py3k-fix-pkg-plist.inc" .endif .include