Annotation of pkgsrc/graphics/py-matplotlib/Makefile, revision 1.95
1.95 ! wiz 1: # $NetBSD: Makefile,v 1.94 2024/04/07 11:44:57 wiz Exp $
1.1 minskim 2:
1.95 ! wiz 3: DISTNAME= matplotlib-3.9.0
1.54 adam 4: PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5: CATEGORIES= graphics python
6: MASTER_SITES= ${MASTER_SITE_PYPI:=m/matplotlib/}
1.47 adam 7:
1.54 adam 8: MAINTAINER= pkgsrc-users@NetBSD.org
9: HOMEPAGE= https://matplotlib.org/
1.47 adam 10: COMMENT= Matlab-style plotting package for Python
1.54 adam 11: # LICENSE= see ${WRKSRC}/LICENSE/LICENSE
1.47 adam 12:
1.81 adam 13: TOOL_DEPENDS+= ${PYPKGPREFIX}-certifi>=2020.06.20:../../security/py-certifi
1.95 ! wiz 14: TOOL_DEPENDS+= ${PYPKGPREFIX}-meson_python>=0:../../devel/py-meson_python
! 15: TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=0:../../devel/py-setuptools_scm
! 16: DEPENDS+= ${PYPKGPREFIX}-Pillow>=8.0:../../graphics/py-Pillow
! 17: #DEPENDS+= ${PYPKGPREFIX}-cairo-[0-9]*:../../graphics/py-cairo
1.77 adam 18: DEPENDS+= ${PYPKGPREFIX}-contourpy>=1.0.1:../../graphics/py-contourpy
1.52 adam 19: DEPENDS+= ${PYPKGPREFIX}-cycler>=0.10:../../graphics/py-cycler
1.67 adam 20: DEPENDS+= ${PYPKGPREFIX}-dateutil>=2.7:../../time/py-dateutil
1.76 adam 21: DEPENDS+= ${PYPKGPREFIX}-fonttools>=4.22.0:../../fonts/py-fonttools
1.95 ! wiz 22: DEPENDS+= ${PYPKGPREFIX}-kiwisolver>=1.3.1:../../math/py-kiwisolver
1.76 adam 23: DEPENDS+= ${PYPKGPREFIX}-packaging>=20.0:../../devel/py-packaging
1.86 adam 24: DEPENDS+= ${PYPKGPREFIX}-pyparsing>=2.3.1:../../devel/py-pyparsing
1.95 ! wiz 25: TEST_DEPENDS+= ${PYPKGPREFIX}-test>=0:../../devel/py-test
1.54 adam 26:
1.56 adam 27: USE_LANGUAGES= c c++
28: USE_TOOLS+= pkg-config
1.54 adam 29:
1.85 wiz 30: PYTHON_VERSIONS_INCOMPATIBLE= 27 38
1.54 adam 31:
1.95 ! wiz 32: WHEEL_ARGS+= -Csetup-args="-Dsystem-freetype=true"
! 33: WHEEL_ARGS+= -Csetup-args="-Dsystem-qhull=true"
! 34: WHEEL_ARGS+= -Csetup-args="-Db_lto=false"
! 35: # install test data, per
! 36: # https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.9.0.html#build-system-ported-to-meson
! 37: # so that test target can work
! 38: WHEEL_ARGS+= -Cinstall-args="--tags=data,python-runtime,runtime,tests"
! 39:
1.91 jperkin 40: # py-pybind11's bl3 defaults to PYTHON_FOR_BUILD_ONLY?=yes as it is primarily
41: # used by packages that only have a build dependency on it. Therefore we need
42: # to ensure that we set it to "no" first to get accurate dependencies.
43: PYTHON_FOR_BUILD_ONLY= no
1.92 jperkin 44: .include "../../lang/python/pyversion.mk"
1.91 jperkin 45:
1.95 ! wiz 46: .if ${PYTHON_VERSION} < 310
! 47: DEPENDS+= ${PYPKGPREFIX}-importlib-resources>=3.2.0:../../devel/py-importlib-resources
! 48: .endif
! 49:
! 50: # depends on do-install
! 51: # as of 3.9.0
! 52: # 928 failed, 6776 passed, 1785 skipped, 33 xfailed
! 53: # possible additional test dependencies to pass more tests include
! 54: # pikepdf, tex, qt, ghostscript, ...
! 55: # py-test command line comes from https://github.com/matplotlib/matplotlib/issues/28260
! 56: do-test:
! 57: cd ${WRKSRC} && pytest-${PYVERSSUFFIX} -ra -m 'not network' --pyargs matplotlib
! 58:
1.81 adam 59: .include "../../devel/py-pybind11/buildlink3.mk"
1.11 drochner 60: .include "../../devel/zlib/buildlink3.mk"
61: .include "../../graphics/freetype2/buildlink3.mk"
62: .include "../../graphics/png/buildlink3.mk"
1.88 adam 63: .include "../../lang/python/wheel.mk"
1.95 ! wiz 64: .include "../../lang/python/tool.mk"
1.22 markd 65: .include "../../math/py-numpy/buildlink3.mk"
1.63 mef 66: .include "../../math/qhull/buildlink3.mk"
1.1 minskim 67: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>