From nobody@FreeBSD.org  Thu Nov 22 07:11:38 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id AD0A1742
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 22 Nov 2012 07:11:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 8B7058FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 22 Nov 2012 07:11:38 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qAM7BcaK077941
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 22 Nov 2012 07:11:38 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qAM7BcbJ077934;
	Thu, 22 Nov 2012 07:11:38 GMT
	(envelope-from nobody)
Message-Id: <201211220711.qAM7BcbJ077934@red.freebsd.org>
Date: Thu, 22 Nov 2012 07:11:38 GMT
From: Ruslan Mahmatkhanov <rm@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: irc/py-irclib: update to 5.0.1
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: william88@gmail.com

>Number:         173828
>Category:       ports
>Synopsis:       irc/py-irclib: update to 5.0.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-python
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 22 07:20:00 UTC 2012
>Closed-Date:    Thu Nov 22 11:26:42 UTC 2012
>Last-Modified:  Thu Nov 22 11:26:42 UTC 2012
>Originator:     Ruslan Mahmatkhanov
>Release:        10.0-CURRENT
>Organization:
>Environment:
10.0-CURRENT amd64
>Description:
- update to 0.5.1
- rename to py-irc to follow upstream (there will be appropriate changes to MOVED and irc/Makefile)
- 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 is should be python3 aware, so change USE_PYTHON to yes,
but it still doesn't build with it because py-hgtools isn't, so can't test for sure.

buildlog: http://people.freebsd.org/~rm/py27-irc-5.0.1.log
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile	(revision 307639)
+++ Makefile	(working copy)
@@ -1,41 +1,37 @@
 # Created by: Hye-Shik Chang
 # $FreeBSD$
 
-PORTNAME=	irclib
-PORTVERSION=	0.6.4
-PORTREVISION=	1
+PORTNAME=	irc
+PORTVERSION=	5.0.1
 CATEGORIES=	irc python
-MASTER_SITES=	SF/python-${PORTNAME}
+MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-DISTNAME=	python-irclib-${PORTVERSION}
 
 MAINTAINER=	william88@gmail.com
 COMMENT=	IRC protocol client library for Python
 
-USE_PYTHON=	-2.7
+USE_PYTHON=	yes
+USE_PYDISTUTILS=easy_install
 USE_ZIP=	yes
-USE_PYDISTUTILS=yes
-PYDISTUTILS_PKGNAME=	python-irclib
-PYDISTUTILS_NOEGGINFO=yes
 
-# TODO: irclib have some weird install script bundled and use of
-#       USE_PYDISTUTILS=easy_install would break it
-BUILD_DEPENDS+=	easy_install:${PORTSDIR}/devel/py-setuptools \
-		${PYTHON_PKGNAMEPREFIX}hgtools>0:${PORTSDIR}/devel/py-hgtools
+BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}hgtools>0:${PORTSDIR}/devel/py-hgtools
 
-PLIST_SUB=	VERSION=${PORTVERSION} PYVER=${PYTHON_VERSION:S/python//}
-
-EXAMPLEFILES=	irccat irccat2 servermap testbot.py \
-		dccreceive dccsend
+EXAMPLEFILES=	irccat.py irccat2.py servermap.py testbot.py \
+		dccreceive.py dccsend.py
 EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
 
-.if !defined(NOPORTEXAMPLES)
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MEXAMPLES}
 post-install:
 	@${MKDIR} ${EXAMPLESDIR}
 .for file in ${EXAMPLEFILES}
 	@${INSTALL_SCRIPT} ${WRKSRC}/scripts/${file} ${EXAMPLESDIR}/
 .endfor
-	@${FIND} ${PYTHONPREFIX_SITELIBDIR}/${PYDISTUTILS_EGGINFO} -type f -exec ${CHMOD} 644 {} +;
 .endif
 
-.include <bsd.port.mk>
+.if ${PYTHON_REL} < 270
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib>0:${PORTSDIR}/devel/py-importlib
+.endif
+
+.include <bsd.port.post.mk>
Index: distinfo
===================================================================
--- distinfo	(revision 307639)
+++ distinfo	(working copy)
@@ -1,2 +1,2 @@
-SHA256 (python-irclib-0.6.4.zip) = f18205c0d7b25b6f5e5acb1d13e35be930434590585acc2b701a7dd498839dc1
-SIZE (python-irclib-0.6.4.zip) = 74319
+SHA256 (irc-5.0.1.zip) = c7262b21a4b6f713913aaddcd6e1c73920a07903feda9758065699d6d5fc3796
+SIZE (irc-5.0.1.zip) = 88039
Index: pkg-descr
===================================================================
--- pkg-descr	(revision 307639)
+++ pkg-descr	(working copy)
@@ -1,6 +1,6 @@
 This library is intended to encapsulate the IRC protocol at a quite
-low level.  It provides an event-driven IRC client framework.  It has
-a fairly thorough support for the basic IRC protocol, CTCP and DCC.
-It actually does CTCP parsing exactly as the CTCP specifications describe it.
+low level.  It provides an event-driven IRC client framework. It has
+a fairly thorough support for the basic IRC protocol, CTCP and DCC
+connections.
 
