Skip to content

Commit

Permalink
www/py-django-configurations: Fix RUN_DEPENDS
Browse files Browse the repository at this point in the history
- Fix RUN_DEPENDS
  - Add py-importlib-metadata
  - Remove py-six
- Sort BUILD_DEPENDS
- Bump PORTREVISION for dependency change
  • Loading branch information
sunpoet committed Jan 11, 2022
1 parent 1ed8ab8 commit b84d956
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions www/py-django-configurations/Makefile
Expand Up @@ -2,6 +2,7 @@

PORTNAME= django-configurations
PORTVERSION= 2.3.1
PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -12,10 +13,9 @@ COMMENT= Django project configuration using the composability of Python classes
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django22>=0:www/py-django22@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=0:www/py-django22@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=2.2:www/py-django22@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=2.2:www/py-django22@${PY_FLAVOR}

USES= python:3.7+
USE_PYTHON= autoplist concurrent distutils
Expand All @@ -35,4 +35,10 @@ post-install-DOCS-on:
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
"! -name .buildinfo -and ! -name objects.inv")

.include <bsd.port.mk>
.include <bsd.port.pre.mk>

.if ${PYTHON_REL} < 30800
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
.endif

.include <bsd.port.post.mk>

0 comments on commit b84d956

Please sign in to comment.