1SUMMARY="A Python package build backend leveraging the Meson build system" 2DESCRIPTION="``meson-python`` is a Python build backend built on top of the Meson__ 3build system. It enables to use Meson for the configuration and build 4steps of Python packages. Meson is an open source build system meant 5to be both extremely fast, and, even more importantly, as user 6friendly as possible. ``meson-python`` is best suited for building 7Python packages containing extension modules implemented in languages 8such as C, C++, Cython, Fortran, Pythran, or Rust. Consult the 9documentation__ for more details." 10HOMEPAGE="https://github.com/mesonbuild/meson-python" 11COPYRIGHT="2022 The meson-python developers 12 2021 Quansight Labs and Filipe La��ns" 13LICENSE="MIT" 14REVISION="1" 15SOURCE_URI="$HOMEPAGE/archive/refs/tags/$portVersion.tar.gz" 16CHECKSUM_SHA256="1f464e7a1e15971b70c8208d537fd0193b33c345aac5887af2806e55426ca571" 17SOURCE_DIR="meson-python-$portVersion" 18 19ARCHITECTURES="any" 20 21PROVIDES=" 22 $portName = $portVersion 23 " 24REQUIRES=" 25 haiku 26 " 27 28BUILD_REQUIRES=" 29 haiku_devel 30 " 31 32PYTHON_PACKAGES=(python310) 33PYTHON_VERSIONS=(3.10) 34for i in "${!PYTHON_PACKAGES[@]}"; do 35 pythonPackage=${PYTHON_PACKAGES[i]} 36 pythonVersion=${PYTHON_VERSIONS[$i]} 37 38 eval "PROVIDES_$pythonPackage=\" 39 ${portName}_$pythonPackage = $portVersion 40 \"" 41 eval "REQUIRES_$pythonPackage=\" 42 haiku 43 pyproject_metadata_$pythonPackage 44 tomli_$pythonPackage # python_version < "3.11" 45# setuptools$pythonPackage >= 60.0; python_version >= "3.12" 46 cmd:meson 47 cmd:python$pythonVersion 48 \"" 49 BUILD_REQUIRES+=" 50 build_$pythonPackage 51 installer_$pythonPackage 52 pyproject_metadata_$pythonPackage 53 setuptools_$pythonPackage 54 wheel_$pythonPackage 55 cmd:meson 56 " 57 BUILD_PREREQUIRES+=" 58 cmd:python$pythonVersion 59 " 60done 61 62INSTALL() 63{ 64 for i in "${!PYTHON_PACKAGES[@]}"; do 65 pythonVersion=${PYTHON_VERSIONS[$i]} 66 67 python=python$pythonVersion 68 69 $python -m build --wheel --skip-dependency-check --no-isolation 70 $python -m installer -p $prefix dist/*.whl 71 72 packageEntries ${PYTHON_PACKAGES[i]} \ 73 $prefix/lib/python* 74 done 75} 76