1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/www/py-nevow/Makefile
Marcus von Appen 885b528f02 New USES=twisted, to replace the old USE_TWISTED knob.
twisted can be configured with the arguments run or build to replace
the previous USE_TWISTED_RUN and USE_TWISTED_BUILD knobs. The twisted
components can be added as comma-separated arguments. If you previously
wrote
    USE_TWISTED=        yes
    USE_TWISTED=        conch names
    USE_TWISTED_RUN=    yes
you now would write
    USES=       twisted
    USES=       twisted:conch,names
    USES=       twisted:run
2013-12-08 12:04:07 +00:00

46 lines
1.2 KiB
Makefile

# Created by: Choe, Cheng-Dae
# $FreeBSD$
PORTNAME= nevow
PORTVERSION= 0.10.0
PORTREVISION= 2
CATEGORIES= www python devel
MASTER_SITES= http://divmod.org/trac/attachment/wiki/SoftwareReleases/
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 Twisted Woven
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
USES= gettext twisted:web
PYDISTUTILS_PKGNAME= Nevow
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKSRC}/pkg-message
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
NO_STAGE= yes
post-install:
.if !defined(NOPORTDOCS)
@${ECHO_CMD} -n ">> Installing documents to ${DOCSDIR}..."
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
@${ECHO_MSG} " [ DONE ]"
.endif
.if !defined(NOPORTEXAMPLES)
@${PYTHON_CMD} -m compileall -f '${WRKSRC}/examples'
@${PYTHON_CMD} -O -m compileall -f '${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>