1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/www/py-nevow/Makefile
Nicola Vitale abe01b4889 - Update to 0.9.32
- Add a secondary download site
- Add files/patch-doc-txt2html.py
- Fix build of docs with different PREFIX of installation
- Fix instructions for running examples in pkg-descr
- Use ${COPYTREE_SHARE} to install docs and examples
2009-02-15 09:43:22 +00:00

66 lines
1.8 KiB
Makefile

# New ports collection makefile for: py-nevow
# Date created: 2005-04-16
# Whom: Choe, Cheng-Dae
#
# $FreeBSD$
#
PORTNAME= nevow
PORTVERSION= 0.9.32
PORTREVISION= 0
CATEGORIES= www python devel
MASTER_SITES= http://divmod.org/trac/attachment/wiki/SoftwareReleases/ \
http://nivi.interfree.it/distfiles/${PORTNAME}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Nevow-${PORTVERSION}
EXTRACT_SUFX= .tar.gz?format=raw
MAINTAINER= nivit@FreeBSD.org
COMMENT= A web application templating system, based on the the Twisted Woven
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_TWISTED= web
USE_GETTEXT= yes
NO_BUILD= yes
PYDISTUTILS_PKGNAME= Nevow
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKSRC}/pkg-message
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/docutils/__init__.py:${PORTSDIR}/textproc/py-docutils
.endif
REINPLACE_ARGS= -i '' -e 's,%%PYTHONPREFIX_SITELIBDIR%%,${PYTHONPREFIX_SITELIBDIR},g'
post-patch:
${REINPLACE_CMD} ${WRKSRC}/doc/txt2html.py
${RM} ${WRKSRC}/doc/txt2html.py.orig
post-install:
.if !defined(NOPORTDOCS)
@${ECHO_MSG} ">> Build documents ..."
cd ${WRKSRC}/doc && ${PYTHON_CMD} make.py
@${ECHO_MSG} " [ DONE ]"
@${ECHO_CMD} -n ">> Installing documents to ${DOCSDIR}..."
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
@${ECHO_MSG} " [ DONE ]"
.endif
.if !defined(NOPORTEXAMPLES)
@${PYTHON_CMD} -c "import compileall; compileall.compile_dir('${WRKSRC}/examples')"
@${ECHO_CMD} -n ">> Installing examples to ${EXAMPLESDIR}..."
@${MKDIR} ${EXAMPLESDIR}
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
@${ECHO_MSG} " [ DONE ]"
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>