diff --git a/textproc/Makefile b/textproc/Makefile index ddc57e2a5763..6345c2f48e28 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1402,6 +1402,7 @@ SUBDIR += py-textfsm SUBDIR += py-texttable SUBDIR += py-tinycss + SUBDIR += py-tinycss2 SUBDIR += py-toml SUBDIR += py-toronado SUBDIR += py-towncrier diff --git a/textproc/py-tinycss2/Makefile b/textproc/py-tinycss2/Makefile new file mode 100644 index 000000000000..613751fc89ae --- /dev/null +++ b/textproc/py-tinycss2/Makefile @@ -0,0 +1,27 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= tinycss2 +PORTVERSION= 1.0.2 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Low-level CSS parser for Python + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}webencodings>=0.4:converters/py-webencodings@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-isort>=0:devel/py-pytest-isort@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-flake8>=0:devel/py-pytest-flake8@${PY_FLAVOR} + +USES= python:3.5+ +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include diff --git a/textproc/py-tinycss2/distinfo b/textproc/py-tinycss2/distinfo new file mode 100644 index 000000000000..1aee7db38b8b --- /dev/null +++ b/textproc/py-tinycss2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1576164450 +SHA256 (tinycss2-1.0.2.tar.gz) = 6427d0e3faa0a5e0e8c9f6437e2de26148a7a197a8b0992789f23d9a802788cf +SIZE (tinycss2-1.0.2.tar.gz) = 57728 diff --git a/textproc/py-tinycss2/pkg-descr b/textproc/py-tinycss2/pkg-descr new file mode 100644 index 000000000000..52d2ec5e3d29 --- /dev/null +++ b/textproc/py-tinycss2/pkg-descr @@ -0,0 +1,9 @@ +tinycss2 is a low-level CSS parser and generator: it can parse strings, return +Python objects representing tokens and blocks, and generate CSS strings +corresponding to these objects. + +Based on the CSS Syntax Level 3 specification, tinycss2 knows the grammar of CSS +but doesn't know specific rules, properties or values supported in various CSS +modules. + +WWW: https://github.com/Kozea/tinycss2