1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

[NEW] textproc/py-pytidylib: Python wrapper for HTML Tidy

PyTidyLib is a Python package that wraps the HTML Tidy library. This allows
you, from Python code, to "fix" invalid (X)HTML markup. Some of the library's
many capabilities include:

  * Clean up unclosed tags and unescaped characters such as ampersands
  * Output HTML 4 or XHTML, strict or transitional, and add missing doctypes
  * Convert named entities to numeric entities, which can then be used in XML
    documents without an HTML doctype.
  * Clean up HTML from programs such as Word (to an extent)
  * Indent the output, including proper (i.e. no) indenting for pre elements,
    which some (X)HTML indenting code overlooks.

WWW: http://countergram.com/open-source/pytidylib
This commit is contained in:
Kubilay Kocak 2014-07-27 12:50:26 +00:00
parent da224c0133
commit ffefb4d23d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363058
4 changed files with 42 additions and 0 deletions

View File

@ -1178,6 +1178,7 @@
SUBDIR += py-pyscss
SUBDIR += py-pysrt
SUBDIR += py-pystache
SUBDIR += py-pytidylib
SUBDIR += py-pyx12
SUBDIR += py-qt4-xml
SUBDIR += py-qt4-xmlpatterns

View File

@ -0,0 +1,26 @@
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$
PORTNAME= pytidylib
PORTVERSION= 0.2.3
CATEGORIES= textproc python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Python wrapper for HTML Tidy
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libtidy.so:${PORTSDIR}/www/tidy-lib
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
regression-test: build
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (pytidylib-0.2.3.tar.gz) = e7d28eb3191b80ede405691820368630f2fa0d64885b389ae42f8f50ad6a11e5
SIZE (pytidylib-0.2.3.tar.gz) = 86515

View File

@ -0,0 +1,13 @@
PyTidyLib is a Python package that wraps the HTML Tidy library. This allows
you, from Python code, to "fix" invalid (X)HTML markup. Some of the library's
many capabilities include:
* Clean up unclosed tags and unescaped characters such as ampersands
* Output HTML 4 or XHTML, strict or transitional, and add missing doctypes
* Convert named entities to numeric entities, which can then be used in XML
documents without an HTML doctype.
* Clean up HTML from programs such as Word (to an extent)
* Indent the output, including proper (i.e. no) indenting for pre elements,
which some (X)HTML indenting code overlooks.
WWW: http://countergram.com/open-source/pytidylib