Index: head/www/Makefile =================================================================== --- head/www/Makefile +++ head/www/Makefile @@ -1520,6 +1520,7 @@ SUBDIR += py-cssmin SUBDIR += py-cssselect SUBDIR += py-cssutils + SUBDIR += py-demjson SUBDIR += py-django SUBDIR += py-django-allauth SUBDIR += py-django-annoying Index: head/www/py-demjson/Makefile =================================================================== --- head/www/py-demjson/Makefile +++ head/www/py-demjson/Makefile @@ -0,0 +1,27 @@ +# Created by: Bernard Spil +# $FreeBSD$ + +PORTNAME= demjson +PORTVERSION= 2.2.4 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= Bernard Spil +COMMENT= encoder, decoder, and lint/validator for JSON (JavaScript Object Notation) compliant with RFC 7159 + +LICENSE= AGPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= python +USE_PYTHON= autoplist distutils + +DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} +PORTDOCS= README.txt README.md + +post-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/ + ${INSTALL_MAN} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}/ + +.include Index: head/www/py-demjson/distinfo =================================================================== --- head/www/py-demjson/distinfo +++ head/www/py-demjson/distinfo @@ -0,0 +1,2 @@ +SHA256 (demjson-2.2.4.tar.gz) = 31de2038a0fdd9c4c11f8bf3b13fe77bc2a128307f965c8d5fb4dc6d6f6beb79 +SIZE (demjson-2.2.4.tar.gz) = 131457 Index: head/www/py-demjson/pkg-descr =================================================================== --- head/www/py-demjson/pkg-descr +++ head/www/py-demjson/pkg-descr @@ -0,0 +1,10 @@ +The "demjson" module, and the included "jsonlint" script, provide methods for +encoding and decoding JSON formatted data, as well as checking JSON data for +errors and/or portability issues. The jsonlint command/script can be used from +the command line without needing any programming. Although the standard Python +library now includes basic JSON support (which it did not when demjson was first +written), this module provides a much more comprehensive implementation with +many features not found elsewhere. It is especially useful for error checking +or for parsing JavaScript data which may not strictly be valid JSON data. + +WWW: http://deron.meranda.us/python/demjson/