ports/160857: [PATCH] www/py-WebError: conditionally depend on simplejson
Ruslan Mahmatkhanov
cvs-src at yandex.ru
Tue Sep 20 20:40:10 UTC 2011
>Number: 160857
>Category: ports
>Synopsis: [PATCH] www/py-WebError: conditionally depend on simplejson
>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: Tue Sep 20 20:40:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Ruslan Mahmatkhanov
>Release: 9.0-BETA2
>Organization:
>Environment:
9.0-BETA2 i386
>Description:
This port is only needed simplejson if it run with python less than 2.6. From CHANGELOG:
"""
0.10.3 (11/9/2010)
* Don't require simplejson on Python 2.6
"""
so patch attached makes it depend on simplejson only if python version is < 2.6.
- while here, add LICENSE
- bump portrevision because of dependency change
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff --git a/Makefile b/Makefile
index 6c459aa..226e6ee 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@
PORTNAME= WebError
PORTVERSION= 0.10.3
+PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -14,13 +15,20 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= wen at FreeBSD.org
COMMENT= Web Error handling and exception catching
+LICENSE= MIT
+
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Paste>=1.7:${PORTSDIR}/www/py-paste \
${PYTHON_PKGNAMEPREFIX}pygments>=1.0:${PORTSDIR}/textproc/py-pygments \
${PYTHON_PKGNAMEPREFIX}Tempita>=0.3:${PORTSDIR}/textproc/py-Tempita \
- ${PYTHON_PKGNAMEPREFIX}webob>=0.9.6.1:${PORTSDIR}/www/py-webob \
- ${PYTHON_PKGNAMEPREFIX}simplejson>=2.0.8:${PORTSDIR}/devel/py-simplejson
+ ${PYTHON_PKGNAMEPREFIX}webob>=0.9.6.1:${PORTSDIR}/www/py-webob
USE_PYTHON= 2.5+
USE_PYDISTUTILS= easy_install
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 260
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}simplejson>=2.0.8:${PORTSDIR}/devel/py-simplejson
+.endif
+
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list