View | Details | Raw Unified | Return to bug 173828
Collapse All | Expand All

(-)Makefile (-20 / +16 lines)
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>
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (python-irclib-0.6.4.zip) = f18205c0d7b25b6f5e5acb1d13e35be930434590585acc2b701a7dd498839dc1
1
SHA256 (irc-5.0.1.zip) = c7262b21a4b6f713913aaddcd6e1c73920a07903feda9758065699d6d5fc3796
2
SIZE (python-irclib-0.6.4.zip) = 74319
2
SIZE (irc-5.0.1.zip) = 88039
(-)pkg-descr (-4 / +4 lines)
Lines 1-6 Link Here
1
This library is intended to encapsulate the IRC protocol at a quite
1
This library is intended to encapsulate the IRC protocol at a quite
2
low level.  It provides an event-driven IRC client framework.  It has
2
low level.  It provides an event-driven IRC client framework. It has
3
a fairly thorough support for the basic IRC protocol, CTCP and DCC.
3
a fairly thorough support for the basic IRC protocol, CTCP and DCC
4
It actually does CTCP parsing exactly as the CTCP specifications describe it.
4
connections.
5
5
6
WWW: http://sourceforge.net/projects/python-irclib/
6
WWW: https://bitbucket.org/jaraco/irc
(-)pkg-plist (-18 / +6 lines)
Lines 1-20 Link Here
1
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dccsend
1
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
2
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dccreceive
2
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dccreceive.py
3
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/irccat2
3
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dccsend.py
4
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/irccat
4
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/irccat.py
5
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/irccat2.py
6
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/servermap.py
5
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/testbot.py
7
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/testbot.py
6
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/servermap
7
%%PYTHON_LIBDIR%%/site-packages/python_irclib-%%VERSION%%-py%%PYVER%%.egg-info/PKG-INFO
8
%%PYTHON_LIBDIR%%/site-packages/python_irclib-%%VERSION%%-py%%PYVER%%.egg-info/dependency_links.txt
9
%%PYTHON_LIBDIR%%/site-packages/python_irclib-%%VERSION%%-py%%PYVER%%.egg-info/SOURCES.txt
10
%%PYTHON_LIBDIR%%/site-packages/python_irclib-%%VERSION%%-py%%PYVER%%.egg-info/top_level.txt
11
%%PYTHON_LIBDIR%%/site-packages/ircbot.pyc
12
%%PYTHON_LIBDIR%%/site-packages/irclib.pyc
13
%%PYTHON_LIBDIR%%/site-packages/ircbot.py
14
%%PYTHON_LIBDIR%%/site-packages/ircbot.pyo
15
%%PYTHON_LIBDIR%%/site-packages/irclib.pyo
16
%%PYTHON_LIBDIR%%/site-packages/irclib.py
17
@dirrm %%PYTHON_LIBDIR%%/site-packages/python_irclib-%%VERSION%%-py%%PYVER%%.egg-info
18
@dirrmtry %%PYTHON_LIBDIR%%/site-packages
19
@dirrmtry %%PYTHON_LIBDIR%%
20
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
8
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%

Return to bug 173828