# Created by: Hye-Shik Chang # $FreeBSD$ PORTNAME= irc PORTVERSION= 8.3.2 CATEGORIES= irc python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= wg@FreeBSD.org COMMENT= IRC protocol client library for Python LICENSE= MIT USE_PYTHON= yes USE_PYDISTUTILS=easy_install USE_ZIP= yes BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}hgtools>0:${PORTSDIR}/devel/py-hgtools \ ${PYTHON_PKGNAMEPREFIX}pytest-runner>0:${PORTSDIR}/devel/py-pytest-runner PORTEXAMPLES= irccat.py irccat2.py servermap.py testbot.py \ dccreceive.py dccsend.py EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} .include .if ${PYTHON_REL} < 270 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib>0:${PORTSDIR}/devel/py-importlib RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}argparse>0:${PORTSDIR}/devel/py-argparse .endif post-patch: @${REINPLACE_CMD} -e \ 's|use_2to3=True,|use_2to3=True, zip_safe=False,|' ${WRKSRC}/setup.py ${CHMOD} -R o-w ${WRKSRC}/irc.egg-info .if ${PORT_OPTIONS:MEXAMPLES} post-install: @${MKDIR} ${EXAMPLESDIR} ${INSTALL_SCRIPT} ${PORTEXAMPLES:S,^,${WRKSRC}/scripts/,} ${EXAMPLESDIR}/ .endif .include