git: b391a577c3ee - main - textproc/py-html2json: New port: Parse HTML to JSON

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 03 Jul 2023 05:49:52 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b391a577c3ee9876b553344db224431c9de2c424

commit b391a577c3ee9876b553344db224431c9de2c424
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-03 02:23:08 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-03 05:49:49 +0000

    textproc/py-html2json: New port: Parse HTML to JSON
---
 textproc/Makefile               |  1 +
 textproc/py-html2json/Makefile  | 22 ++++++++++++++++++++++
 textproc/py-html2json/distinfo  |  3 +++
 textproc/py-html2json/pkg-descr |  1 +
 4 files changed, 27 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 41f06452aa98..a29ea6b042b4 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1370,6 +1370,7 @@
     SUBDIR += py-hexdump
     SUBDIR += py-hieroglyph
     SUBDIR += py-hjson
+    SUBDIR += py-html2json
     SUBDIR += py-html2text
     SUBDIR += py-html2text2018
     SUBDIR += py-humanfriendly
diff --git a/textproc/py-html2json/Makefile b/textproc/py-html2json/Makefile
new file mode 100644
index 000000000000..aba819692077
--- /dev/null
+++ b/textproc/py-html2json/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	html2json
+DISTVERSION=	0.2.4.1
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Parse HTML to JSON
+WWW=		https://github.com/chuanconggao/html2json
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}future>=0.16.0:devel/py-future@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyquery>=1.4.0:devel/py-pyquery@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-html2json/distinfo b/textproc/py-html2json/distinfo
new file mode 100644
index 000000000000..36c3e783eeb8
--- /dev/null
+++ b/textproc/py-html2json/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1688350287
+SHA256 (html2json-0.2.4.1.tar.gz) = e35ab1e7a62938c990f59933a295066f4083be4404091259d9e06d493bc79a31
+SIZE (html2json-0.2.4.1.tar.gz) = 4042
diff --git a/textproc/py-html2json/pkg-descr b/textproc/py-html2json/pkg-descr
new file mode 100644
index 000000000000..41794b8cca23
--- /dev/null
+++ b/textproc/py-html2json/pkg-descr
@@ -0,0 +1 @@
+Convert a HTML webpage to JSON data using a template defined in JSON.