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
This commit is contained in:
OscarL
2025-01-08 06:30:51 -03:00
committed by GitHub
parent 18c180c8e5
commit fd55e514dd
11 changed files with 109 additions and 98 deletions

View File

@@ -21,7 +21,7 @@ extensions."
HOMEPAGE="https://www.sphinx-doc.org/"
COPYRIGHT="2023 Georg Brandl"
LICENSE="BSD (2-clause)"
REVISION="3"
REVISION="4"
SOURCE_URI="https://github.com/sphinx-doc/sphinx/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="b41c04543148937b887097f396d7b2b54ae49d0597b68625f06ffdf702d4d917"
PATCHES="sphinx-$portVersion.patchset"
@@ -39,13 +39,14 @@ BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
PYTHON_VERSIONS=(3.10)
defaultVersion=3.10
defaultTestVersion="python39"
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
defaultTestVersion=$defaultVersion
for i in "${!PYTHON_VERSIONS[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
@@ -70,7 +71,6 @@ for i in "${!PYTHON_PACKAGES[@]}"; do
babel_$pythonPackage
docutils_$pythonPackage
imagesize_$pythonPackage
importlib_metadata_$pythonPackage # only for Python < 3.10
jinja_$pythonPackage
packaging_$pythonPackage
pygments_$pythonPackage
@@ -96,17 +96,20 @@ for i in "${!PYTHON_PACKAGES[@]}"; do
done
TEST_REQUIRES="
cython_$pythonPackage
# cython_$pythonPackage
filelock_$defaultTestVersion
html5lib_$defaultTestVersion
sphinx_$defaultTestVersion
# sphinx_$defaultTestVersion
cmd:cython$pythonVersion
cmd:sphinx_build
cmd:pytest
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
for i in "${!PYTHON_VERSIONS[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
@@ -125,7 +128,7 @@ INSTALL()
done
fi
packageEntries ${PYTHON_PACKAGES[i]} \
packageEntries $pythonPackage \
$prefix/lib/python* \
$prefix/bin
done