summaryrefslogtreecommitdiff
path: root/www/py-HTMLgen/Makefile
blob: 81554ff3b2d2753ac56f882455549460e8dd2713 (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
# Ports collection Makefile for:	HTMLgen
# Date created:				03/20/1999
# Whom:					nectar@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=		py-HTMLgen
PORTVERSION=		2.2.2
CATEGORIES=		www python
MASTER_SITES=		http://starship.python.net/crew/friedrich/
DISTNAME=		HTMLgen

MAINTAINER=		ports@FreeBSD.org

PORTCOMMENT=		A Python library for the generation of HTML documents

USE_PYTHON=		yes

WRKSRC=			${WRKDIR}/HTMLgen
PLIST=			${WRKDIR}/PLIST

DOCDIR=			${PREFIX}/share/doc/HTMLgen

pre-install:
	@${CP} ${PKGDIR}/pkg-plist ${PLIST}
.if !defined(NOPORTDOCS)
	@${CAT} ${PKGDIR}/pkg-plist.docs >> ${PLIST}
	@${MKDIR} ${PREFIX}/share/doc/HTMLgen
	@${TAR} -C ${WRKSRC} -cf - README html image | \
		${TAR} -C ${DOCDIR} -xvf -
	@${CHOWN} -R ${BINOWN}:${BINGRP} ${DOCDIR}
	@${FIND} ${DOCDIR} -type d -exec ${CHMOD} 0555 {} \;
	@${FIND} ${DOCDIR} -type f -exec ${CHMOD} 0444 {} \;
.endif

.include <bsd.port.mk>