mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 04:16:27 -04:00
scripting with Jabber. Similar projects are Twisted Words and jabber.py. This library was not designed from scratch. It inherits some code from jabberpy and have very similar API in many places. Though it is separate project since it have almost completely different architecture and primarily aims to work with jabberd2 - the new Open Source Jabber Server. WWW: http://xmpppy.sourceforge.net/ The IRC transport is a dynamic gateway that allows XMPP/Jabber users to connect to IRC using their Groupchat and MUC clients. It is based on xmpppy and irclib Python libraries. WWW: http://xmpppy.sourceforge.net/irc/ PR: ports/96362 Submitted by: Andrew Pantyukhin <infofarmer@gmail.com>
51 lines
1.7 KiB
Makefile
51 lines
1.7 KiB
Makefile
# Ports collection makefile for: py-irc-transport
|
|
# Date created: 21 April 2006
|
|
# Whom: Andrew Pantyukhin <infofarmer@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= xmpppy-irc
|
|
PORTVERSION= 0.3
|
|
CATEGORIES= net-im python irc
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= xmpppy
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= irc-transport-${PORTVERSION}
|
|
|
|
MAINTAINER= infofarmer@gmail.com
|
|
COMMENT= An xmpp to irc transport
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/xmpp/__init__.py:${PORTSDIR}/net-im/py-xmpppy \
|
|
${PYTHON_SITELIBDIR}/irclib.py:${PORTSDIR}/irc/py-irclib
|
|
|
|
USE_PYTHON= 2.3+
|
|
NO_BUILD= yes
|
|
FILES= irc.py jep0106.py jep0133.py test_jep0106.py
|
|
PFILES= ${FILES:S.^.%%PYTHON_SITELIBDIR%%/xmpp/irc/.}
|
|
PLIST_FILES= ${PFILES} ${PFILES:S.$.c.} ${PFILES:S.$.o.} etc/${PORTNAME:S.-..}.conf.sample
|
|
PLIST_DIRS= %%PYTHON_SITELIBDIR%%/xmpp/irc
|
|
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} FEXEC=${PYTHON_SITELIBDIR}/xmpp/irc/irc.py
|
|
USE_RC_SUBR= xmpppyirc
|
|
PORTDOCS= ChangeLog IRC-Transport-Howtouse.html README.txt
|
|
DDIR= ${PYTHON_SITELIBDIR}/xmpp/irc
|
|
|
|
post-patch:
|
|
@${GREP} -lr '/usr/bin/python' ${WRKSRC} | \
|
|
${XARGS} ${REINPLACE_CMD} -e "s./usr/bin/python.${PYTHON_CMD}." \
|
|
-e "s!/etc/jabber/jabber-irc.conf!${PREFIX}/etc/${PORTNAME:S.-..}.conf!"
|
|
|
|
do-install:
|
|
@${INSTALL} -d ${DDIR}
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/irc.py ${DDIR}/
|
|
@${INSTALL_DATA} ${FILES:M*jep*:S.^.${WRKSRC}/.} ${DDIR}/
|
|
@${INSTALL_DATA} ${WRKSRC}/transport.ini ${PREFIX}/etc/${PORTNAME:S.-..}.conf.sample
|
|
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${DDIR}
|
|
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${DDIR}
|
|
@${CHMOD} -R a-w ${DDIR}
|
|
.ifndef NOPORTDOCS
|
|
@${INSTALL} -d ${DOCSDIR}
|
|
@${INSTALL} ${PORTDOCS:S.^.${WRKSRC}/.} ${DOCSDIR}/
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|