From a7f0998653030b0238740e9afdc6b169b13ddbcb Mon Sep 17 00:00:00 2001 From: Hye-Shik Chang Date: Sat, 15 Jul 2006 08:37:00 +0000 Subject: Fix build with Twisted 2.4. Spotted by: linimon --- www/py-twistedWeb2/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'www/py-twistedWeb2/Makefile') diff --git a/www/py-twistedWeb2/Makefile b/www/py-twistedWeb2/Makefile index 085fb764ce1f..d30420cd43eb 100644 --- a/www/py-twistedWeb2/Makefile +++ b/www/py-twistedWeb2/Makefile @@ -6,6 +6,7 @@ PORTNAME= twistedWeb2 PORTVERSION= 0.1 +PORTREVISION= 1 CATEGORIES= www devel python MASTER_SITES= http://twistedmatrix.com/downloads/Web2/ \ http://tmrc.mit.edu/mirror/twisted/Web2/ @@ -24,4 +25,9 @@ USE_BZIP2= yes USE_PYTHON= 2.2+ USE_PYDISTUTILS= yes +post-extract: + # temporal hack to work with Twisted 2.4 + ${ECHO_CMD} "from twisted.python import versions" > ${WRKSRC}/twisted/web2/_version.py + ${ECHO_CMD} "version = versions.Version(__name__[:__name__.rfind('.')], 0, 1, 0)" >> ${WRKSRC}/twisted/web2/_version.py + .include -- cgit v1.2.3