git: 7ceaf5c2ee26 - main - www/py-drf-spectacular-sidecar: New port

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Thu, 04 May 2023 11:58:43 UTC
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7ceaf5c2ee26ce7447202f3cbf4f41bb6a395151

commit 7ceaf5c2ee26ce7447202f3cbf4f41bb6a395151
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2023-05-04 11:36:02 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2023-05-04 11:57:42 +0000

    www/py-drf-spectacular-sidecar: New port
    
    Serve self-contained distribution builds of Swagger UI and Redoc with
    Django either via runserver or collectstatic.
    
    This Django app is an optional addition to drf-spectacular, but does not
    depend on it. It may also be used independently.
---
 www/Makefile                             |  1 +
 www/py-drf-spectacular-sidecar/Makefile  | 23 +++++++++++++++++++++++
 www/py-drf-spectacular-sidecar/distinfo  |  3 +++
 www/py-drf-spectacular-sidecar/pkg-descr |  5 +++++
 4 files changed, 32 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 5b5096af654e..297ea041eb5e 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1605,6 +1605,7 @@
     SUBDIR += py-djangorestframework-xml
     SUBDIR += py-draftjs-exporter
     SUBDIR += py-drf-spectacular
+    SUBDIR += py-drf-spectacular-sidecar
     SUBDIR += py-drf-yasg
     SUBDIR += py-dropbox
     SUBDIR += py-dtflickr
diff --git a/www/py-drf-spectacular-sidecar/Makefile b/www/py-drf-spectacular-sidecar/Makefile
new file mode 100644
index 000000000000..f8071cb2c05e
--- /dev/null
+++ b/www/py-drf-spectacular-sidecar/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	drf-spectacular-sidecar
+DISTVERSION=	2023.5.1
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	kai@FreeBSD.org
+COMMENT=	Serve self-contained Swagger UI/Redoc distribution builds with Django
+WWW=		https://github.com/tfranzel/drf-spectacular
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django32>=2.2:www/py-django32@${PY_FLAVOR}
+
+USES=		python:3.6+
+USE_PYTHON=	autoplist distutils
+
+CONFLICTS_INSTALL=	${PYTHON_PKGNAMEPREFIX}*${PORTNAME}
+
+NO_ARCH=		yes
+
+.include <bsd.port.mk>
diff --git a/www/py-drf-spectacular-sidecar/distinfo b/www/py-drf-spectacular-sidecar/distinfo
new file mode 100644
index 000000000000..9c1b2fac4d74
--- /dev/null
+++ b/www/py-drf-spectacular-sidecar/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1683199513
+SHA256 (drf-spectacular-sidecar-2023.5.1.tar.gz) = 58358215fee6c4634d77335d4c341b8132dc0847b282fb2fe4b22530dc2a56ca
+SIZE (drf-spectacular-sidecar-2023.5.1.tar.gz) = 2472077
diff --git a/www/py-drf-spectacular-sidecar/pkg-descr b/www/py-drf-spectacular-sidecar/pkg-descr
new file mode 100644
index 000000000000..34144682bfdc
--- /dev/null
+++ b/www/py-drf-spectacular-sidecar/pkg-descr
@@ -0,0 +1,5 @@
+Serve self-contained distribution builds of Swagger UI and Redoc with Django
+either via runserver or collectstatic.
+
+This Django app is an optional addition to drf-spectacular, but does not depend
+on it. It may also be used independently.