aboutsummaryrefslogtreecommitdiffstats
path: root/net
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 /net
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 'net')
-rw-r--r--net/py-twistedPair/Makefile7
-rw-r--r--net/py-twistedPair/pkg-plist3
2 files changed, 9 insertions, 1 deletions
diff --git a/net/py-twistedPair/Makefile b/net/py-twistedPair/Makefile
index 5e8de0618bed..39aa58dc9ac4 100644
--- a/net/py-twistedPair/Makefile
+++ b/net/py-twistedPair/Makefile
@@ -7,7 +7,7 @@
PORTNAME= twistedPair
PORTVERSION= 0.1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net devel python
MASTER_SITES= http://twistedmatrix.com/downloads/Pair/0.1/ \
http://tmrc.mit.edu/mirror/twisted/Pair/0.1/
@@ -28,4 +28,9 @@ USE_PYDISTUTILS= yes
PLIST_SUB+= S=${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}
+post-extract:
+ # temporal hack to work with Twisted 2.4
+ ${ECHO_CMD} "from twisted.python import versions" > ${WRKSRC}/twisted/pair/_version.py
+ ${ECHO_CMD} "version = versions.Version(__name__[:__name__.rfind('.')], 0, 1, 0)" >> ${WRKSRC}/twisted/pair/_version.py
+
.include <bsd.port.mk>
diff --git a/net/py-twistedPair/pkg-plist b/net/py-twistedPair/pkg-plist
index cfe554dd6c63..112a5730b529 100644
--- a/net/py-twistedPair/pkg-plist
+++ b/net/py-twistedPair/pkg-plist
@@ -1,6 +1,9 @@
%%S%%/twisted/pair/__init__.py
%%S%%/twisted/pair/__init__.pyc
%%S%%/twisted/pair/__init__.pyo
+%%S%%/twisted/pair/_version.py
+%%S%%/twisted/pair/_version.pyc
+%%S%%/twisted/pair/_version.pyo
%%S%%/twisted/pair/ethernet.py
%%S%%/twisted/pair/ethernet.pyc
%%S%%/twisted/pair/ethernet.pyo