ports/160482: [PATCH] misc/py-yolk: eliminate py-elementtree dependency

Ruslan Mahmatkhanov cvs-src at yandex.ru
Mon Sep 5 11:20:02 UTC 2011


>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 at 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:



More information about the freebsd-ports-bugs mailing list