svn commit: r363058 - in head/textproc: . py-pytidylib

Kubilay Kocak koobs at FreeBSD.org
Sun Jul 27 12:50:28 UTC 2014


Author: koobs
Date: Sun Jul 27 12:50:26 2014
New Revision: 363058
URL: http://svnweb.freebsd.org/changeset/ports/363058
QAT: https://qat.redports.org/buildarchive/r363058/

Log:
  [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

Added:
  head/textproc/py-pytidylib/
  head/textproc/py-pytidylib/Makefile   (contents, props changed)
  head/textproc/py-pytidylib/distinfo   (contents, props changed)
  head/textproc/py-pytidylib/pkg-descr   (contents, props changed)
Modified:
  head/textproc/Makefile

Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile	Sun Jul 27 12:49:41 2014	(r363057)
+++ head/textproc/Makefile	Sun Jul 27 12:50:26 2014	(r363058)
@@ -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

Added: head/textproc/py-pytidylib/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/py-pytidylib/Makefile	Sun Jul 27 12:50:26 2014	(r363058)
@@ -0,0 +1,26 @@
+# Created by: Kubilay Kocak <koobs at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	pytidylib
+PORTVERSION=	0.2.3
+CATEGORIES=	textproc python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	koobs at 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>

Added: head/textproc/py-pytidylib/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/py-pytidylib/distinfo	Sun Jul 27 12:50:26 2014	(r363058)
@@ -0,0 +1,2 @@
+SHA256 (pytidylib-0.2.3.tar.gz) = e7d28eb3191b80ede405691820368630f2fa0d64885b389ae42f8f50ad6a11e5
+SIZE (pytidylib-0.2.3.tar.gz) = 86515

Added: head/textproc/py-pytidylib/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/py-pytidylib/pkg-descr	Sun Jul 27 12:50:26 2014	(r363058)
@@ -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


More information about the svn-ports-all mailing list