From nobody@FreeBSD.org  Thu Aug 18 09:51:26 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 631F1106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Aug 2011 09:51:26 +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 52C768FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Aug 2011 09:51:26 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p7I9pPHr047443
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Aug 2011 09:51:25 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p7I9pPD9047442;
	Thu, 18 Aug 2011 09:51:25 GMT
	(envelope-from nobody)
Message-Id: <201108180951.p7I9pPD9047442@red.freebsd.org>
Date: Thu, 18 Aug 2011 09:51:25 GMT
From: Ruslan Mahmatkhanov <cvs-src@yandex.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] news/py-pynzb: eliminate py-elementtree dependency
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         159867
>Category:       ports
>Synopsis:       [PATCH] news/py-pynzb: eliminate py-elementtree dependency
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lioux
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 18 10:00:19 UTC 2011
>Closed-Date:    Wed Aug 24 00:55:35 UTC 2011
>Last-Modified:  Wed Aug 24 01:00:22 UTC 2011
>Originator:     Ruslan Mahmatkhanov
>Release:        9.0-BETA1
>Organization:
>Environment:
9.0-BETA1 i386
>Description:
This port have optional dependency on devel/py-elementtree (default off). At the same time USE_PYTHON= 2.5+ is defined. elementtree is a part of python since 2.5, so this dependency isn't needed. Removing it.
See: http://docs.python.org/library/xml.etree.elementtree.html
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruNa py-pynzb.orig/Makefile py-pynzb/Makefile
--- py-pynzb.orig/Makefile	2010-06-13 16:41:32.000000000 +0400
+++ py-pynzb/Makefile	2011-08-18 13:42:56.000000000 +0400
@@ -19,8 +19,7 @@
 USE_PYDISTUTILS=	easy_install
 PYDISTUTILS_NOEGGINFO=	yes
 
-OPTIONS=	LXML		"Add support for py-lxml" Off \
-		ELEMENTTREE	"Add support for py-elementtree" Off
+OPTIONS=	LXML		"Add support for py-lxml" Off
 
 .include <bsd.port.pre.mk>
 
@@ -28,8 +27,4 @@
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}lxml>=2.2.1:${PORTSDIR}/devel/py-lxml
 .endif
 
-.if !defined(WITHOUT_ELEMENTTREE)
-RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/elementtree/__init__.py:${PORTSDIR}/devel/py-elementtree
-.endif
-
 .include <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->lioux 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Aug 18 10:01:16 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159867 
State-Changed-From-To: open->closed 
State-Changed-By: lioux 
State-Changed-When: Wed Aug 24 00:55:33 UTC 2011 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/159867: commit references a PR
Date: Wed, 24 Aug 2011 00:55:36 +0000 (UTC)

 lioux       2011-08-24 00:55:23 UTC
 
   FreeBSD ports repository
 
   Modified files:
     news/py-pynzb        Makefile 
   Log:
   - Remove optional dependency on devel/py-elementtree since it's
     already including on python 2.5 and later versions. These are
     already the required versions for the port.
     o Remove ELEMENTTREE from OPTIONS
     o Bump PORTREVISION due to dependency list change
   
   PR:             159867
   Submitted by:   Ruslan Mahmatkhanov <cvs-src@yandex.ru>
   
   Revision  Changes    Path
   1.3       +2 -6      ports/news/py-pynzb/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
