1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/www/py-HTMLgen/Makefile
Rene Ladan 50f8eaece1 Python cleanup:
- USE_PYTHON* = 2.X -> USE_PYTHON* = 2
- USE_PYTHON* = 2.X+ -> USE_PYTHON* = yes
Reviewed by:	python (mva, rm)
Approved by:	portmgr-lurkers (mat)
2014-01-13 21:00:02 +00:00

39 lines
916 B
Makefile

# Created by: nectar@FreeBSD.org
# $FreeBSD$
PORTNAME= HTMLgen
PORTVERSION= 2.2.2
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://dryice.name/computer/FreeBSD/distfiles/ \
http://starship.python.net/crew/friedrich/
MASTER_SITE_SUBDIR= dryice
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= HTMLgen
MAINTAINER= python@FreeBSD.org
COMMENT= A Python library for the generation of HTML documents
USE_PYTHON= 2
NO_BUILD= yes
NO_STAGE= yes
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
post-patch:
@${REINPLACE_CMD} -e 's|python |${PYTHON_CMD} |' ${WRKSRC}/Makefile
.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${DOCSDIR}
@${TAR} -C ${WRKSRC} -cf - README html image | \
${TAR} -C ${DOCSDIR} -xvf -
@${CHOWN} -R ${BINOWN}:${BINGRP} ${DOCSDIR}
@${FIND} ${DOCSDIR} -type d -exec ${CHMOD} 0555 {} \;
@${FIND} ${DOCSDIR} -type f -exec ${CHMOD} 0444 {} \;
.endif
.include <bsd.port.mk>