diff --git a/dev-python/sip/patches/sip-4.18.patch b/dev-python/sip/patches/sip-4.19.1.patch similarity index 100% rename from dev-python/sip/patches/sip-4.18.patch rename to dev-python/sip/patches/sip-4.19.1.patch diff --git a/dev-python/sip/python3_sip-4.18.recipe b/dev-python/sip/python3_sip-4.18.recipe deleted file mode 100644 index 27fbc7544..000000000 --- a/dev-python/sip/python3_sip-4.18.recipe +++ /dev/null @@ -1,50 +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="2015 Riverbank Computing Limited" -LICENSE="GNU GPL v3" -REVISION="1" -SOURCE_URI="http://sourceforge.net/projects/pyqt/files/sip/sip-$portVersion/sip-$portVersion.tar.gz" -CHECKSUM_SHA256="f1dc5c81c07a9ad97edcd4a0af964a41e420024ba7ca165afd2b351efd249cb6" -SOURCE_DIR="sip-$portVersion" -PATCHES="sip-$portVersion.patch" - -ARCHITECTURES="x86 x86_gcc2 x86_64" - -PROVIDES=" - python3_sip = $portVersion - cmd:sip = $portVersion - " -REQUIRES=" - haiku - cmd:python3 - " - -BUILD_REQUIRES=" - haiku_devel - " -BUILD_PREREQUIRES=" - cmd:python3 - cmd:gcc - cmd:make - " - -BUILD() -{ - $portPackageLinksDir/cmd~python3/bin/python3 configure.py \ - --platform=haiku-g++ \ - --bindir=$binDir \ - --incdir=$includeDir/python3.5m \ - --destdir=$libDir/python3.5/vendor-packages \ - #--sipdir= \ - - make $jobArgs -} - -INSTALL() -{ - make install -} diff --git a/dev-python/sip/python_sip-4.18.recipe b/dev-python/sip/python_sip-4.18.recipe deleted file mode 100644 index c79929a7e..000000000 --- a/dev-python/sip/python_sip-4.18.recipe +++ /dev/null @@ -1,50 +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="2015 Riverbank Computing Limited" -LICENSE="GNU GPL v3" -REVISION="1" -SOURCE_URI="http://sourceforge.net/projects/pyqt/files/sip/sip-$portVersion/sip-$portVersion.tar.gz" -CHECKSUM_SHA256="f1dc5c81c07a9ad97edcd4a0af964a41e420024ba7ca165afd2b351efd249cb6" -SOURCE_DIR="sip-$portVersion" -PATCHES="sip-$portVersion.patch" - -ARCHITECTURES="x86 x86_gcc2 x86_64" - -PROVIDES=" - python_sip = $portVersion - cmd:sip = $portVersion - " -REQUIRES=" - haiku - cmd:python2 - " - -BUILD_REQUIRES=" - haiku_devel - " -BUILD_PREREQUIRES=" - cmd:python2 - cmd:gcc - cmd:make - " - -BUILD() -{ - $portPackageLinksDir/cmd~python2/bin/python2 configure.py \ - --platform=haiku-g++ \ - --bindir=$binDir \ - --incdir=$includeDir/python2.7 \ - --destdir=$libDir/python2.7/vendor-packages \ - #--sipdir= \ - - make $jobArgs -} - -INSTALL() -{ - make install -} diff --git a/dev-python/sip/sip-4.19.1.recipe b/dev-python/sip/sip-4.19.1.recipe new file mode 100644 index 000000000..5738cf04a --- /dev/null +++ b/dev-python/sip/sip-4.19.1.recipe @@ -0,0 +1,113 @@ +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="2015 Riverbank Computing Limited" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="http://sourceforge.net/projects/pyqt/files/sip/sip-$portVersion/sip-$portVersion.tar.gz" +CHECKSUM_SHA256="501852b8325349031b769d1c03d6eab04f7b9b97f790ec79f3d3d04bf065d83e" +SOURCE_DIR="sip-$portVersion" +PATCHES="sip-$portVersion.patch" + +ARCHITECTURES="x86 x86_gcc2 x86_64" + +PROVIDES=" + sip = $portVersion + " +REQUIRES=" + " + +PROVIDES_python=" + sip_python = $portVersion + cmd:python2_sip = $portVersion + " +REQUIRES_python=" + haiku + cmd:python2 + " +REPLACES_python=" + python_sip + " +PROVIDES_python3=" + sip_python3 = $portVersion + cmd:sip = $portVersion + " +REQUIRES_python3=" + haiku + cmd:python3 + " +REPLACES_python3=" + python3_sip + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:python2 + cmd:python3 + cmd:gcc + cmd:make + " + +BUILD() +{ + OLDPYTHONPATH=$PYTHONPATH + mkdir -p build && cd build + + # GENERIC: all python_setuptools-based installs need this + python=$portPackageLinksDir/cmd~python2/bin/python2 + pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3) + installLocation=$prefix/lib/python$pythonVersion/vendor-packages/ + export PYTHONPATH=$installLocation:$OLDPYTHONPATH + + $python ../configure.py \ + --platform=haiku-g++ \ + --bindir=$binDir \ + --incdir=$includeDir/python2.7 \ + --destdir=$installLocation \ + #--sipdir= \ + + make $jobArgs + + mkdir -p ../build3 && cd ../build3 + + # GENERIC: all python_setuptools-based installs need this + python=$portPackageLinksDir/cmd~python3/bin/python3 + pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3) + installLocation=$prefix/lib/python$pythonVersion/vendor-packages/ + export PYTHONPATH=$installLocation:$OLDPYTHONPATH + + $python ../configure.py \ + --platform=haiku-g++ \ + --bindir=$binDir \ + --incdir=$includeDir/python${pythonVersion}m \ + --destdir=$installLocation \ + #--sipdir= \ + + make $jobArgs +} + +INSTALL() +{ + cd build + make install + + mv $binDir/sip $binDir/python2-sip + + packageEntries python \ + $prefix/lib/python* \ + $binDir \ + $developDir + + cd ../build3 + make install + + packageEntries python3 \ + $prefix/lib/python* \ + $binDir \ + $developDir +}