summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorJesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>2025-06-26 18:34:27 -0400
committerJesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>2025-06-26 19:46:16 -0400
commit1af7a84ab2988a7b3e28ebffd15cf1d81fd8b30a (patch)
tree933657f598ec3d926c6b86367388f08a3e55a8eb /www
parentsysutils/go-ntfy: New port: Send push notifications to your phone or desktop ... (diff)
www/py-dj52-django-stubs-ext: Add slave port of www/py-django-stubs-ext
sysutils/py-healthchecks port requires django 5.2 and www/py-django-stubs-ext uses django 4.2 so a conflict will arise. The slave port has been created to use DJANGO_VERSION with the specific version of django that a port needs. PR: 287486 Approved by: acm (mentor) Approved by: maintainer timeout (2 weeks)
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/py-dj52-django-stubs-ext/Makefile12
-rw-r--r--www/py-django-stubs-ext/Makefile10
3 files changed, 20 insertions, 3 deletions
diff --git a/www/Makefile b/www/Makefile
index e72084fbdc21..9bebefe31170 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1563,6 +1563,7 @@
SUBDIR += py-dj52-django-redis
SUBDIR += py-dj52-django-rich
SUBDIR += py-dj52-django-storages
+ SUBDIR += py-dj52-django-stubs-ext
SUBDIR += py-dj52-django-tables2
SUBDIR += py-dj52-django-taggit
SUBDIR += py-dj52-django-timezone-field
diff --git a/www/py-dj52-django-stubs-ext/Makefile b/www/py-dj52-django-stubs-ext/Makefile
new file mode 100644
index 000000000000..a3127930ff2d
--- /dev/null
+++ b/www/py-dj52-django-stubs-ext/Makefile
@@ -0,0 +1,12 @@
+PORTNAME= django-stubs-ext
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj${DJANGO_VERSION}-
+
+MAINTAINER= dtxdf@FreeBSD.org
+
+CONFLICTS_INSTALL= www/py-django-stubs-ext
+
+MASTERDIR= ${.CURDIR}/../py-django-stubs-ext
+
+DJANGO_VERSION= 52
+
+.include "${MASTERDIR}/Makefile"
diff --git a/www/py-django-stubs-ext/Makefile b/www/py-django-stubs-ext/Makefile
index 856481f91657..314fb3e0ce93 100644
--- a/www/py-django-stubs-ext/Makefile
+++ b/www/py-django-stubs-ext/Makefile
@@ -2,10 +2,10 @@ PORTNAME= django-stubs-ext
PORTVERSION= 5.2.0
CATEGORIES= www python
MASTER_SITES= PYPI
-PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+PKGNAMEPREFIX?= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= django_stubs_ext-${PORTVERSION}
-MAINTAINER= sunpoet@FreeBSD.org
+MAINTAINER?= sunpoet@FreeBSD.org
COMMENT= Monkey-patching and extensions for django-stubs
WWW= https://github.com/typeddjango/django-stubs
@@ -14,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.md
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>=0:www/py-django42@${PY_FLAVOR} \
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django${DJANGO_VERSION}>=0:www/py-django${DJANGO_VERSION}@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
USES= python:3.10+
@@ -22,4 +22,8 @@ USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
+CONFLICTS_INSTALL?= www/py-dj52-django-stubs-ext
+
+DJANGO_VERSION?= 42
+
.include <bsd.port.mk>