mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-14 07:40:07 +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:
@@ -5,7 +5,7 @@ HOMEPAGE="http://sphinx-doc.org/
|
||||
https://pypi.org/project/sphinxcontrib-serializinghtml/"
|
||||
COPYRIGHT="2007-2019 by the Sphinx team"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://pypi.python.org/packages/source/s/sphinxcontrib-serializinghtml/sphinxcontrib-serializinghtml-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="aa5f6de5dfdf809ef505c4895e51ef5c9eac17d0f287933eb49ec495280b6952"
|
||||
SOURCE_DIR="sphinxcontrib-serializinghtml-$portVersion"
|
||||
@@ -23,12 +23,12 @@ BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python39 python310)
|
||||
PYTHON_VERSIONS=(3.9 3.10)
|
||||
defaultTestVersion="python39"
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
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
|
||||
@@ -49,21 +49,22 @@ for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
done
|
||||
|
||||
TEST_REQUIRES="
|
||||
sphinx_$defaultTestVersion
|
||||
sphinx_python$defaultTestVersion
|
||||
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
|
||||
|
||||
$python -m build --wheel --skip-dependency-check --no-isolation
|
||||
$python -m installer -p $prefix dist/*.whl
|
||||
|
||||
packageEntries ${PYTHON_PACKAGES[i]} \
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python*
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user