pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/py-webencodings



Module Name:    pkgsrc
Committed By:   kleink
Date:           Wed Oct 26 07:50:24 UTC 2016

Added Files:
        pkgsrc/textproc/py-webencodings: DESCR Makefile PLIST distinfo

Log Message:
Import webencodings 0.5 as textproc/py-webencodings.

This is a Python implementation of the WHATWG Encoding standard.

In order to be compatible with legacy web content when interpreting
something like Content-Type: text/html; charset=latin1, tools need
to use a particular set of aliases for encoding labels as well as
some overriding rules. For example, US-ASCII and iso-8859-1 on the
web are actually aliases for windows-1252, and an UTF-8 or UTF-16
BOM takes precedence over any other encoding declaration. The
Encoding standard defines all such details so that implementations
do not have to reverse-engineer each other.

This module has encoding labels and BOM detection, but the actual
implementation for encoders and decoders is Python's.


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

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

Added files:

Index: pkgsrc/textproc/py-webencodings/DESCR
diff -u /dev/null pkgsrc/textproc/py-webencodings/DESCR:1.1
--- /dev/null   Wed Oct 26 07:50:24 2016
+++ pkgsrc/textproc/py-webencodings/DESCR       Wed Oct 26 07:50:24 2016
@@ -0,0 +1,13 @@
+This is a Python implementation of the WHATWG Encoding standard.
+
+In order to be compatible with legacy web content when interpreting
+something like Content-Type: text/html; charset=latin1, tools need
+to use a particular set of aliases for encoding labels as well as
+some overriding rules. For example, US-ASCII and iso-8859-1 on the
+web are actually aliases for windows-1252, and an UTF-8 or UTF-16
+BOM takes precedence over any other encoding declaration. The
+Encoding standard defines all such details so that implementations
+do not have to reverse-engineer each other.
+
+This module has encoding labels and BOM detection, but the actual
+implementation for encoders and decoders is Python's.
Index: pkgsrc/textproc/py-webencodings/Makefile
diff -u /dev/null pkgsrc/textproc/py-webencodings/Makefile:1.1
--- /dev/null   Wed Oct 26 07:50:24 2016
+++ pkgsrc/textproc/py-webencodings/Makefile    Wed Oct 26 07:50:24 2016
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2016/10/26 07:50:24 kleink Exp $
+
+DISTNAME=      webencodings-0.5
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    textproc www python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=w/webencodings/}
+
+MAINTAINER=    kleink%NetBSD.org@localhost
+HOMEPAGE=      https://pythonhosted.org/webencodings/
+COMMENT=       Character encoding for the web
+LICENSE=       modified-bsd
+
+USE_LANGUAGES= # empty
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/textproc/py-webencodings/PLIST
diff -u /dev/null pkgsrc/textproc/py-webencodings/PLIST:1.1
--- /dev/null   Wed Oct 26 07:50:24 2016
+++ pkgsrc/textproc/py-webencodings/PLIST       Wed Oct 26 07:50:24 2016
@@ -0,0 +1,20 @@
+@comment $NetBSD: PLIST,v 1.1 2016/10/26 07:50:24 kleink Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/webencodings/__init__.py
+${PYSITELIB}/webencodings/__init__.pyo
+${PYSITELIB}/webencodings/__init__.pyc
+${PYSITELIB}/webencodings/labels.py
+${PYSITELIB}/webencodings/labels.pyo
+${PYSITELIB}/webencodings/labels.pyc
+${PYSITELIB}/webencodings/mklabels.py
+${PYSITELIB}/webencodings/mklabels.pyo
+${PYSITELIB}/webencodings/mklabels.pyc
+${PYSITELIB}/webencodings/tests.py
+${PYSITELIB}/webencodings/tests.pyo
+${PYSITELIB}/webencodings/tests.pyc
+${PYSITELIB}/webencodings/x_user_defined.py
+${PYSITELIB}/webencodings/x_user_defined.pyo
+${PYSITELIB}/webencodings/x_user_defined.pyc
Index: pkgsrc/textproc/py-webencodings/distinfo
diff -u /dev/null pkgsrc/textproc/py-webencodings/distinfo:1.1
--- /dev/null   Wed Oct 26 07:50:24 2016
+++ pkgsrc/textproc/py-webencodings/distinfo    Wed Oct 26 07:50:24 2016
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/10/26 07:50:24 kleink Exp $
+
+SHA1 (webencodings-0.5.tar.gz) = ddfaad0b2ee2ba84dde81a6793c60934a4172f4d
+RMD160 (webencodings-0.5.tar.gz) = 2d8beeb2b2506e9aa6a97410b5540a8070bf7a5b
+SHA512 (webencodings-0.5.tar.gz) = 3f0c1995d23a8ccf8f0b02301edec5834336c27b7daf2335ded888073a1f13058acd93477cd020bb2b12d51b393d9b3166acf4995564cb9751ace8df35a891c2
+Size (webencodings-0.5.tar.gz) = 9479 bytes



Home | Main Index | Thread Index | Old Index