Skip to content

Commit

Permalink
textproc/py-sphinxcontrib-towncrier: Convert to USE_PYTHON=pep517
Browse files Browse the repository at this point in the history
- Remove outdated PYTHON_REL check after lang/python37 removal
- Bump PORTREVISION for package change
  • Loading branch information
sunpoet committed Jun 30, 2023
1 parent 344fe8a commit d62c1c7
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions textproc/py-sphinxcontrib-towncrier/Makefile
@@ -1,5 +1,6 @@
PORTNAME= sphinxcontrib-towncrier
PORTVERSION= 0.3.2a0
PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -11,18 +12,16 @@ WWW= https://github.com/sphinx-contrib/sphinxcontrib-towncrier
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=40.6.0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.5:devel/py-setuptools_scm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools_scm_git_archive>=1.1:devel/py-setuptools_scm_git_archive@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}towncrier>=19.2:textproc/py-towncrier@${PY_FLAVOR}

USES= python
USE_PYTHON= autoplist concurrent distutils
USE_PYTHON= autoplist concurrent pep517

NO_ARCH= yes

.include <bsd.port.pre.mk>

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

.include <bsd.port.post.mk>
.include <bsd.port.mk>

0 comments on commit d62c1c7

Please sign in to comment.