Files
haikuports/dev-python/sphinxcontrib-devhelp/sphinxcontrib_devhelp-1.0.2.recipe
OscarL fd55e514dd sphinx: clean up, drop _python39 package. (#11605)
Also cleanup and drop _python39 from related recipes:

- alabaster
- sphinx_rtd_theme
- sphinx_argparse
- sphinxcontrib_applehelp
- sphinxcontrib_devhelp
- sphinxcontrib_htmlhelp
- sphinxcontrib_jquery
- sphinxcontrib_jsmath
- sphinxcontrib_qthelp
- sphinxcontrib_serializinghtml
2025-01-08 10:30:51 +01:00

75 lines
1.6 KiB
Bash

SUMMARY="A sphinx extension which outputs Devhelp_ document"
DESCRIPTION="sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp_ document."
HOMEPAGE="http://sphinx-doc.org/
https://github.com/sphinx-doc/sphinxcontrib-devhelp"
COPYRIGHT="2007-2019 by the Sphinx team"
LICENSE="BSD (2-clause)"
REVISION="2"
SOURCE_URI="https://pypi.python.org/packages/source/s/sphinxcontrib-devhelp/sphinxcontrib-devhelp-$portVersion.tar.gz"
CHECKSUM_SHA256="ff7f1afa7b9642e7060379360a67e9c41e8f3121f2ce9164266f61b9f4b338e4"
SOURCE_DIR="sphinxcontrib-devhelp-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_VERSIONS=(3.10)
defaultTestVersion=3.10
for i in "${!PYTHON_VERSIONS[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
installer_$pythonPackage
setuptools_$pythonPackage
wheel_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
TEST_REQUIRES="
sphinx_python$defaultTestVersion
cmd:pytest
"
INSTALL()
{
for i in "${!PYTHON_VERSIONS[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer -p $prefix dist/*.whl
packageEntries $pythonPackage \
$prefix/lib/python*
done
}
TEST()
{
pytest -v
}