aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-06-16 13:58:47 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-06-16 13:58:47 +0000
commit03b6e12a3d3c32f91e364587a00b292f433e4755 (patch)
treecd840e35eccf7bd58867af88b7007efda7cc5f33
parent76bec89303ed4f4c12731fb35dda14325e58dfd1 (diff)
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
-rw-r--r--www/Makefile1
-rw-r--r--www/py-django-permissionedforms/Makefile22
-rw-r--r--www/py-django-permissionedforms/distinfo3
-rw-r--r--www/py-django-permissionedforms/pkg-descr5
4 files changed, 31 insertions, 0 deletions
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