32 lines
836 B
Makefile
32 lines
836 B
Makefile
|
PORTNAME= django-timezone-field
|
||
|
DISTVERSION= 5.0
|
||
|
PORTREVISION= 1
|
||
|
CATEGORIES= www python
|
||
|
MASTER_SITES= PYPI
|
||
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj41-
|
||
|
|
||
|
MAINTAINER= kai@FreeBSD.org
|
||
|
COMMENT= Provides database and form fields for pytz timezone objects for Django
|
||
|
WWW= https://github.com/mfogel/django-timezone-field
|
||
|
|
||
|
LICENSE= BSD2CLAUSE
|
||
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
||
|
|
||
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django41>=2.2:www/py-django41@${PY_FLAVOR} \
|
||
|
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR}
|
||
|
|
||
|
USES= python:3.8+
|
||
|
USE_PYTHON= distutils autoplist
|
||
|
|
||
|
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*${PORTNAME}
|
||
|
|
||
|
NO_ARCH= yes
|
||
|
|
||
|
.include <bsd.port.pre.mk>
|
||
|
|
||
|
.if ${PYTHON_REL} < 30900
|
||
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}backports.zoneinfo>=0.2.1<0.3.0:devel/py-backports.zoneinfo@${PY_FLAVOR}
|
||
|
.endif
|
||
|
|
||
|
.include <bsd.port.post.mk>
|