Date: Thu, 18 Aug 2011 09:51:25 GMT From: Ruslan Mahmatkhanov <cvs-src@yandex.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/159867: [PATCH] news/py-pynzb: eliminate py-elementtree dependency Message-ID: <201108180951.p7I9pPD9047442@red.freebsd.org> Resent-Message-ID: <201108181000.p7IA0JAL052730@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108180951.p7I9pPD9047442>