pymupdf: drop Python 3.9 support.

Nothing seems to use this on-tree.
This commit is contained in:
Oscar Lesta
2025-09-19 18:40:32 -03:00
committed by OscarL
parent a7a34b0e29
commit ffe617d066

View File

@@ -10,7 +10,7 @@ HOMEPAGE="https://pypi.org/project/PyMuPDF/
https://github.com/pymupdf/PyMuPDF/"
COPYRIGHT="2022 Jorj X. McKie and Ruikai Liu"
LICENSE="AGPL-3.0"
REVISION="4"
REVISION="5"
SOURCE_URI="https://github.com/pymupdf/PyMuPDF/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="e639e5190067bc3ff599ffb09bfad7da0165c0098fe42ddc1a849715904b0ee0"
SOURCE_FILENAME="PyMuPDF-$portVersion.tar.gz"
@@ -38,13 +38,12 @@ BUILD_PREREQUIRES="
cmd:git
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
PYTHON_VERSIONS=(3.10)
eval "PROVIDES_${pythonPackage}=\"
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
if [ "$targetArchitecture" = x86_gcc2 ]; then
@@ -68,19 +67,20 @@ done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
packageEntries $pythonPackage \
$prefix/lib/python*
done
}