pkgsrc/math/py-asdf/Makefile
wiz 67e1f1a6bf python: egg.mk: add USE_PKG_RESOURCES flag
This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.
2022-01-05 15:40:56 +00:00

43 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2022/01/05 15:41:13 wiz Exp $
DISTNAME= asdf-2.8.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/asdf/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/asdf-format/asdf
COMMENT= Advanced Scientific Data Format
LICENSE= modified-bsd
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
DEPENDS+= ${PYPKGPREFIX}-jmespath>=0.6.2:../../textproc/py-jmespath
DEPENDS+= ${PYPKGPREFIX}-jsonschema>=3.0.2:../../textproc/py-jsonschema
DEPENDS+= ${PYPKGPREFIX}-lz4>=0.10:../../archivers/py-lz4
DEPENDS+= ${PYPKGPREFIX}-numpy>=1.10.0:../../math/py-numpy
DEPENDS+= ${PYPKGPREFIX}-packaging>=16.0:../../devel/py-packaging
DEPENDS+= ${PYPKGPREFIX}-semantic_version>=2.8:../../devel/py-semantic_version
DEPENDS+= ${PYPKGPREFIX}-yaml>=3.10:../../textproc/py-yaml
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-numpy
USE_PKG_RESOURCES= yes
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} < 39
DEPENDS+= ${PYPKGPREFIX}-importlib-resources>=3:../../devel/py-importlib-resources
.endif
REPLACE_PYTHON+= asdf-standard/reference_files/generate/generate
REPLACE_PYTHON+= asdf/extern/RangeHTTPServer.py
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} asdftool asdftool-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"