summaryrefslogtreecommitdiff
path: root/devel/epydoc/Makefile
blob: 147c137d70990c9412e315f383dd77c7aebfc3ad (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
# Created by:	ijliao
# $FreeBSD$

PORTNAME=	epydoc
PORTVERSION=	3.0.1
CATEGORIES=	devel
MASTER_SITES=	SF

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

LICENSE=	MIT

OPTIONS_DEFINE=	DOCS UTF8

UTF8_DESC=	Use UTF-8 instead of iso-8859-1 in HTMLs

OPTIONS_DEFAULT=

.include <bsd.port.options.mk>

USE_PYTHON=	yes
USE_PYDISTUTILS=	yes

MAN1=		epydoc.1 epydocgui.1

.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} ${MAN1} ${MAN1PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR})
.endif

.include <bsd.port.mk>