diff options
author | perky <perky@FreeBSD.org> | 2006-07-15 16:37:00 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2006-07-15 16:37:00 +0800 |
commit | 77b2e8299ce71d716886dc8f2b0981cc83692de6 (patch) | |
tree | 513c5099073ed6e3e1e90cd205dedbe1366afd21 /devel/py-twistedFlow | |
parent | f7cccc79b6680b05ba3fc62bd139cc1266e9cfc6 (diff) | |
download | freebsd-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 'devel/py-twistedFlow')
-rw-r--r-- | devel/py-twistedFlow/Makefile | 7 | ||||
-rw-r--r-- | devel/py-twistedFlow/pkg-plist | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/devel/py-twistedFlow/Makefile b/devel/py-twistedFlow/Makefile index 649cb60d50b8..406d696104fb 100644 --- a/devel/py-twistedFlow/Makefile +++ b/devel/py-twistedFlow/Makefile @@ -7,7 +7,7 @@ PORTNAME= twistedFlow PORTVERSION= 0.1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel python MASTER_SITES= http://twistedmatrix.com/downloads/Flow/0.1/ \ http://tmrc.mit.edu/mirror/twisted/Flow/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/flow/_version.py + ${ECHO_CMD} "version = versions.Version(__name__[:__name__.rfind('.')], 0, 1, 0)" >> ${WRKSRC}/twisted/flow/_version.py + .include <bsd.port.mk> diff --git a/devel/py-twistedFlow/pkg-plist b/devel/py-twistedFlow/pkg-plist index 4bdc393a7dcd..5a28af5c3ad2 100644 --- a/devel/py-twistedFlow/pkg-plist +++ b/devel/py-twistedFlow/pkg-plist @@ -1,6 +1,9 @@ %%S%%/twisted/flow/__init__.py %%S%%/twisted/flow/__init__.pyc %%S%%/twisted/flow/__init__.pyo +%%S%%/twisted/flow/_version.py +%%S%%/twisted/flow/_version.pyc +%%S%%/twisted/flow/_version.pyo %%S%%/twisted/flow/base.py %%S%%/twisted/flow/base.pyc %%S%%/twisted/flow/base.pyo |