diff --git a/www/Makefile b/www/Makefile index 1f168ea7cc72..3c0241e6d88a 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1732,6 +1732,7 @@ SUBDIR += py-html5-parser SUBDIR += py-html5lib SUBDIR += py-html5lib-modern + SUBDIR += py-html5rdf SUBDIR += py-htmldate SUBDIR += py-httmock SUBDIR += py-http-parser diff --git a/www/py-html5rdf/Makefile b/www/py-html5rdf/Makefile new file mode 100644 index 000000000000..33710e4825f2 --- /dev/null +++ b/www/py-html5rdf/Makefile @@ -0,0 +1,22 @@ +PORTNAME= html5rdf +PORTVERSION= 1.2 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= HTML parser based on the WHATWG HTML specification +WWW= https://github.com/RDFLib/html5rdf + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/www/py-html5rdf/distinfo b/www/py-html5rdf/distinfo new file mode 100644 index 000000000000..238f47af7093 --- /dev/null +++ b/www/py-html5rdf/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1730257749 +SHA256 (html5rdf-1.2.tar.gz) = 08378cbbbb63993ba7bb5eb1eac44bf9ca7b1a23dbee3d2afef5376597fb00a5 +SIZE (html5rdf-1.2.tar.gz) = 112826 diff --git a/www/py-html5rdf/pkg-descr b/www/py-html5rdf/pkg-descr new file mode 100644 index 000000000000..773450797c96 --- /dev/null +++ b/www/py-html5rdf/pkg-descr @@ -0,0 +1,9 @@ +html5rdf is a pure-python library for parsing HTML to DOMFragment objects for +the use in RDFLib. html5rdf is a fork of html5lib-modern. + +It is designed to conform to the WHATWG HTML specification, as is implemented by +all major web browsers. + +htm5lib-modern is designed as a drop-in replacement for html5lib that exposes a +new html5lib module without Python 2 support and without the legacy dependencies +on six, and webencodings.