From dce0385ce6cfa933f9e3e44650770c064db59a79 Mon Sep 17 00:00:00 2001 From: perky Date: Thu, 10 Jun 2004 07:10:36 +0000 Subject: Add an option to switch exporting html encoding. --- devel/epydoc/Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/devel/epydoc/Makefile b/devel/epydoc/Makefile index 24ee9bb..35cefed 100644 --- a/devel/epydoc/Makefile +++ b/devel/epydoc/Makefile @@ -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 + +.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 +.include -- cgit v1.1