git: 8df0d56eb438 - main - www/py-dj42-django-compression-middleware: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 18 Feb 2024 15:10:12 UTC
The branch main has been updated by grembo: URL: https://cgit.FreeBSD.org/ports/commit/?id=8df0d56eb4383ec4e86ce578c55a7cdab9854849 commit 8df0d56eb4383ec4e86ce578c55a7cdab9854849 Author: Michael Gmelin <grembo@FreeBSD.org> AuthorDate: 2024-02-12 17:20:21 +0000 Commit: Michael Gmelin <grembo@FreeBSD.org> CommitDate: 2024-02-18 14:56:48 +0000 www/py-dj42-django-compression-middleware: New port Django middleware to compress responses using several algorithms --- www/Makefile | 1 + www/py-dj42-django-compression-middleware/Makefile | 23 ++++++++++++++++++++++ www/py-dj42-django-compression-middleware/distinfo | 3 +++ .../pkg-descr | 6 ++++++ 4 files changed, 33 insertions(+) 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.