mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
python_poppler_qt5: switch to python 3.10
This commit is contained in:
@@ -5,11 +5,11 @@ Using this module you can access the contents of PDF files inside PyQt5 applicat
|
||||
HOMEPAGE="https://github.com/frescobaldi/python-poppler-qt5/"
|
||||
COPYRIGHT="2009-2022 Wilbert Berendsen"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://pypi.python.org/packages/source/p/python-poppler-qt5/python-poppler-qt5-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="b477e8841f0ea0e09fdab6f2f305cf38df977d9e142e5693a374605d75dd6fe0"
|
||||
SOURCE_DIR="python-poppler-qt5-$portVersion"
|
||||
PYTHON3_VERSION="3.9"
|
||||
PYTHON3_VERSION="3.10"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -21,30 +21,30 @@ REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libpoppler_qt5$secondaryArchSuffix
|
||||
"
|
||||
PROVIDES_python39="
|
||||
python_poppler_qt5${secondaryArchSuffix}_python39 = $portVersion
|
||||
PROVIDES_python310="
|
||||
python_poppler_qt5${secondaryArchSuffix}_python310 = $portVersion
|
||||
"
|
||||
REQUIRES_python39="
|
||||
REQUIRES_python310="
|
||||
haiku$secondaryArchSuffix
|
||||
python_poppler_qt5$secondaryArchSuffix == $portVersion base
|
||||
pyqt5_python39
|
||||
pyqt5_sip_python39
|
||||
pyqt5_python310
|
||||
pyqt5_sip_python310
|
||||
cmd:python$PYTHON3_VERSION
|
||||
$REQUIRES
|
||||
"
|
||||
|
||||
if [ "$targetArchitecture" = "x86_gcc2" ]; then
|
||||
PROVIDES_python39+="
|
||||
python_poppler_qt5_python39 = $portVersion
|
||||
PROVIDES_python310+="
|
||||
python_poppler_qt5_python310 = $portVersion
|
||||
"
|
||||
fi
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
pyqt_builder_python39
|
||||
pyqt5_python39
|
||||
setuptools_python39
|
||||
sip_python39 >= 6
|
||||
pyqt_builder_python310
|
||||
pyqt5_python310
|
||||
setuptools_python310
|
||||
sip_python310 >= 6
|
||||
devel:libpoppler_qt5$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
@@ -63,16 +63,16 @@ BUILD()
|
||||
OLDPYTHONPATH=$PYTHONPATH
|
||||
|
||||
local packageLinksDir=$(dirname $portPackageLinksDir)
|
||||
local python3PackageName="${portName}_python39-$portFullVersion"
|
||||
local python3PackageName="${portName}_python310-$portFullVersion"
|
||||
|
||||
# GENERIC: all python_setuptools-based installs need this
|
||||
python=$packageLinksDir/$python3PackageName/cmd~python$PYTHON3_VERSION/bin/python$PYTHON3_VERSION
|
||||
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
|
||||
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c4)
|
||||
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$OLDPYTHONPATH
|
||||
|
||||
# this seems to be not needed
|
||||
#BINDINGS_DIR=$portPackageLinksDir/pyqt5_python39/lib/python$pythonVersion/vendor-packages/PyQt5/bindings/
|
||||
#BINDINGS_DIR=$portPackageLinksDir/pyqt5_python310/lib/python$pythonVersion/vendor-packages/PyQt5/bindings/
|
||||
#sed -i -e "s|BINDINGS_DIR|$BINDINGS_DIR|g" pyproject.toml
|
||||
|
||||
sip-build \
|
||||
@@ -95,11 +95,11 @@ INSTALL()
|
||||
OLDPYTHONPATH=$PYTHONPATH
|
||||
|
||||
local packageLinksDir=$(dirname $portPackageLinksDir)
|
||||
local python3PackageName="${portName}_python39-$portFullVersion"
|
||||
local python3PackageName="${portName}_python310-$portFullVersion"
|
||||
|
||||
# GENERIC: all python_setuptools-based installs need this
|
||||
python=$packageLinksDir/$python3PackageName/cmd~python$PYTHON3_VERSION/bin/python$PYTHON3_VERSION
|
||||
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
|
||||
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c4)
|
||||
installLocation=lib/python$pythonVersion/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$OLDPYTHONPATH
|
||||
|
||||
@@ -110,7 +110,7 @@ INSTALL()
|
||||
$python -m compileall -d / $prefix/lib/python$pythonVersion
|
||||
$python -O -m compileall -d / $prefix/lib/python$pythonVersion
|
||||
|
||||
packageEntries python39 \
|
||||
packageEntries python310 \
|
||||
$installLocation
|
||||
|
||||
rmdir $prefix/lib/python$pythonVersion
|
||||
|
||||
Reference in New Issue
Block a user