ports/159867: [PATCH] news/py-pynzb: eliminate py-elementtree dependency

Ruslan Mahmatkhanov cvs-src at yandex.ru
Thu Aug 18 10:00:22 UTC 2011


>Number:         159867
>Category:       ports
>Synopsis:       [PATCH] news/py-pynzb: eliminate py-elementtree dependency
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 18 10:00:19 UTC 2011
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list