aboutsummaryrefslogtreecommitdiff
path: root/www/py-cherrypy/Makefile
diff options
context:
space:
mode:
authorNicola Vitale <nivit@FreeBSD.org>2008-01-26 17:06:52 +0000
committerNicola Vitale <nivit@FreeBSD.org>2008-01-26 17:06:52 +0000
commitabe351ffc0ae54968e038a0f4d5527d8194ac124 (patch)
treee1fbc5390e25d0de2a83613addfed985966cebc8 /www/py-cherrypy/Makefile
parent80fdda48377d9f6c4a6e4cb8f396d49f6f653348 (diff)
downloadports-abe351ffc0ae54968e038a0f4d5527d8194ac124.tar.gz
ports-abe351ffc0ae54968e038a0f4d5527d8194ac124.zip
Notes
Diffstat (limited to 'www/py-cherrypy/Makefile')
-rw-r--r--www/py-cherrypy/Makefile25
1 files changed, 9 insertions, 16 deletions
diff --git a/www/py-cherrypy/Makefile b/www/py-cherrypy/Makefile
index c724032401df..07a38e381150 100644
--- a/www/py-cherrypy/Makefile
+++ b/www/py-cherrypy/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= cherrypy
-PORTVERSION= 3.0.1
+PORTVERSION= 3.0.2
CATEGORIES= www python
MASTER_SITES= http://download.cherrypy.org/cherrypy/${PORTVERSION}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -19,24 +19,17 @@ USE_PYTHON= 2.3+
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= CherryPy
-LN_OPTS= -sf
-RM_OPTS= -r
+REINPLACE_ARGS= -i.bak -e 's,%%DOCSDIR%%,${DOCSDIR},'
-EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
-CPEXAMPLES= ${PYTHON_SITELIBDIR}/${PORTNAME}/tutorial
-
-.if !defined(WITH_EXAMPLES)
-PLIST_SUB= PORTEXAMPLES="@comment "
-.else
-PLIST_SUB= PORTEXAMPLES=""
+.if defined(NOPORTEXAMPLES)
+MAKE_ENV+= NOPORTEXAMPLES=${NOPORTEXAMPLES}
.endif
-post-install:
-.if !defined(WITH_EXAMPLES)
- @${RM} ${RM_OPTS} ${CPEXAMPLES}
-.else
- @${MV} ${CPEXAMPLES} ${EXAMPLESDIR} && \
- ${LN} ${LN_OPTS} ${EXAMPLESDIR} ${CPEXAMPLES}
+.if defined(NOPORTDOCS)
+MAKE_ENV+= NOPORTDOCS=${NOPORTDOCS}
.endif
+post-patch:
+ @${REINPLACE_CMD} ${WRKSRC}/${PYSETUP}
+
.include <bsd.port.mk>