Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Sep 2011 11:10:12 GMT
From:      Ruslan Mahmatkhanov <cvs-src@yandex.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/160482: [PATCH] misc/py-yolk: eliminate py-elementtree dependency
Message-ID:  <201109051110.p85BACXW017806@red.freebsd.org>
Resent-Message-ID: <201109051120.p85BK1FW078668@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         160482
>Category:       ports
>Synopsis:       [PATCH] misc/py-yolk: 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:   Mon Sep 05 11:20:01 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ruslan Mahmatkhanov
>Release:        9.0-BETA1
>Organization:
>Environment:
9.0-BETA1 i386
>Description:
Bump USE_PYTHON to 2.5+ since 2.4 is EOL. 
Since minmal required python version is 2.5 now, 
we don't need to depend on devel/py-elementtree,
so remove it. 
Also drop PYPI_RSS option - rss support now will
be included uncoditionally.
As far i understand, no portrevision bump needed,
since this is optional dependency that was droped.

tag: dropelementtree

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/Makefile b/Makefile
index 65f019c..400c2df 100644
--- a/Makefile
+++ b/Makefile
@@ -16,10 +16,7 @@ PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 MAINTAINER=	nivit@FreeBSD.org
 COMMENT=	A Python tool for listing packages installed by setuptools
 
-OPTIONS=	PYPI_RSS	"Enable fetching PyPI RSS feed" On
-OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options
-
-USE_PYTHON=	yes
+USE_PYTHON=	2.5+
 USE_PYDISTUTILS=	easy_install
 
 .if !defined (NO_INSTALL_MANPAGES)
@@ -42,10 +39,6 @@ post-install:
 	@cd ${WRKSRC}/examples && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} ";"
 .endif
 
-.if defined (WITH_PYPI_RSS) && defined(PYTHON_VER) && ${PYTHON_VER} < 2.5
-RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/elementtree/__init__.py:${PORTSDIR}/devel/py-elementtree
-.endif
-
 .if !defined (NOPORTEXAMPLES)
 EXAMPLESDIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
 .endif


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109051110.p85BACXW017806>