Date: Sun, 13 Mar 2011 13:08:08 GMT From: Ruslan Mahmatkhanov <cvs-src@yandex.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/155524: [PATCH] devel/py-celementtree: ignore if python >= 2.5 Message-ID: <201103131308.p2DD88xP057308@red.freebsd.org> Resent-Message-ID: <201103131310.p2DDAAgT041750@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 155524 >Category: ports >Synopsis: [PATCH] devel/py-celementtree: 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:10:10 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 cElementTree is a part of standard library since 2.5: http://docs.python.org/library/xml.etree.elementtree.html - remove MD5 - pet portlint (install examples into EXAMPLESDIR, not DOCSDIR) 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-celementtree.orig/Makefile py-celementtree/Makefile --- py-celementtree.orig/Makefile 2008-01-09 20:05:44.000000000 +0300 +++ py-celementtree/Makefile 2011-03-13 16:00:44.000000000 +0300 @@ -7,7 +7,7 @@ PORTNAME= cElementTree PORTVERSION= 1.0.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel python MASTER_SITES= http://effbot.org/media/downloads/ \ http://nivi.interfree.it/distfiles/${PORTNAME}/ @@ -25,10 +25,16 @@ EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} -.if !defined(NOPORTDOCS) +.if !defined(NOPORTEXAMPLES) post-install: @${MKDIR} ${EXAMPLESDIR} ${CP} -R ${WRKSRC}/samples/ ${EXAMPLESDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${PYTHON_REL} >= 250 +IGNORE= cElementTree ships with Python 2.5.x +.endif + +.include <bsd.port.post.mk> diff -ruNa py-celementtree.orig/distinfo py-celementtree/distinfo --- py-celementtree.orig/distinfo 2006-01-14 20:42:16.000000000 +0300 +++ py-celementtree/distinfo 2011-03-13 15:48:08.000000000 +0300 @@ -1,3 +1,2 @@ -MD5 (cElementTree-1.0.5-20051216.tar.gz) = b6896e742e39f594046b07e58f1d25fe SHA256 (cElementTree-1.0.5-20051216.tar.gz) = b2e528c99837124b32598bde7a19da579203c600d71f22f4c84da0933ba09751 SIZE (cElementTree-1.0.5-20051216.tar.gz) = 93766 diff -ruNa py-celementtree.orig/pkg-plist py-celementtree/pkg-plist --- py-celementtree.orig/pkg-plist 2006-01-14 20:42:16.000000000 +0300 +++ py-celementtree/pkg-plist 2011-03-13 15:59:44.000000000 +0300 @@ -1,5 +1,5 @@ @comment $FreeBSD: ports/devel/py-celementtree/pkg-plist,v 1.1 2006/01/14 17:42:16 pav Exp $ %%PYTHON_SITELIBDIR%%/cElementTree.so -%%PORTDOCS%%%%EXAMPLESDIR%%/simple-ns.xml -%%PORTDOCS%%%%EXAMPLESDIR%%/simple.xml -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/simple-ns.xml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/simple.xml +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103131308.p2DD88xP057308>