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