aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gmelin <grembo@FreeBSD.org>2024-02-12 17:20:21 +0000
committerMichael Gmelin <grembo@FreeBSD.org>2024-02-18 14:56:48 +0000
commit8df0d56eb4383ec4e86ce578c55a7cdab9854849 (patch)
treea5cb858ac96cb98541d4300ca237d90045b874a0
parentb0a5aae0a1ba4fbf67e4b7f8d97b327b1e6db0b5 (diff)
downloadports-8df0d56eb4383ec4e86ce578c55a7cdab9854849.tar.gz
ports-8df0d56eb4383ec4e86ce578c55a7cdab9854849.zip
www/py-dj42-django-compression-middleware: New port
Django middleware to compress responses using several algorithms
-rw-r--r--www/Makefile1
-rw-r--r--www/py-dj42-django-compression-middleware/Makefile23
-rw-r--r--www/py-dj42-django-compression-middleware/distinfo3
-rw-r--r--www/py-dj42-django-compression-middleware/pkg-descr6
4 files changed, 33 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index abbc93d82ab5..dc33108d5025 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1491,6 +1491,7 @@
SUBDIR += py-dj-database-url
SUBDIR += py-dj42-django-allauth
SUBDIR += py-dj42-django-auth-ldap
+ SUBDIR += py-dj42-django-compression-middleware
SUBDIR += py-dj42-django-cors-headers
SUBDIR += py-dj42-django-debug-toolbar
SUBDIR += py-dj42-django-extensions
diff --git a/www/py-dj42-django-compression-middleware/Makefile b/www/py-dj42-django-compression-middleware/Makefile
new file mode 100644
index 000000000000..755cc50bc83a
--- /dev/null
+++ b/www/py-dj42-django-compression-middleware/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= django-compression-middleware
+PORTVERSION= 0.5.0
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj42-
+
+MAINTAINER= grembo@FreeBSD.org
+COMMENT= Django middleware to compress responses using several algorithms
+WWW= https://github.com/friedelwolff/django-compression-middleware
+
+LICENSE= MPL20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>=3.2:www/py-django42@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}zstandard>=0.22.0:archivers/py-zstandard@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}brotli>=1.1.0:archivers/py-brotli@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/www/py-dj42-django-compression-middleware/distinfo b/www/py-dj42-django-compression-middleware/distinfo
new file mode 100644
index 000000000000..5dd1c04b8ec1
--- /dev/null
+++ b/www/py-dj42-django-compression-middleware/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1707589744
+SHA256 (django-compression-middleware-0.5.0.tar.gz) = 0df50f12d774659abc8bbc88e4c794f2785a8f11f30b5bb267c314b85d941b73
+SIZE (django-compression-middleware-0.5.0.tar.gz) = 20060
diff --git a/www/py-dj42-django-compression-middleware/pkg-descr b/www/py-dj42-django-compression-middleware/pkg-descr
new file mode 100644
index 000000000000..fe4861de4bcb
--- /dev/null
+++ b/www/py-dj42-django-compression-middleware/pkg-descr
@@ -0,0 +1,6 @@
+Django Compression Middleware
+
+This middleware implements compressed content encoding for HTTP. It is similar
+to Django's GZipMiddleware, but additionally supports other compression methods.
+
+It is meant to be a drop-in replacement for Django's GZipMiddleware.