mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
ed39daa27e
- Update to 8.5.4 - Allow staging - Use python auto plist
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# Created by: Hye-Shik Chang
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= irc
|
|
PORTVERSION= 8.5.4
|
|
CATEGORIES= irc python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= wg@FreeBSD.org
|
|
COMMENT= IRC protocol client library for Python
|
|
|
|
LICENSE= MIT
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hgtools>0:${PORTSDIR}/devel/py-hgtools \
|
|
${PYTHON_PKGNAMEPREFIX}pytest-runner>0:${PORTSDIR}/devel/py-pytest-runner
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS=easy_install
|
|
PYDISTUTILS_AUTOPLIST= yes
|
|
USE_ZIP= yes
|
|
|
|
PORTEXAMPLES= irccat.py irccat2.py servermap.py testbot.py \
|
|
dccreceive.py dccsend.py
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} < 270
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}argparse>0:${PORTSDIR}/devel/py-argparse
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|license="MIT",|license="MIT", zip_safe=False,|' ${WRKSRC}/setup.py
|
|
${CHMOD} -R o-w ${WRKSRC}/irc.egg-info
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_SCRIPT} ${PORTEXAMPLES:S,^,${WRKSRC}/scripts/,} ${STAGEDIR}${EXAMPLESDIR}/
|
|
|
|
.include <bsd.port.post.mk>
|