aboutsummaryrefslogtreecommitdiff
path: root/net/py-twistedPair/Makefile
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2006-07-15 08:37:00 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2006-07-15 08:37:00 +0000
commita7f0998653030b0238740e9afdc6b169b13ddbcb (patch)
treef9d24dc152498c7d8997e9587917457446f714c7 /net/py-twistedPair/Makefile
parente0d879d0fe47bcd20c1c1daea52d1c9941559c5e (diff)
downloadports-a7f0998653030b0238740e9afdc6b169b13ddbcb.tar.gz
ports-a7f0998653030b0238740e9afdc6b169b13ddbcb.zip
Notes
Diffstat (limited to 'net/py-twistedPair/Makefile')
-rw-r--r--net/py-twistedPair/Makefile7
1 files changed, 6 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>