mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 13:50:08 +02:00
pyqt5_sip: build for secondary arch
This commit is contained in:
@@ -6,26 +6,27 @@ 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"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://pypi.io/packages/source/P/PyQt5-sip/PyQt5_sip-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="30e944db9abee9cc757aea16906d4198129558533eb7fadbe48c5da2bd18e0bd"
|
||||
SOURCE_DIR="PyQt5_sip-$portVersion"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
pyqt5_sip = $portVersion
|
||||
pyqt5_sip$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python3 python38 python39)
|
||||
PYTHON_VERSIONS=(3.7 3.8 3.9)
|
||||
PYTHON_PACKAGES=(python38 python39)
|
||||
PYTHON_VERSIONS=(3.8 3.9)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
@@ -34,7 +35,7 @@ for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
\""
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
haiku
|
||||
haiku$secondaryArchSuffix
|
||||
cmd:python$pythonVersion
|
||||
\""
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
@@ -46,6 +47,15 @@ BUILD_PREREQUIRES+="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
"
|
||||
|
||||
if [ "$targetArchitecture" = "x86_gcc2" ]; then
|
||||
PROVIDES_python38+="
|
||||
pyqt5_sip_python38 = $portVersion
|
||||
"
|
||||
PROVIDES_python39+="
|
||||
pyqt5_sip_python39 = $portVersion
|
||||
"
|
||||
fi
|
||||
|
||||
BUILD()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
|
||||
Reference in New Issue
Block a user