44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.7 2009/06/01 18:38:33 wcmaier Exp $
|
|
|
|
COMMENT= Python XMPP and Jabber implementation
|
|
|
|
MODPY_EGG_VERSION= 1.0.1
|
|
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
|
|
|
|
MASTER_SITES= ${HOMEPAGE}downloads/
|
|
|
|
MODULES= lang/python
|
|
|
|
BUILD_DEPENDS= :py-libxml-*:textproc/libxml,-python
|
|
RUN_DEPENDS= :py-libxml-*:textproc/libxml,-python \
|
|
:py-dnspython-*:net/py-dnspython
|
|
REGRESS_DEPENDS=${RUN_DEPENDS}
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-xmpp
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/*.py \
|
|
${PREFIX}/share/examples/py-xmpp
|
|
perl -pi -e "s,/usr/bin/python,${MODPY_BIN}," \
|
|
${PREFIX}/share/examples/py-xmpp/*.py
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-xmpp
|
|
cd ${WRKSRC}/doc/www/api && tar cf - . | \
|
|
(cd ${PREFIX}/share/doc/py-xmpp && tar xf -)
|
|
|
|
do-regress:
|
|
@cd ${WRKSRC}/tests && PYTHONPATH=../ ${MODPY_BIN} all.py
|
|
|
|
.include <bsd.port.mk>
|