ports/171579: make cjson an option for py-jsonrpclib port
Brian Coca
bcoca+fbsd at tablethotels.com
Wed Sep 12 16:30:08 UTC 2012
>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 at 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:
More information about the freebsd-ports-bugs
mailing list