mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 08:40:06 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user