Fix build with Twisted 2.4.

Spotted by:	linimon
This commit is contained in:
Hye-Shik Chang 2006-07-15 08:37:00 +00:00
parent e0d879d0fe
commit a7f0998653
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=167882
6 changed files with 27 additions and 2 deletions

View file

@ -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>

View file

@ -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

View file

@ -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>

View file

@ -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

View file

@ -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>

View file

@ -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