pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc



Module Name:    pkgsrc
Committed By:   nia
Date:           Fri May  1 17:52:29 UTC 2020

Modified Files:
        pkgsrc/textproc: Makefile
Added Files:
        pkgsrc/textproc/py-demjson: ALTERNATIVES DESCR Makefile PLIST distinfo

Log Message:
textproc: Add py-demjson

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.


To generate a diff of this commit:
cvs rdiff -u -r1.1135 -r1.1136 pkgsrc/textproc/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/py-demjson/ALTERNATIVES \
    pkgsrc/textproc/py-demjson/DESCR pkgsrc/textproc/py-demjson/Makefile \
    pkgsrc/textproc/py-demjson/PLIST pkgsrc/textproc/py-demjson/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/Makefile
diff -u pkgsrc/textproc/Makefile:1.1135 pkgsrc/textproc/Makefile:1.1136
--- pkgsrc/textproc/Makefile:1.1135     Sat Apr 25 23:49:20 2020
+++ pkgsrc/textproc/Makefile    Fri May  1 17:52:28 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1135 2020/04/25 23:49:20 nikita Exp $
+# $NetBSD: Makefile,v 1.1136 2020/05/01 17:52:28 nia Exp $
 #
 
 COMMENT=       Text processing utilities (does not include desktop publishing)
@@ -833,6 +833,7 @@ SUBDIR+=    py-cssselect2
 SUBDIR+=       py-cssutils
 SUBDIR+=       py-deepdiff
 SUBDIR+=       py-defusedxml
+SUBDIR+=       py-demjson
 SUBDIR+=       py-dicttoxml
 SUBDIR+=       py-diff-match-patch
 SUBDIR+=       py-docutils

Added files:

Index: pkgsrc/textproc/py-demjson/ALTERNATIVES
diff -u /dev/null pkgsrc/textproc/py-demjson/ALTERNATIVES:1.1
--- /dev/null   Fri May  1 17:52:29 2020
+++ pkgsrc/textproc/py-demjson/ALTERNATIVES     Fri May  1 17:52:29 2020
@@ -0,0 +1 @@
+bin/jsonlint @PREFIX@/bin/jsonlint-@PYVERSSUFFIX@
Index: pkgsrc/textproc/py-demjson/DESCR
diff -u /dev/null pkgsrc/textproc/py-demjson/DESCR:1.1
--- /dev/null   Fri May  1 17:52:29 2020
+++ pkgsrc/textproc/py-demjson/DESCR    Fri May  1 17:52:29 2020
@@ -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.
Index: pkgsrc/textproc/py-demjson/Makefile
diff -u /dev/null pkgsrc/textproc/py-demjson/Makefile:1.1
--- /dev/null   Fri May  1 17:52:29 2020
+++ pkgsrc/textproc/py-demjson/Makefile Fri May  1 17:52:29 2020
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2020/05/01 17:52:29 nia Exp $
+
+DISTNAME=      demjson-2.2.4
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    textproc python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=d/demjson/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/dmeranda/demjson
+COMMENT=       Encoder, decoder, and lint/validator for JSON compliant with RFC 7159
+LICENSE=       gnu-lgpl-v3
+
+post-install:
+       ${MV} ${DESTDIR}${PREFIX}/bin/jsonlint \
+           ${DESTDIR}${PREFIX}/bin/jsonlint-${PYVERSSUFFIX}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/textproc/py-demjson/PLIST
diff -u /dev/null pkgsrc/textproc/py-demjson/PLIST:1.1
--- /dev/null   Fri May  1 17:52:29 2020
+++ pkgsrc/textproc/py-demjson/PLIST    Fri May  1 17:52:29 2020
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2020/05/01 17:52:29 nia Exp $
+bin/jsonlint-${PYVERSSUFFIX}
+${PYSITELIB}/demjson.pyo
+${PYSITELIB}/demjson.pyc
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/demjson.py
Index: pkgsrc/textproc/py-demjson/distinfo
diff -u /dev/null pkgsrc/textproc/py-demjson/distinfo:1.1
--- /dev/null   Fri May  1 17:52:29 2020
+++ pkgsrc/textproc/py-demjson/distinfo Fri May  1 17:52:29 2020
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/05/01 17:52:29 nia Exp $
+
+SHA1 (demjson-2.2.4.tar.gz) = 1c5d78b5616b4cc6f4d4ad35fe831bbd11aaadec
+RMD160 (demjson-2.2.4.tar.gz) = 2d5f60a791671465dc91ab370a8ad7480ed81a26
+SHA512 (demjson-2.2.4.tar.gz) = d8a1cde062d0b062bdae29b6d79ad69fb9cc185428718a0009ccbed544ed37bd354fbb86edadb56bd98183ac8636b2edae322ed19aa5f07a7b6df668c7aa0029
+Size (demjson-2.2.4.tar.gz) = 131457 bytes



Home | Main Index | Thread Index | Old Index