blob: 31a62ebb26416ff404fdfb05fd7819fdf1669252 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# 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= miwi@FreeBSD.org
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.3+
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"]|' ${WRKSRC}/setup.py
post-install:
@${ECHO} "pyxmpp" > ${PYTHON_SITELIBDIR}/pyxmpp.pth
.include <bsd.port.mk>
|