ports/155526: [PATCH] devel/py-elementtree: ignore if python >= 2.5

Ruslan Mahmatkhanov cvs-src at yandex.ru
Sun Mar 13 13:20:12 UTC 2011


>Number:         155526
>Category:       ports
>Synopsis:       [PATCH] devel/py-elementtree: ignore if python >= 2.5
>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:   Sun Mar 13 13:20:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ruslan Mahmatkhanov
>Release:        8.2-STABLE
>Organization:
>Environment:
8.2-STABLE i386
>Description:
- set IGNORE if python version is >= 2.5, because ElementTree is a part of standard library since 2.5:
http://docs.python.org/library/xml.etree.elementtree.html
http://effbot.org/zone/elementtree.html
- remove MD5

Dunno maybe we should delete this port at all, since we dropping support of 24 in the tree.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruNa py-elementtree.orig/Makefile py-elementtree/Makefile
--- py-elementtree.orig/Makefile	2009-05-22 11:08:07.000000000 +0400
+++ py-elementtree/Makefile	2011-03-13 16:11:08.000000000 +0300
@@ -33,4 +33,10 @@
 	${CP} -R ${WRKSRC}/samples/ ${EXAMPLESDIR}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} >= 250
+IGNORE=	elementTree ships with Python 2.5.x
+.endif
+
+.include <bsd.port.post.mk>
diff -ruNa py-elementtree.orig/distinfo py-elementtree/distinfo
--- py-elementtree.orig/distinfo	2006-11-16 00:49:18.000000000 +0300
+++ py-elementtree/distinfo	2011-03-13 16:07:59.000000000 +0300
@@ -1,3 +1,2 @@
-MD5 (elementtree-1.2.6-20050316.tar.gz) = e1b21716be8bfff8bf192fc3880ad008
 SHA256 (elementtree-1.2.6-20050316.tar.gz) = b29d5f2417cb331562c8c5f8ebef2a895ba540261c4245f526143c6a31bccb04
 SIZE (elementtree-1.2.6-20050316.tar.gz) = 41752


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list