git: bbc455974ac5 - main - www/py-bleach: Update to 5.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 22 May 2022 05:15:58 UTC
The branch main has been updated by sunpoet:

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

commit bbc455974ac50d591c7191a8824d05f4693419c4
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-05-22 04:24:22 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-05-22 04:37:31 +0000

    www/py-bleach: Update to 5.0.0
    
    - Add CSS option
    
    Changes:        https://github.com/mozilla/bleach/blob/main/CHANGES
---
 www/py-bleach/Makefile | 14 +++++++++-----
 www/py-bleach/distinfo |  6 +++---
 2 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/www/py-bleach/Makefile b/www/py-bleach/Makefile
index 1eabb1b9310a..b36e62310a0f 100644
--- a/www/py-bleach/Makefile
+++ b/www/py-bleach/Makefile
@@ -1,8 +1,7 @@
 # Created by: Kubilay Kocak <koobs@FreeBSD.org>
 
 PORTNAME=	bleach
-PORTVERSION=	4.1.0
-PORTREVISION=	1
+PORTVERSION=	5.0.0
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,12 +11,11 @@ COMMENT=	Easy safelist-based HTML-sanitizing tool
 
 LICENSE=	APACHE20
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}six>=1.9.0:devel/py-six@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>=1.9.0:devel/py-six@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}webencodings>=0:converters/py-webencodings@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0,1:devel/py-pytest@${PY_FLAVOR}
 
-USES=		cpe python:3.6+ shebangfix
+USES=		cpe python:3.7+ shebangfix
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
@@ -26,6 +24,12 @@ CPE_VENDOR=	mozilla
 
 SHEBANG_FILES=	bleach/_vendor/vendor_install.sh
 
+OPTIONS_DEFINE=	CSS
+OPTIONS_DEFAULT=CSS
+CSS_DESC=	CSS support
+
+CSS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tinycss2>=1.1.0<1.2:textproc/py-tinycss2@${PY_FLAVOR}
+
 do-test:
 	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
 
diff --git a/www/py-bleach/distinfo b/www/py-bleach/distinfo
index 6ad3db7f84d8..edb3edb4a114 100644
--- a/www/py-bleach/distinfo
+++ b/www/py-bleach/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1647264688
-SHA256 (bleach-4.1.0.tar.gz) = 0900d8b37eba61a802ee40ac0061f8c2b5dee29c1927dd1d233e075ebf5a71da
-SIZE (bleach-4.1.0.tar.gz) = 195798
+TIMESTAMP = 1653151148
+SHA256 (bleach-5.0.0.tar.gz) = c6d6cc054bdc9c83b48b8083e236e5f00f238428666d2ce2e083eaa5fd568565
+SIZE (bleach-5.0.0.tar.gz) = 198789