mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 13:50:08 +02:00
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
78 lines
1.7 KiB
Bash
78 lines
1.7 KiB
Bash
SUMMARY="Extension to include jQuery on newer Sphinx releases"
|
|
DESCRIPTION="sphinxcontrib-jquery ensures that jQuery is always installed for use in Sphinx \
|
|
themes or extensions."
|
|
HOMEPAGE="https://github.com/sphinx-contrib/jquery/
|
|
https://pypi.org/project/sphinxcontrib-jquery/"
|
|
COPYRIGHT="2022 Adam Turner"
|
|
LICENSE="MIT
|
|
0BSD"
|
|
REVISION="2"
|
|
SOURCE_URI="https://pypi.python.org/packages/source/s/sphinxcontrib-jquery/sphinxcontrib-jquery-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="1620739f04e36a2c779f1a131a2dfd49b2fd07351bf1968ced074365933abc7a"
|
|
SOURCE_DIR="sphinxcontrib-jquery-$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
|
|
sphinx_$pythonPackage
|
|
cmd:python$pythonVersion
|
|
\""
|
|
BUILD_REQUIRES+="
|
|
build_$pythonPackage
|
|
flit_core_$pythonPackage
|
|
installer_$pythonPackage
|
|
"
|
|
BUILD_PREREQUIRES+="
|
|
cmd:python$pythonVersion
|
|
"
|
|
done
|
|
|
|
TEST_REQUIRES="
|
|
snowballstemmer_python$defaultTestVersion
|
|
sphinxcontrib_jquery_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
|
|
}
|