freebsd-ports/textproc/py-docutils/Makefile
Olivier Duchateau ecf8221576 - Update to 0.11
- Add new option, PYGMENTS (syntax highlighting) to enable code directive
- Fix symlinks during reinstall stage [1]
- Fix pkg-plist with Python3 [2]

PR:		179273 [1]
PR:		180339 [2]
Submitted by:	nemysis [1]
Reviewed by:	gblach@ [2]
2013-07-24 17:42:09 +00:00

43 lines
979 B
Makefile

# Created by: ijliao
# $FreeBSD$
#
PORTNAME= docutils
PORTVERSION= 0.11
CATEGORIES= textproc python
MASTER_SITES= SF \
CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= olivierd@FreeBSD.org
COMMENT= Python Documentation Utilities
USE_PYTHON= yes
USE_PYDISTUTILS= yes
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
OPTIONS_DEFINE= PYGMENTS
PYGMENTS_DESC= Syntax highlighting
BIN_SCRIPTS= rst2html.py rst2s5.py rst2latex.py rst2xetex.py \
rst2man.py rst2xml.py rst2pseudoxml.py rstpep2html.py \
rst2odt.py rst2odt_prepstyles.py
.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MPYGMENTS}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygments>=1.6:${PORTSDIR}/textproc/py-pygments
.endif
.if ${PYTHON_REL} >= 320
.include "${PORTSDIR}/devel/py-virtualenv/files/py3k-fix-pkg-plist.inc"
.endif
post-install:
.for script in ${BIN_SCRIPTS}
@cd ${PREFIX}/bin && ${LN} -sf ${script} ${script:C/\.py//}
.endfor
.include <bsd.port.post.mk>