1SUMMARY="A sphinx extension which outputs Devhelp_ document" 2DESCRIPTION="sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp_ document." 3HOMEPAGE="http://sphinx-doc.org/ 4 https://github.com/sphinx-doc/sphinxcontrib-devhelp" 5COPYRIGHT="2007-2019 by the Sphinx team" 6LICENSE="BSD (2-clause)" 7REVISION="1" 8SOURCE_URI="https://pypi.python.org/packages/source/s/sphinxcontrib-devhelp/sphinxcontrib-devhelp-$portVersion.tar.gz" 9CHECKSUM_SHA256="ff7f1afa7b9642e7060379360a67e9c41e8f3121f2ce9164266f61b9f4b338e4" 10SOURCE_DIR="sphinxcontrib-devhelp-$portVersion" 11 12ARCHITECTURES="any" 13 14PROVIDES=" 15 $portName = $portVersion 16 " 17REQUIRES=" 18 haiku 19 " 20 21BUILD_REQUIRES=" 22 haiku_devel 23 " 24 25PYTHON_PACKAGES=(python39 python310) 26PYTHON_VERSIONS=(3.9 3.10) 27defaultTestVersion="python39" 28for i in "${!PYTHON_PACKAGES[@]}"; do 29 pythonPackage=${PYTHON_PACKAGES[i]} 30 pythonVersion=${PYTHON_VERSIONS[$i]} 31 32 eval "PROVIDES_$pythonPackage=\" 33 ${portName}_$pythonPackage = $portVersion 34 \"" 35 eval "REQUIRES_$pythonPackage=\" 36 haiku 37 cmd:python$pythonVersion 38 \"" 39 BUILD_REQUIRES+=" 40 build_$pythonPackage 41 installer_$pythonPackage 42 setuptools_$pythonPackage 43 wheel_$pythonPackage 44 " 45 BUILD_PREREQUIRES+=" 46 cmd:python$pythonVersion 47 " 48done 49 50TEST_REQUIRES=" 51 sphinx_$defaultTestVersion 52 cmd:pytest 53 " 54 55INSTALL() 56{ 57 for i in "${!PYTHON_PACKAGES[@]}"; do 58 pythonVersion=${PYTHON_VERSIONS[$i]} 59 60 python=python$pythonVersion 61 62 $python -m build --wheel --skip-dependency-check --no-isolation 63 $python -m installer -p $prefix dist/*.whl 64 65 packageEntries ${PYTHON_PACKAGES[i]} \ 66 $prefix/lib/python* 67 done 68} 69 70TEST() 71{ 72 pytest -v 73} 74