mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
fbbd987712
developed in the Twisted Woven package. Its main focus is on separating the HTML template from both the business logic and the display logic, while allowing the programmer to write pure Python code as much as possible. It separates your code into 'data' and 'render' functions, a simplified implementation of traditional MVC. It has various parts which can be used individually or as a whole, integrated web solution. PR: ports/80049 Submitted by: "Choe, Cheng-Dae" <whitekid@gmail.com>
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
# New ports collection makefile for: py-nevow
|
|
# Date created: 2005-04-16
|
|
# Whom: Choe, Cheng-Dae
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= nevow
|
|
PORTVERSION= 0.4.1
|
|
CATEGORIES= www python devel
|
|
MASTER_SITES= http://nevow.com/releases/${PORTVERSION}/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= root@comdongin.com
|
|
COMMENT= A web application templating system, based on the the Twisted Woven
|
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/twisted/web/__init__.py:${PORTSDIR}/www/py-twistedWeb \
|
|
${PYTHON_SITELIBDIR}/docutils/__init__.py:${PORTSDIR}/textproc/py-docutils
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
PKGMESSAGE= ${WRKSRC}/pkg-message
|
|
|
|
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 && \
|
|
${FIND} . -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
|
|
${FIND} . -not -type d -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
.endif
|
|
@${PYTHON_CMD} -c "import compileall; compileall.compile_dir('${WRKSRC}/examples')"
|
|
|
|
@${ECHO_CMD} -n ">> Installing examples to ${EXAMPLESDIR}..."
|
|
@cd ${WRKSRC}/examples && \
|
|
${FIND} . -type d -exec ${MKDIR} "${EXAMPLESDIR}/{}" \; && \
|
|
${FIND} . -not -type d -exec ${INSTALL_DATA} "{}" "${EXAMPLESDIR}/{}" \;
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|