Lines 1-41
Link Here
|
1 |
# Created by: Hye-Shik Chang |
1 |
# Created by: Hye-Shik Chang |
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= irclib |
4 |
PORTNAME= irc |
5 |
PORTVERSION= 0.6.4 |
5 |
PORTVERSION= 5.0.1 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= irc python |
6 |
CATEGORIES= irc python |
8 |
MASTER_SITES= SF/python-${PORTNAME} |
7 |
MASTER_SITES= CHEESESHOP |
9 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
10 |
DISTNAME= python-irclib-${PORTVERSION} |
|
|
11 |
|
9 |
|
12 |
MAINTAINER= william88@gmail.com |
10 |
MAINTAINER= william88@gmail.com |
13 |
COMMENT= IRC protocol client library for Python |
11 |
COMMENT= IRC protocol client library for Python |
14 |
|
12 |
|
15 |
USE_PYTHON= -2.7 |
13 |
USE_PYTHON= yes |
|
|
14 |
USE_PYDISTUTILS=easy_install |
16 |
USE_ZIP= yes |
15 |
USE_ZIP= yes |
17 |
USE_PYDISTUTILS=yes |
|
|
18 |
PYDISTUTILS_PKGNAME= python-irclib |
19 |
PYDISTUTILS_NOEGGINFO=yes |
20 |
|
16 |
|
21 |
# TODO: irclib have some weird install script bundled and use of |
17 |
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}hgtools>0:${PORTSDIR}/devel/py-hgtools |
22 |
# USE_PYDISTUTILS=easy_install would break it |
|
|
23 |
BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools \ |
24 |
${PYTHON_PKGNAMEPREFIX}hgtools>0:${PORTSDIR}/devel/py-hgtools |
25 |
|
18 |
|
26 |
PLIST_SUB= VERSION=${PORTVERSION} PYVER=${PYTHON_VERSION:S/python//} |
19 |
EXAMPLEFILES= irccat.py irccat2.py servermap.py testbot.py \ |
27 |
|
20 |
dccreceive.py dccsend.py |
28 |
EXAMPLEFILES= irccat irccat2 servermap testbot.py \ |
|
|
29 |
dccreceive dccsend |
30 |
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} |
21 |
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} |
31 |
|
22 |
|
32 |
.if !defined(NOPORTEXAMPLES) |
23 |
.include <bsd.port.pre.mk> |
|
|
24 |
|
25 |
.if ${PORT_OPTIONS:MEXAMPLES} |
33 |
post-install: |
26 |
post-install: |
34 |
@${MKDIR} ${EXAMPLESDIR} |
27 |
@${MKDIR} ${EXAMPLESDIR} |
35 |
.for file in ${EXAMPLEFILES} |
28 |
.for file in ${EXAMPLEFILES} |
36 |
@${INSTALL_SCRIPT} ${WRKSRC}/scripts/${file} ${EXAMPLESDIR}/ |
29 |
@${INSTALL_SCRIPT} ${WRKSRC}/scripts/${file} ${EXAMPLESDIR}/ |
37 |
.endfor |
30 |
.endfor |
38 |
@${FIND} ${PYTHONPREFIX_SITELIBDIR}/${PYDISTUTILS_EGGINFO} -type f -exec ${CHMOD} 644 {} +; |
|
|
39 |
.endif |
31 |
.endif |
40 |
|
32 |
|
41 |
.include <bsd.port.mk> |
33 |
.if ${PYTHON_REL} < 270 |
|
|
34 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib>0:${PORTSDIR}/devel/py-importlib |
35 |
.endif |
36 |
|
37 |
.include <bsd.port.post.mk> |