From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Mar 13 13:10:11 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BE6D106564A for ; Sun, 13 Mar 2011 13:10:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0DAF98FC15 for ; Sun, 13 Mar 2011 13:10:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p2DDAAUc041751 for ; Sun, 13 Mar 2011 13:10:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2DDAAgT041750; Sun, 13 Mar 2011 13:10:10 GMT (envelope-from gnats) Resent-Date: Sun, 13 Mar 2011 13:10:10 GMT Resent-Message-Id: <201103131310.p2DDAAgT041750@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ruslan Mahmatkhanov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD6F010656AE for ; Sun, 13 Mar 2011 13:08:08 +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 B2CB68FC14 for ; Sun, 13 Mar 2011 13:08:08 +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 p2DD880i057309 for ; Sun, 13 Mar 2011 13:08:08 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p2DD88xP057308; Sun, 13 Mar 2011 13:08:08 GMT (envelope-from nobody) Message-Id: <201103131308.p2DD88xP057308@red.freebsd.org> Date: Sun, 13 Mar 2011 13:08:08 GMT From: Ruslan Mahmatkhanov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/155524: [PATCH] devel/py-celementtree: ignore if python >= 2.5 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2011 13:10:11 -0000 >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 +.include + +.if ${PYTHON_REL} >= 250 +IGNORE= cElementTree ships with Python 2.5.x +.endif + +.include 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: