1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/devel/epydoc/Makefile
Pawel Pekala 7071465ba5 - Add staging support
- Move things to proper places
2014-03-27 18:24:28 +00:00

40 lines
797 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= epydoc
PORTVERSION= 3.0.1
CATEGORIES= devel
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Python API documentation generation tool
LICENSE= MIT
USE_PYTHON= yes
USE_PYDISTUTILS= yes
OPTIONS_DEFINE= DOCS UTF8
UTF8_DESC= Use UTF-8 instead of iso-8859-1 in HTMLs
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MUTF8}
HTMLENCODING?= utf-8
.endif
post-patch:
.if defined(HTMLENCODING)
@${GREP} -lR "iso-8859-1" ${WRKSRC}/epydoc | \
${XARGS} ${REINPLACE_CMD} -e 's|iso-8859-1|${HTMLENCODING}|g'
.endif
post-install:
(cd ${WRKSRC}/man && ${INSTALL_MAN} epydoc.1 epydocgui.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>