aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2006-07-15 16:37:00 +0800
committerperky <perky@FreeBSD.org>2006-07-15 16:37:00 +0800
commit77b2e8299ce71d716886dc8f2b0981cc83692de6 (patch)
tree513c5099073ed6e3e1e90cd205dedbe1366afd21 /www
parentf7cccc79b6680b05ba3fc62bd139cc1266e9cfc6 (diff)
downloadfreebsd-ports-gnome-77b2e8299ce71d716886dc8f2b0981cc83692de6.tar.gz
freebsd-ports-gnome-77b2e8299ce71d716886dc8f2b0981cc83692de6.tar.zst
freebsd-ports-gnome-77b2e8299ce71d716886dc8f2b0981cc83692de6.zip
Fix build with Twisted 2.4.
Spotted by: linimon
Diffstat (limited to 'www')
-rw-r--r--www/py-twistedWeb2/Makefile6
-rw-r--r--www/py-twistedWeb2/pkg-plist3
2 files changed, 9 insertions, 0 deletions
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 <bsd.port.mk>
diff --git a/www/py-twistedWeb2/pkg-plist b/www/py-twistedWeb2/pkg-plist
index e3a3701756d5..bdec242b7c23 100644
--- a/www/py-twistedWeb2/pkg-plist
+++ b/www/py-twistedWeb2/pkg-plist
@@ -2,6 +2,9 @@
%%PYTHON_SITELIBDIR%%/twisted/web2/__init__.py
%%PYTHON_SITELIBDIR%%/twisted/web2/__init__.pyc
%%PYTHON_SITELIBDIR%%/twisted/web2/__init__.pyo
+%%PYTHON_SITELIBDIR%%/twisted/web2/_version.py
+%%PYTHON_SITELIBDIR%%/twisted/web2/_version.pyc
+%%PYTHON_SITELIBDIR%%/twisted/web2/_version.pyo
%%PYTHON_SITELIBDIR%%/twisted/web2/cgichannel.py
%%PYTHON_SITELIBDIR%%/twisted/web2/cgichannel.pyc
%%PYTHON_SITELIBDIR%%/twisted/web2/cgichannel.pyo