- Fix BUILD_DEPENDS: py-wheel is not needed - Fix BUILD_DEPENDS usage: it should depend on the package, not the executable from pyproject.toml: [build-system] requires = ["hatchling"] Reference: https://github.com/jwodder/versioningit/blob/v3.3.0/pyproject.toml#L1-L2 Approved by: portmgr (blanket) With hat: python
26 lines
653 B
Makefile
26 lines
653 B
Makefile
PORTNAME= versioningit
|
|
PORTVERSION= 3.3.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= dvl@FreeBSD.org
|
|
COMMENT= Obtain package version from repo tags
|
|
WWW= https://github.com/jwodder/versioningit
|
|
|
|
LICENSE= MIT
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>3.6:devel/py-importlib-metadata@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}packaging>17.1:devel/py-packaging@${PY_FLAVOR} \
|
|
${PY_TOMLI} \
|
|
git>0:devel/git
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist pep517
|
|
|
|
NO_ARCH= yes
|
|
|
|
.include <bsd.port.mk>
|