aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-08-19 16:18:06 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-08-19 16:18:06 +0000
commit978ad64844dccdb0d72dd1e86a38722f20fd0489 (patch)
tree549d9b68227a2cb619b72707021c12afaac29772 /www
parentf4f738bc8ead409d1a3619e9db11ab043f370def (diff)
downloadports-978ad64844dccdb0d72dd1e86a38722f20fd0489.tar.gz
ports-978ad64844dccdb0d72dd1e86a38722f20fd0489.zip
Notes
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/py-django-jsonview/Makefile22
-rw-r--r--www/py-django-jsonview/distinfo3
-rw-r--r--www/py-django-jsonview/pkg-descr4
4 files changed, 30 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 2d3087d1fa0f..8a852dd63cd0 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1487,6 +1487,7 @@
SUBDIR += py-django-jquery-js
SUBDIR += py-django-js-asset
SUBDIR += py-django-jsonfield
+ SUBDIR += py-django-jsonview
SUBDIR += py-django-ldapdb
SUBDIR += py-django-libsass
SUBDIR += py-django-markdownx
diff --git a/www/py-django-jsonview/Makefile b/www/py-django-jsonview/Makefile
new file mode 100644
index 000000000000..4422109df59e
--- /dev/null
+++ b/www/py-django-jsonview/Makefile
@@ -0,0 +1,22 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= django-jsonview
+PORTVERSION= 2.0.0
+CATEGORIES= www python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Always return JSON from your Django view
+
+LICENSE= APACHE20
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=0:www/py-django22@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/py-django-jsonview/distinfo b/www/py-django-jsonview/distinfo
new file mode 100644
index 000000000000..a101a6ee32e0
--- /dev/null
+++ b/www/py-django-jsonview/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1597569913
+SHA256 (django-jsonview-2.0.0.tar.gz) = 1871983f6c7ab0bec1bad3249b06ce64c47d3bed57cd190f87e5acaf65722ebb
+SIZE (django-jsonview-2.0.0.tar.gz) = 9439
diff --git a/www/py-django-jsonview/pkg-descr b/www/py-django-jsonview/pkg-descr
new file mode 100644
index 000000000000..0eeadb2d95ae
--- /dev/null
+++ b/www/py-django-jsonview/pkg-descr
@@ -0,0 +1,4 @@
+django-jsonview is a simple decorator that translates Python objects to JSON and
+makes sure your view will always return JSON.
+
+WWW: https://github.com/jsocol/django-jsonview