forked from Lainports/freebsd-ports
- rename to py-irc to follow upstream - change MASTER_SITES to pypi - switch to easy_install - update examples - convert to optionsng - add optional dependency on py-importlib for python < 2.7 - update WWW and port description - general clean-up This port should be python3 aware, so change USE_PYTHON to yes, but it still doesn't builds with it because py-hgtools isn't, so can't test for sure. PR: 173828 Submitted by: rm (myself) Approved by: William Grzybowski <william88 at gmail dot com> (maintainer, via python@ ML) Feature safe: yes
37 lines
869 B
Makefile
37 lines
869 B
Makefile
# Created by: Hye-Shik Chang
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= irc
|
|
PORTVERSION= 5.0.1
|
|
CATEGORIES= irc python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= william88@gmail.com
|
|
COMMENT= IRC protocol client library for Python
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS=easy_install
|
|
USE_ZIP= yes
|
|
|
|
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}hgtools>0:${PORTSDIR}/devel/py-hgtools
|
|
|
|
EXAMPLEFILES= irccat.py irccat2.py servermap.py testbot.py \
|
|
dccreceive.py dccsend.py
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
post-install:
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
.for file in ${EXAMPLEFILES}
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/scripts/${file} ${EXAMPLESDIR}/
|
|
.endfor
|
|
.endif
|
|
|
|
.if ${PYTHON_REL} < 270
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib>0:${PORTSDIR}/devel/py-importlib
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|