freebsd-ports/science/py-asdf-unit-schemas/Makefile
Po-Chuan Hsieh 3de7714032
science/py-asdf-unit-schemas: Add py-asdf-unit-schemas 0.1.0
asdf-unit-schemas provides ASDF schemas for validating unit tags. Users should
not need to install this directly; instead, install an implementation package
such as asdf-astropy, which includes asdf-unit-schemas as a dependency.
2023-01-30 20:58:48 +08:00

31 lines
817 B
Makefile

PORTNAME= asdf-unit-schemas
PORTVERSION= 0.1.0
CATEGORIES= science python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= asdf_unit_schemas-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= ASDF schemas for units
WWW= https://github.com/asdf-format/asdf-unit-schemas
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asdf-standard>=1.0.1:science/py-asdf-standard@${PY_FLAVOR}
USES= python:3.8+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 30900
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-resources>=3:devel/py-importlib-resources@${PY_FLAVOR}
.endif
post-patch:
@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
.include <bsd.port.post.mk>