1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Add an option to switch exporting html encoding.

This commit is contained in:
Hye-Shik Chang 2004-06-10 07:10:36 +00:00
parent 4d32869e51
commit 9abd9a0085
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=111197

View File

@ -17,9 +17,23 @@ COMMENT= Python API documentation generation tool
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_REINPLACE= yes
MAN1= epydoc.1 epydocgui.1
OPTIONS= UTF8 "Use UTF-8 instead of iso-8859-1 in HTMLs" off
.include <bsd.port.pre.mk>
.if defined(WITH_UTF8)
HTMLENCODING?= utf-8
.endif
.if defined(HTMLENCODING)
post-patch:
${REINPLACE_CMD} 's,iso-8859-1,${HTMLENCODING},g' \
${WRKSRC}/epydoc/html.py
.endif
post-install:
cd ${WRKSRC}/man && ${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1
.if !defined(NOPORTDOCS)
@ -27,4 +41,4 @@ post-install:
${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}
.endif
.include <bsd.port.mk>
.include <bsd.port.post.mk>