1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/net-im/py-pyxmpp/Makefile
Martin Wilke 1b1b29c5e6 - Get rip python 2.3+
Note:
Python 2.3 is't longer supported and have a lot of security issues.
Convert 2.3+ to yes/or 2.4/5+

With hat:	portmgr
2009-12-13 17:00:14 +00:00

36 lines
1.1 KiB
Makefile

# Ports collection makefile for: py-pyxmpp
# Date created: Mar 04, 2005
# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru>
#
# $FreeBSD$
#
PORTNAME= pyxmpp
PORTVERSION= 1.0.1
CATEGORIES= net-im python
MASTER_SITES= http://pyxmpp.jajcus.net/downloads/ \
CENKES http://jabberstudio.2nw.net/pyxmpp/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= wenheping@gmail.com
COMMENT= A Python XMPP library
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \
${PYTHON_SITELIBDIR}/dns/__init__.py:${PORTSDIR}/dns/py-dnspython \
${PYTHON_PKGNAMEPREFIX}m2crypto>=0.18.2:${PORTSDIR}/security/py-m2crypto
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_PYTHON= 2.4+
USE_PYDISTUTILS= yes
post-patch:
@${GREP} -lr '/usr/bin/python' ${WRKSRC} | \
${XARGS} ${REINPLACE_CMD} -e "s!/usr/bin/python!${PYTHON_CMD}!"
@${REINPLACE_CMD} -e '/include_dirs =/s|]|,"${LOCALBASE}/include"]|' \
-e '/library_dirs =/s|]|"${LOCALBASE}/lib"]|' \
-e 's#/usr/local#${LOCALBASE}#g' ${WRKSRC}/setup.py
post-install:
@${ECHO} "pyxmpp" > ${PYTHON_SITELIBDIR}/pyxmpp.pth
.include <bsd.port.mk>