Date: Wed, 12 Sep 2012 16:28:49 GMT From: Brian Coca <bcoca+fbsd@tablethotels.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/171579: make cjson an option for py-jsonrpclib port Message-ID: <201209121628.q8CGSnji040225@red.freebsd.org> Resent-Message-ID: <201209121630.q8CGU7B6092330@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 171579 >Category: ports >Synopsis: make cjson an option for py-jsonrpclib port >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: Wed Sep 12 16:30:07 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Brian Coca >Release: 8.2 >Organization: Tablet >Environment: >Description: cjson has compatibility issues with the other python json libraries, the proposed patch makes it an option (default off) to depend on cjson, the jsonrpclib code will fall back to the built in json or simplejson. --- /usr/ports/devel/py-jsonrpclib/Makefile 2011-09-22 03:04:24.000000000 -0400 +++ Makefile 2012-09-12 12:26:52.730469768 -0400 @@ -14,7 +14,12 @@ MAINTAINER= bra@fsn.hu COMMENT= Implements the JSON-RPC 2.0 proposed specification in pure Python -RUN_DEPENDS= ${PYTHON_SITELIBDIR}/cjson.so:${PORTSDIR}/devel/py-cjson +OPTIONS= CJSON "Use cjson vs json or simplejson" off + +.ifdef WITH_CJSON +RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/cjson.so:${PORTSDIR}/devel/py-cjson +USE_CJSON = yes +.endif USE_PYTHON= yes USE_PYDISTUTILS= yes >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209121628.q8CGSnji040225>