www/py-html5rdf: Add py-html5rdf 1.2

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.
This commit is contained in:
Po-Chuan Hsieh 2024-10-30 20:10:46 +08:00
parent 50704b2d55
commit f76a2c95f2
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
4 changed files with 35 additions and 0 deletions

View file

@ -1732,6 +1732,7 @@
SUBDIR += py-html5-parser SUBDIR += py-html5-parser
SUBDIR += py-html5lib SUBDIR += py-html5lib
SUBDIR += py-html5lib-modern SUBDIR += py-html5lib-modern
SUBDIR += py-html5rdf
SUBDIR += py-htmldate SUBDIR += py-htmldate
SUBDIR += py-httmock SUBDIR += py-httmock
SUBDIR += py-http-parser SUBDIR += py-http-parser

22
www/py-html5rdf/Makefile Normal file
View file

@ -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 <bsd.port.mk>

3
www/py-html5rdf/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1730257749
SHA256 (html5rdf-1.2.tar.gz) = 08378cbbbb63993ba7bb5eb1eac44bf9ca7b1a23dbee3d2afef5376597fb00a5
SIZE (html5rdf-1.2.tar.gz) = 112826

View file

@ -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.