From owner-svn-ports-all@freebsd.org Sun Mar 4 09:10:42 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 733ACF43E12; Sun, 4 Mar 2018 09:10:42 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 222B47211D; Sun, 4 Mar 2018 09:10:42 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1D17E13518; Sun, 4 Mar 2018 09:10:42 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w249AfO4014715; Sun, 4 Mar 2018 09:10:41 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w249Afb7014694; Sun, 4 Mar 2018 09:10:41 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201803040910.w249Afb7014694@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sun, 4 Mar 2018 09:10:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r463559 - in head/converters: . py-webencodings X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/converters: . py-webencodings X-SVN-Commit-Revision: 463559 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Mar 2018 09:10:42 -0000 Author: yuri Date: Sun Mar 4 09:10:41 2018 New Revision: 463559 URL: https://svnweb.freebsd.org/changeset/ports/463559 Log: New port: converters/py-webencodings: Character encoding aliases for legacy web content PR: 226316 Submitted by: Marcin Cieślak Approved by: tcberner (mentor, implicit) Added: head/converters/py-webencodings/ head/converters/py-webencodings/Makefile (contents, props changed) head/converters/py-webencodings/distinfo (contents, props changed) head/converters/py-webencodings/pkg-descr (contents, props changed) Modified: head/converters/Makefile Modified: head/converters/Makefile ============================================================================== --- head/converters/Makefile Sun Mar 4 09:03:05 2018 (r463558) +++ head/converters/Makefile Sun Mar 4 09:10:41 2018 (r463559) @@ -159,6 +159,7 @@ SUBDIR += py-iconv SUBDIR += py-rencode SUBDIR += py-unidecode + SUBDIR += py-webencodings SUBDIR += py-zfec SUBDIR += rcctools SUBDIR += recode Added: head/converters/py-webencodings/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/converters/py-webencodings/Makefile Sun Mar 4 09:10:41 2018 (r463559) @@ -0,0 +1,18 @@ +# $FreeBSD$ + +PORTNAME= webencodings +DISTVERSION= 0.5.1 +CATEGORIES= converters www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= saper@saper.info +COMMENT= Character encoding aliases for legacy web content + +LICENSE= BSD3CLAUSE + +USES= python +USE_PYTHON= distutils autoplist +NO_ARCH= yes + +.include Added: head/converters/py-webencodings/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/converters/py-webencodings/distinfo Sun Mar 4 09:10:41 2018 (r463559) @@ -0,0 +1,3 @@ +TIMESTAMP = 1520037325 +SHA256 (webencodings-0.5.1.tar.gz) = b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923 +SIZE (webencodings-0.5.1.tar.gz) = 9721 Added: head/converters/py-webencodings/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/converters/py-webencodings/pkg-descr Sun Mar 4 09:10:41 2018 (r463559) @@ -0,0 +1,16 @@ +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. + +WWW: https://github.com/SimonSapin/python-webencodings