blob: 5128bb5788e35eb25de8f6464a971e175158e1b7 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Ports collection makefile for: py-irc-transport
# Date created: 21 April 2006
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= xmpppy-irc
PORTVERSION= 0.3
PORTREVISION= 1
CATEGORIES= net-im python irc
MASTER_SITES= SF/xmpppy/PyIRCt/${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= irc-transport-${PORTVERSION}
MAINTAINER= wenheping@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.5+
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
PORTSCOUT= limit:^0\.4[1-4]
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>
|