From 9eb08b55107a916252c0470e53c02ed9173f4cd0 Mon Sep 17 00:00:00 2001 From: wiz Date: Wed, 31 Jan 2018 09:23:30 +0000 Subject: [PATCH] textproc/py-html5-parser: import py-html5-parser-0.4.4 A fast, standards compliant, C based, HTML 5 parser for python. Over thirty times as fast as pure python based parsers, such as html5lib. --- textproc/py-html5-parser/DESCR | 3 +++ textproc/py-html5-parser/Makefile | 20 ++++++++++++++++++++ textproc/py-html5-parser/PLIST | 25 +++++++++++++++++++++++++ textproc/py-html5-parser/distinfo | 6 ++++++ 4 files changed, 54 insertions(+) create mode 100644 textproc/py-html5-parser/DESCR create mode 100644 textproc/py-html5-parser/Makefile create mode 100644 textproc/py-html5-parser/PLIST create mode 100644 textproc/py-html5-parser/distinfo diff --git a/textproc/py-html5-parser/DESCR b/textproc/py-html5-parser/DESCR new file mode 100644 index 000000000000..d70e21f36e9e --- /dev/null +++ b/textproc/py-html5-parser/DESCR @@ -0,0 +1,3 @@ +A fast, standards compliant, C based, HTML 5 parser for python. +Over thirty times as fast as pure python based parsers, such as +html5lib. diff --git a/textproc/py-html5-parser/Makefile b/textproc/py-html5-parser/Makefile new file mode 100644 index 000000000000..4341396e4b49 --- /dev/null +++ b/textproc/py-html5-parser/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1 2018/01/31 09:23:30 wiz Exp $ + +DISTNAME= html5-parser-0.4.4 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= textproc www python +MASTER_SITES= ${MASTER_SITE_PYPI:=h/html5-parser/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/kovidgoyal/html5-parser +COMMENT= Fast, standards-compliant, C-based HTML5 parser +LICENSE= apache-2.0 + +DEPENDS+= ${PYPKGPREFIX}-lxml-[0-9]*:../../textproc/py-lxml +DEPENDS+= ${PYPKGPREFIX}-beautifulsoup4-[0-9]*:../../www/py-beautifulsoup4 + +USE_TOOLS+= pkg-config + +.include "../../lang/python/egg.mk" +.include "../../textproc/libxml2/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/py-html5-parser/PLIST b/textproc/py-html5-parser/PLIST new file mode 100644 index 000000000000..cec02f3ff465 --- /dev/null +++ b/textproc/py-html5-parser/PLIST @@ -0,0 +1,25 @@ +@comment $NetBSD: PLIST,v 1.1 2018/01/31 09:23:30 wiz Exp $ +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/requires.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/html5_parser/__init__.py +${PYSITELIB}/html5_parser/__init__.pyc +${PYSITELIB}/html5_parser/__init__.pyo +${PYSITELIB}/html5_parser/dom.py +${PYSITELIB}/html5_parser/dom.pyc +${PYSITELIB}/html5_parser/dom.pyo +${PYSITELIB}/html5_parser/encoding_names.py +${PYSITELIB}/html5_parser/encoding_names.pyc +${PYSITELIB}/html5_parser/encoding_names.pyo +${PYSITELIB}/html5_parser/encoding_parser.py +${PYSITELIB}/html5_parser/encoding_parser.pyc +${PYSITELIB}/html5_parser/encoding_parser.pyo +${PYSITELIB}/html5_parser/html_parser.so +${PYSITELIB}/html5_parser/soup.py +${PYSITELIB}/html5_parser/soup.pyc +${PYSITELIB}/html5_parser/soup.pyo +${PYSITELIB}/html5_parser/stdlib_etree.py +${PYSITELIB}/html5_parser/stdlib_etree.pyc +${PYSITELIB}/html5_parser/stdlib_etree.pyo diff --git a/textproc/py-html5-parser/distinfo b/textproc/py-html5-parser/distinfo new file mode 100644 index 000000000000..0c991f5974d6 --- /dev/null +++ b/textproc/py-html5-parser/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2018/01/31 09:23:30 wiz Exp $ + +SHA1 (html5-parser-0.4.4.tar.gz) = 9579d7f2a413ae07c86f2ab058fbe97c8a51e1a8 +RMD160 (html5-parser-0.4.4.tar.gz) = 5c4ae71e70a98269dd830c4a5f9af4528512e71c +SHA512 (html5-parser-0.4.4.tar.gz) = 3aaeb32f360d2c131ecbe11fa1dcd3dfcd62c9ca046fce7dd4ff8127d0e62216f666e83bb20c7809c6adc591e1fb2798e382e78a1cf6129b1f0a09a71377f8d4 +Size (html5-parser-0.4.4.tar.gz) = 267787 bytes