git: 03b6e12a3d3c - main - www/py-django-permissionedforms: Add py-django-permissionedforms 0.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 16 Jun 2022 14:05:04 UTC
The branch main has been updated by sunpoet:

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

commit 03b6e12a3d3c32f91e364587a00b292f433e4755
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-16 13:58:47 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-16 13:58:47 +0000

    www/py-django-permissionedforms: Add py-django-permissionedforms 0.1
    
    django-permissionedforms is an extension to Django's forms framework, allowing
    you to define forms where certain fields are shown or omitted according to the
    user's permissions.
    
    WWW: https://github.com/wagtail/django-permissionedforms
---
 www/Makefile                              |  1 +
 www/py-django-permissionedforms/Makefile  | 22 ++++++++++++++++++++++
 www/py-django-permissionedforms/distinfo  |  3 +++
 www/py-django-permissionedforms/pkg-descr |  5 +++++
 4 files changed, 31 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index ca6fa0e61c67..813dd6bf6950 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1548,6 +1548,7 @@
     SUBDIR += py-django-object-actions
     SUBDIR += py-django-otp
     SUBDIR += py-django-otp-yubikey
+    SUBDIR += py-django-permissionedforms
     SUBDIR += py-django-pglocks
     SUBDIR += py-django-photologue
     SUBDIR += py-django-picklefield
diff --git a/www/py-django-permissionedforms/Makefile b/www/py-django-permissionedforms/Makefile
new file mode 100644
index 000000000000..0dea39721591
--- /dev/null
+++ b/www/py-django-permissionedforms/Makefile
@@ -0,0 +1,22 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	django-permissionedforms
+PORTVERSION=	0.1
+CATEGORIES=	www python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Django extension for creating forms that vary according to user permissions
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django32>=0: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-permissionedforms/distinfo b/www/py-django-permissionedforms/distinfo
new file mode 100644
index 000000000000..936594ce89f2
--- /dev/null
+++ b/www/py-django-permissionedforms/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1655208198
+SHA256 (django-permissionedforms-0.1.tar.gz) = 4340bb20c4477fffb13b4cc5cccf9f1b1010b64f79956c291c72d2ad2ed243f8
+SIZE (django-permissionedforms-0.1.tar.gz) = 5856
diff --git a/www/py-django-permissionedforms/pkg-descr b/www/py-django-permissionedforms/pkg-descr
new file mode 100644
index 000000000000..9293218e646b
--- /dev/null
+++ b/www/py-django-permissionedforms/pkg-descr
@@ -0,0 +1,5 @@
+django-permissionedforms is an extension to Django's forms framework, allowing
+you to define forms where certain fields are shown or omitted according to the
+user's permissions.
+
+WWW: https://github.com/wagtail/django-permissionedforms