mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 00:30:06 +02:00
sip: remove old recipe
This commit is contained in:
@@ -1,136 +0,0 @@
|
||||
SUMMARY="A tool to create Python bindings for C and C++ libraries"
|
||||
DESCRIPTION="SIP comprises a code generator and a Python module. The code generator \
|
||||
processes a set of specification files and generates C or C++ code which is \
|
||||
then compiled to create the bindings extension module. The SIP Python \
|
||||
module provides support functions to the automatically generated code."
|
||||
HOMEPAGE="https://www.riverbankcomputing.com/software/sip/"
|
||||
COPYRIGHT="2019 Riverbank Computing Limited"
|
||||
LICENSE="GNU GPL v2
|
||||
GNU GPL v3
|
||||
SIP"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://www.riverbankcomputing.com/static/Downloads/sip/$portVersion/sip-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="5436b61a78f48c7e8078e93a6b59453ad33780f80c644e5f3af39f94be1ede44"
|
||||
SOURCE_DIR="sip-$portVersion"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
if [ "$targetArchitecture" = "x86_gcc2" ]; then
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
fi
|
||||
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = "x86_gcc2" ]; then
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
sip$secondaryArchSuffix = $portVersion
|
||||
cmd:sip = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python python36 python3)
|
||||
PYTHON_VERSIONS=(2.7 3.6 3.7)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
maybe_sipNoSuffix=
|
||||
maybe_sipPyQtNoSuffix=
|
||||
if [ "$targetArchitecture" = "x86_gcc2" ]; then
|
||||
maybe_sipNoSuffix="sip_$pythonPackage = $portVersion"
|
||||
maybe_sipPyQtNoSuffix="sip_pyqt_$pythonPackage = $portVersion"
|
||||
fi
|
||||
|
||||
eval "
|
||||
PROVIDES_${pythonPackage}=\"
|
||||
sip${secondaryArchSuffix}_$pythonPackage = $portVersion
|
||||
$maybe_sipNoSuffix
|
||||
\"
|
||||
REQUIRES_$pythonPackage=\"
|
||||
haiku$secondaryArchSuffix
|
||||
cmd:python$pythonVersion
|
||||
\"
|
||||
PROVIDES_pyqt_${pythonPackage}=\"
|
||||
sip${secondaryArchSuffix}_pyqt_${pythonPackage} = $portVersion
|
||||
$maybe_sipPyQtNoSuffix
|
||||
\"
|
||||
REQUIRES_pyqt_${pythonPackage}=\"
|
||||
haiku$secondaryArchSuffix
|
||||
cmd:python$pythonVersion
|
||||
\"
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES+="
|
||||
cmd:python$pythonVersion
|
||||
"
|
||||
done
|
||||
|
||||
BUILD()
|
||||
{
|
||||
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 build_$pythonPackage build_pyqt_$pythonPackage
|
||||
cd build_$pythonPackage
|
||||
|
||||
$python ../configure.py \
|
||||
--platform=haiku-g++ \
|
||||
--bindir=$commandBinDir \
|
||||
--incdir=$includeDir \
|
||||
--destdir=$installLocation
|
||||
make $jobArgs
|
||||
|
||||
cd ../build_pyqt_$pythonPackage
|
||||
$python ../configure.py \
|
||||
--platform=haiku-g++ \
|
||||
--bindir=$commandBinDir \
|
||||
--incdir=$includeDir \
|
||||
--destdir=$installLocation \
|
||||
--sip-module PyQt5.sip \
|
||||
--no-tools
|
||||
make $jobArgs
|
||||
|
||||
cd ..
|
||||
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/
|
||||
|
||||
cd build_$pythonPackage
|
||||
make install
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
"$prefix/lib/$python"
|
||||
|
||||
cd ../build_pyqt_$pythonPackage
|
||||
make install
|
||||
|
||||
packageEntries pyqt_$pythonPackage \
|
||||
"$prefix/lib/$python"
|
||||
|
||||
cd ..
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user