35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2021/12/30 13:05:33 adam Exp $
|
|
|
|
DISTNAME= imageio-2.10.5
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= graphics python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=i/imageio/}
|
|
|
|
MAINTAINER= prlw1@cam.ac.uk
|
|
HOMEPAGE= https://imageio.readthedocs.io/
|
|
COMMENT= Python library to read and write images
|
|
LICENSE= 2-clause-bsd
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-Pillow>=8.3.2:../../graphics/py-Pillow
|
|
DEPENDS+= ${PYPKGPREFIX}-numpy-[0-9]*:../../math/py-numpy
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-tifffile-[0-9]*:../../graphics/py-tifffile
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-numpy
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
post-extract:
|
|
cd ${WRKSRC}/imageio/resources && \
|
|
${CHMOD} 644 shipped_resources_go_here images/*
|
|
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX}/bin && \
|
|
${MV} imageio_download_bin imageio_download_bin-${PYVERSSUFFIX} && \
|
|
${MV} imageio_remove_bin imageio_remove_bin-${PYVERSSUFFIX} || ${TRUE}
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|