textproc/py-charade: Universal encoding detector for python 2 and 3

Detects:
 - ASCII, UTF-8, UTF-16 (2 variants), UTF-32 (4 variants)
 - Big5, GB2312, EUC-TW, HZ-GB-2312, ISO-2022-CN
   (Traditional and Simplified Chinese)
 - EUC-JP, SHIFT_JIS, ISO-2022-JP (Japanese)
 - EUC-KR, ISO-2022-KR (Korean)
 - KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic)
 - ISO-8859-2, windows-1250 (Hungarian)
 - ISO-8859-5, windows-1251 (Bulgarian)
 - windows-1252 (English)
 - ISO-8859-7, windows-1253 (Greek)
 - ISO-8859-8, windows-1255 (Visual and Logical Hebrew)
 - TIS-620 (Thai)

WWW: https://github.com/sigmavirus24/charade/
This commit is contained in:
William Grzybowski 2013-10-29 20:32:51 +00:00
parent 59e759b61c
commit b747b0e4d7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331994
4 changed files with 45 additions and 0 deletions

View file

@ -1147,6 +1147,7 @@
SUBDIR += py-MarkupSafe
SUBDIR += py-Tempita
SUBDIR += py-asv
SUBDIR += py-charade
SUBDIR += py-chardet
SUBDIR += py-creole
SUBDIR += py-docutils

View file

@ -0,0 +1,25 @@
# Created by: William Grzybowski <wg@FreeBSD.org>
# $FreeBSD$
PORTNAME= charade
PORTVERSION= 1.0.3
CATEGORIES= textproc python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= wg@FreeBSD.org
COMMENT= Universal encoding detector for python 2 and 3
LICENSE= LGPL3
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
PYDISTUTILS_AUTOPLIST= yes
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} 's/="LGPL",/="LGPL", zip_safe=False,/' \
${WRKSRC}/setup.py
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (charade-1.0.3.tar.gz) = a607146d151005904f3fd8335e3dc89af214453f0d3a29580e1eb0e67e6c3d7f
SIZE (charade-1.0.3.tar.gz) = 168537

View file

@ -0,0 +1,17 @@
Charade: The Universal character encoding detector
Detects:
- ASCII, UTF-8, UTF-16 (2 variants), UTF-32 (4 variants)
- Big5, GB2312, EUC-TW, HZ-GB-2312, ISO-2022-CN
(Traditional and Simplified Chinese)
- EUC-JP, SHIFT_JIS, ISO-2022-JP (Japanese)
- EUC-KR, ISO-2022-KR (Korean)
- KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic)
- ISO-8859-2, windows-1250 (Hungarian)
- ISO-8859-5, windows-1251 (Bulgarian)
- windows-1252 (English)
- ISO-8859-7, windows-1253 (Greek)
- ISO-8859-8, windows-1255 (Visual and Logical Hebrew)
- TIS-620 (Thai)
WWW: https://github.com/sigmavirus24/charade/