diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2023-07-03 02:23:08 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2023-07-03 05:49:49 +0000 |
| commit | b391a577c3ee9876b553344db224431c9de2c424 (patch) | |
| tree | 62a5297e97470d01e1e2488ce5c853289417269d | |
| parent | b07ceb36079880d25752120a38baf889d852b727 (diff) | |
textproc/py-html2json: New port: Parse HTML to JSON
| -rw-r--r-- | textproc/Makefile | 1 | ||||
| -rw-r--r-- | textproc/py-html2json/Makefile | 22 | ||||
| -rw-r--r-- | textproc/py-html2json/distinfo | 3 | ||||
| -rw-r--r-- | textproc/py-html2json/pkg-descr | 1 |
4 files changed, 27 insertions, 0 deletions
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. |
