summaryrefslogtreecommitdiff
path: root/devel/epydoc/Makefile
blob: d395683702180b7401c7cc028277421d47da10ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# ex:ts=8
# Ports collection makefile for:	epydoc
# Date created:			Dec 29, 2003
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	epydoc
PORTVERSION=	3.0
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Python API documentation generation tool

USE_PYTHON=	yes
USE_PYDISTUTILS=	yes

MAN1=		epydoc.1 epydocgui.1

OPTIONS=	UTF8 "Use UTF-8 instead of iso-8859-1 in HTMLs" off

HTMLENCODINGFILES=	epydoc/docwriter/html_colorize.py \
			epydoc/docwriter/html.py \
			epydoc/docparser.py

.include <bsd.port.pre.mk>

.if defined(WITH_UTF8)
HTMLENCODING?=	utf-8
.endif
.if defined(HTMLENCODING)
post-patch:
.for f in ${HTMLENCODINGFILES}
	${REINPLACE_CMD} 's,iso-8859-1,${HTMLENCODING},g' ${WRKSRC}/${f}
.endfor
.endif

post-install:
	cd ${WRKSRC}/man && ${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}
.endif

.include <bsd.port.post.mk>