openbsd-ports/net/py-xmpp/Makefile

44 lines
1.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.15 2011/11/16 15:57:15 rpointel Exp $
COMMENT= Python XMPP and Jabber implementation
MODPY_EGG_VERSION= 1.1.2
DISTNAME= pyxmpp-${MODPY_EGG_VERSION}
PKGNAME= ${DISTNAME:S/^py/py-/}
CATEGORIES= net devel
HOMEPAGE= http://pyxmpp.jajcus.net/
MAINTAINER= Will Maier <wcmaier@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= xml2 ${MODPY_WANTLIB}
MASTER_SITES= http://cloud.github.com/downloads/Jajcus/pyxmpp/
MODULES= lang/python
2010-11-19 17:31:32 -05:00
BUILD_DEPENDS= textproc/libxml,-python
RUN_DEPENDS= textproc/libxml,-python \
net/py-dnspython
REGRESS_DEPENDS=${RUN_DEPENDS}
MODPY_ADJ_FILES=examples/*.py
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-xmpp
${INSTALL_SCRIPT} ${WRKSRC}/examples/*.py \
${PREFIX}/share/examples/py-xmpp
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-xmpp
cd ${WRKSRC}/doc/www/api && tar cf - . | \
2006-11-10 23:21:28 -05:00
(cd ${PREFIX}/share/doc/py-xmpp && tar xf -)
do-regress:
@cd ${WRKSRC}/tests && PYTHONPATH=../ ${MODPY_BIN} all.py
.include <bsd.port.mk>