mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
pyqt_builder: bump version
This commit is contained in:
96
dev-python/pyqt_builder/pyqt_builder-1.16.4.recipe
Normal file
96
dev-python/pyqt_builder/pyqt_builder-1.16.4.recipe
Normal file
@@ -0,0 +1,96 @@
|
||||
SUMMARY="The PEP 517 Compliant PyQt Build System"
|
||||
DESCRIPTION="PyQt-builder is the PEP 517 compliant build system for PyQt and projects that \
|
||||
extend PyQt. It extends the sip build system and uses Qt's 'qmake' to perform the actual \
|
||||
compilation and installation of extension modules."
|
||||
HOMEPAGE="https://www.riverbankcomputing.com/software/pyqt/"
|
||||
COPYRIGHT="2020 Riverbank Computing Limited"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pypi.io/packages/source/P/PyQt-builder/pyqt_builder-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="4515e41ae379be2e54f88a89ecf47cd6e4cac43e862c4abfde18389c2666afdf"
|
||||
SOURCE_DIR="pyqt_builder-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
pyqt_builder = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python39 python310)
|
||||
PYTHON_VERSIONS=(3.9 3.10)
|
||||
defaultVersion=3.10
|
||||
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
eval "PROVIDES_$pythonPackage=\"
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
cmd:pyqt_bundle_$pythonVersion
|
||||
cmd:pyqt_qt_wheel_$pythonVersion
|
||||
\""
|
||||
|
||||
if [ $pythonVersion = $defaultVersion ]; then
|
||||
eval "PROVIDES_$pythonPackage+=\"
|
||||
cmd:pyqt_bundle
|
||||
cmd:pyqt_qt_wheel
|
||||
\""
|
||||
fi
|
||||
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
haiku
|
||||
sip_$pythonPackage
|
||||
cmd:python$pythonVersion
|
||||
\""
|
||||
BUILD_REQUIRES+="
|
||||
build_$pythonPackage
|
||||
installer_$pythonPackage
|
||||
setuptools_$pythonPackage
|
||||
wheel_$pythonPackage
|
||||
"
|
||||
BUILD_PREREQUIRES+="
|
||||
cmd:python$pythonVersion
|
||||
"
|
||||
done
|
||||
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
python=python$pythonVersion
|
||||
installLocation=$prefix/lib/$python/vendor-packages/
|
||||
export PYTHONPATH=$installLocation
|
||||
|
||||
mkdir -p $installLocation
|
||||
rm -rf build
|
||||
|
||||
$python -m build --wheel --skip-dependency-check --no-isolation
|
||||
$python -m installer --p $prefix dist/*.whl
|
||||
|
||||
# Version suffix all the scripts
|
||||
for f in $binDir/*; do
|
||||
mv $f $f-$pythonVersion
|
||||
done
|
||||
|
||||
# And provide suffix-less symlinks for the default version
|
||||
if [ $pythonVersion = $defaultVersion ]; then
|
||||
for f in $binDir/*; do
|
||||
ln -sr $f ${f%-$pythonVersion}
|
||||
done
|
||||
fi
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python* \
|
||||
$binDir
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user