1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00
freebsd-ports/net-im/py-pyxmpp/Makefile
Alexander Botero-Lowry 4942ce5a7d - Make Python 2.5.1 the default Python version
- Add significantly better support in bsd.python.mk for working with
   Python Eggs and the easy_install system

Tested by:	pointyhat runs
Approved by:	pav (portmgr)
Most work by:	perky
Thanks to:	pav
2007-07-30 09:42:28 +00:00

43 lines
1.2 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.0.664
CATEGORIES= net-im python
MASTER_SITES= CENKES http://jabberstudio.2nw.net/pyxmpp/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
# svn export -r664 http://pyxmpp.jajcus.net/svn/pyxmpp/trunk pyxmpp
MAINTAINER= infofarmer@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_SITELIBDIR}/M2Crypto/__init__.py:${PORTSDIR}/security/py-m2crypto
RUN_DEPENDS:= ${BUILD_DEPENDS}
USE_PYTHON= 2.3+
#USE_PYDISTUTILS= yes
USE_BZIP2= yes
INSTALLS_EGGINFO= yes
PYDISTUTILS_PKGVERSION= 1.0.0_svn
post-extract:
@${MKDIR} ${WRKSRC}/.svn
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>