Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Sep 2011 20:54:05 GMT
From:      Ruslan Mahmatkhanov <cvs-src@yandex.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/160858: [PATCH] www/py-pyramid: depend on simplejson conditionally
Message-ID:  <201109202054.p8KKs5Mw070737@red.freebsd.org>
Resent-Message-ID: <201109202100.p8KL0KOx085075@freefall.freebsd.org>

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

>Number:         160858
>Category:       ports
>Synopsis:       [PATCH] www/py-pyramid: depend on simplejson conditionally
>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 21:00:20 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 setup.py:

"""
if sys.version_info[:2] < (2, 6):
    install_requires.append('simplejson')
"""

so patch attached makes it depend on simplejson only if python version is < 2.6.
- bump portrevision because of dependency change

tag: simplejson26
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/Makefile b/Makefile
index e8c9fdc..6e9b166 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@
 
 PORTNAME=	pyramid
 PORTVERSION=	1.1.2
+PORTREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -20,7 +21,6 @@ BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Chameleon>=1.2.3:${PORTSDIR}/textproc/py-C
 		${PYTHON_PKGNAMEPREFIX}PasteScript>=1.7.3:${PORTSDIR}/www/py-pastescript \
 		${PYTHON_PKGNAMEPREFIX}mako>=0.3.6:${PORTSDIR}/textproc/py-mako \
 		${PYTHON_PKGNAMEPREFIX}repoze.lru>=0:${PORTSDIR}/devel/py-repoze.lru \
-		${PYTHON_PKGNAMEPREFIX}simplejson>=2.0.8:${PORTSDIR}/devel/py-simplejson \
 		${PYTHON_PKGNAMEPREFIX}translationstring>=0:${PORTSDIR}/textproc/py-translationstring \
 		${PYTHON_PKGNAMEPREFIX}venusian>=0.5:${PORTSDIR}/devel/py-venusian \
 		${PYTHON_PKGNAMEPREFIX}webob>=1.0:${PORTSDIR}/www/py-webob \
@@ -37,4 +37,10 @@ RUN_DEPENDS:=	${BUILD_DEPENDS}
 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:



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