git: 860a430bacc9 - main - www/py-django-bleach: Add py-django-bleach 2.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 18 Apr 2022 00:00:21 UTC
The branch main has been updated by sunpoet:

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

commit 860a430bacc9528f6d9ac366ddcf4a29dd4279ea
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-04-17 23:39:21 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-04-17 23:39:21 +0000

    www/py-django-bleach: Add py-django-bleach 2.0.0
    
    Bleach is a Python module that takes any HTML input, and returns valid,
    sanitised HTML that contains only an allowed subset of HTML tags, attributes and
    styles. django-bleach is a Django app that makes using bleach extremely easy.
    
    WWW: https://github.com/marksweb/django-bleach
---
 www/Makefile                   |  1 +
 www/py-django-bleach/Makefile  | 23 +++++++++++++++++++++++
 www/py-django-bleach/distinfo  |  3 +++
 www/py-django-bleach/pkg-descr |  5 +++++
 4 files changed, 32 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 1f363aaca031..14ed26efe9cf 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1481,6 +1481,7 @@
     SUBDIR += py-django-babel
     SUBDIR += py-django-bakery
     SUBDIR += py-django-bitfield
+    SUBDIR += py-django-bleach
     SUBDIR += py-django-bootstrap-form
     SUBDIR += py-django-bootstrap-pagination
     SUBDIR += py-django-bootstrap3
diff --git a/www/py-django-bleach/Makefile b/www/py-django-bleach/Makefile
new file mode 100644
index 000000000000..dd3ba9a09acf
--- /dev/null
+++ b/www/py-django-bleach/Makefile
@@ -0,0 +1,23 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	django-bleach
+PORTVERSION=	2.0.0
+CATEGORIES=	www python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Easily use bleach with Django models and templates
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}bleach>=1.5.0<5:www/py-bleach@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}django32>=1.11:www/py-django32@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-django-bleach/distinfo b/www/py-django-bleach/distinfo
new file mode 100644
index 000000000000..541195c42631
--- /dev/null
+++ b/www/py-django-bleach/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1650228656
+SHA256 (django-bleach-2.0.0.tar.gz) = 377102902d84c52fda320389aeb5225336fd8d3067d8095651eb1443813c650f
+SIZE (django-bleach-2.0.0.tar.gz) = 20817
diff --git a/www/py-django-bleach/pkg-descr b/www/py-django-bleach/pkg-descr
new file mode 100644
index 000000000000..da95ffd3e56b
--- /dev/null
+++ b/www/py-django-bleach/pkg-descr
@@ -0,0 +1,5 @@
+Bleach is a Python module that takes any HTML input, and returns valid,
+sanitised HTML that contains only an allowed subset of HTML tags, attributes and
+styles. django-bleach is a Django app that makes using bleach extremely easy.
+
+WWW: https://github.com/marksweb/django-bleach