aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-im/jabber-pymsn/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/net-im/jabber-pymsn/Makefile b/net-im/jabber-pymsn/Makefile
index 865b2c110845..8f5336d56510 100644
--- a/net-im/jabber-pymsn/Makefile
+++ b/net-im/jabber-pymsn/Makefile
@@ -6,6 +6,7 @@
PORTNAME= pymsn
DISTVERSION= 0.11.2-dev2
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= net-im
MASTER_SITES= http://delx.cjb.net/pymsnt/tarballs/ \
@@ -20,10 +21,10 @@ MAINTAINER= garga@FreeBSD.org
COMMENT= Python MSN-Transport for Jabber
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/OpenSSL/__init__.py:${PORTSDIR}/security/py-openssl \
- ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twisted \
${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging
-OPTIONS= EJABBERD "Use transport with ejabberd" off
+OPTIONS= EJABBERD "Use transport with ejabberd" off \
+ TWISTED1 "Use old py-twisted 1.x" off
NO_BUILD= yes
USE_PYTHON= yes
@@ -47,6 +48,14 @@ JABBER_USER?= jabber
SUB_LIST+= JABBER_REQUIRE=jabberd
.endif
+.if defined(WITH_TWISTED1)
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twisted
+.else
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twistedCore \
+ ${PYTHON_SITELIBDIR}/twisted/web/__init__.py:${PORTSDIR}/www/py-twistedWeb \
+ ${PYTHON_SITELIBDIR}/twisted/words/__init__.py:${PORTSDIR}/net-im/py-twistedWords
+.endif
+
SUB_LIST+= JABBER_USER=${JABBER_USER}
post-extract:
@@ -65,7 +74,6 @@ post-patch:
${WRKSRC}/src/main.py
@${REINPLACE_CMD} -i "" 's|#!.*$$|#!${LOCAL_PYTHON}|' \
${WRKSRC}/PyMSNt.py
- @${RM} -f ${WRKSRC}/src/*.orig
do-install:
${MKDIR} ${INST_DIR}/src ${INST_DIR}/data