-WWW: http://sourceforge.net/projects/python-irclib/
+WWW: https://bitbucket.org/jaraco/irc
Index: pkg-plist
===================================================================
--- pkg-plist	(revision 307639)
+++ pkg-plist	(working copy)
@@ -1,20 +1,8 @@
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dccsend
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dccreceive
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/irccat2
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/irccat
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dccreceive.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dccsend.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/irccat.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/irccat2.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/servermap.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/testbot.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/servermap
-%%PYTHON_LIBDIR%%/site-packages/python_irclib-%%VERSION%%-py%%PYVER%%.egg-info/PKG-INFO
-%%PYTHON_LIBDIR%%/site-packages/python_irclib-%%VERSION%%-py%%PYVER%%.egg-info/dependency_links.txt
-%%PYTHON_LIBDIR%%/site-packages/python_irclib-%%VERSION%%-py%%PYVER%%.egg-info/SOURCES.txt
-%%PYTHON_LIBDIR%%/site-packages/python_irclib-%%VERSION%%-py%%PYVER%%.egg-info/top_level.txt
-%%PYTHON_LIBDIR%%/site-packages/ircbot.pyc
-%%PYTHON_LIBDIR%%/site-packages/irclib.pyc
-%%PYTHON_LIBDIR%%/site-packages/ircbot.py
-%%PYTHON_LIBDIR%%/site-packages/ircbot.pyo
-%%PYTHON_LIBDIR%%/site-packages/irclib.pyo
-%%PYTHON_LIBDIR%%/site-packages/irclib.py
-@dirrm %%PYTHON_LIBDIR%%/site-packages/python_irclib-%%VERSION%%-py%%PYVER%%.egg-info
-@dirrmtry %%PYTHON_LIBDIR%%/site-packages
-@dirrmtry %%PYTHON_LIBDIR%%
 %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-python 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Nov 22 07:20:08 UTC 2012 
Responsible-Changed-Why:  
freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173828 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu Nov 22 07:20:10 UTC 2012 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173828 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: william88@gmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/173828: irc/py-irclib: update to 5.0.1
Date: Thu, 22 Nov 2012 07:20:09 UT

 Maintainer of irc/py-irclib,
 
 Please note that PR ports/173828 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/173828
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: William Grzybowski <william88@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/173828: irc/py-irclib: update to 5.0.1
Date: Thu, 22 Nov 2012 07:52:24 -0200

 --20cf300faeab94f4dd04cf126c2e
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 Hi,
 
 I didn't know there was a new upstream, thats nice. Patch approved on my
 side, thanks!
 
 
 On Thu, Nov 22, 2012 at 5:20 AM, Edwin Groothuis <edwin@freebsd.org> wrote:
 
 > Maintainer of irc/py-irclib,
 >
 > Please note that PR ports/173828 has just been submitted.
 >
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 >
 > The full text of the PR can be found at:
 >     http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/173828
 >
 > --
 > Edwin Groothuis via the GNATS Auto Assign Tool
 > edwin@FreeBSD.org
 >
 
 
 
 --=20
 William Grzybowski
 ------------------------------------------
 Ag=EAncia Livre - www.agencialivre.com.br
 Curitiba/PR - Brasil
 
 --20cf300faeab94f4dd04cf126c2e
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 Hi,<br><br>I didn&#39;t know there was a new upstream, thats nice. Patch ap=
 proved on my side, thanks!<br><div class=3D"gmail_extra"><br><br><div class=
 =3D"gmail_quote">On Thu, Nov 22, 2012 at 5:20 AM, Edwin Groothuis <span dir=
 =3D"ltr">&lt;<a href=3D"mailto:edwin@freebsd.org" target=3D"_blank">edwin@f=
 reebsd.org</a>&gt;</span> wrote:<br>
 <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
 x #ccc solid;padding-left:1ex">Maintainer of irc/py-irclib,<br>
 <br>
 Please note that PR ports/173828 has just been submitted.<br>
 <br>
 If it contains a patch for an upgrade, an enhancement or a bug fix<br>
 you agree on, reply to this email stating that you approve the patch<br>
 and a committer will take care of it.<br>
 <br>
 The full text of the PR can be found at:<br>
 =A0 =A0 <a href=3D"http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/17382=
 8" target=3D"_blank">http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/173=
 828</a><br>
 <span class=3D"HOEnZb"><font color=3D"#888888"><br>
 --<br>
 Edwin Groothuis via the GNATS Auto Assign Tool<br>
 edwin@FreeBSD.org<br>
 </font></span></blockquote></div><br><br clear=3D"all"><br>-- <br>William G=
 rzybowski<br>------------------------------------------<br>Ag=EAncia Livre =
 - <a href=3D"http://www.agencialivre.com.br" target=3D"_blank">www.agencial=
 ivre.com.br</a><br>
 Curitiba/PR - Brasil<br>
 </div>
 
 --20cf300faeab94f4dd04cf126c2e--
State-Changed-From-To: feedback->closed 
State-Changed-By: rm 
State-Changed-When: Thu Nov 22 11:26:41 UTC 2012 
State-Changed-Why:  
Committed, thank you! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173828 
>Unformatted:
