mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
50f8eaece1
- USE_PYTHON* = 2.X -> USE_PYTHON* = 2 - USE_PYTHON* = 2.X+ -> USE_PYTHON* = yes Reviewed by: python (mva, rm) Approved by: portmgr-lurkers (mat)
39 lines
916 B
Makefile
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>
|