From abb5311e64b67aa4c88cbd86538edaca9368a6c0 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Thu, 26 Jan 2017 21:34:22 +0100 Subject: [PATCH] pyqt: add recipes for version 5.6. --- dev-python/pyqt/python3_pyqt-5.6.recipe | 79 +++++++++++++++++++++++++ dev-python/pyqt/python_pyqt-5.6.recipe | 78 ++++++++++++++++++++++++ 2 files changed, 157 insertions(+) create mode 100644 dev-python/pyqt/python3_pyqt-5.6.recipe create mode 100644 dev-python/pyqt/python_pyqt-5.6.recipe diff --git a/dev-python/pyqt/python3_pyqt-5.6.recipe b/dev-python/pyqt/python3_pyqt-5.6.recipe new file mode 100644 index 000000000..506882fc4 --- /dev/null +++ b/dev-python/pyqt/python3_pyqt-5.6.recipe @@ -0,0 +1,79 @@ +SUMMARY="Python v2 and v3 bindings for Qt application framework" +DESCRIPTION="PyQt combines all the advantages of Qt and Python. A programmer \ +has all the power of Qt, but is able to exploit it with the \ +simplicity of Python." +HOMEPAGE="http://www.riverbankcomputing.com/software/pyqt/" +COPYRIGHT="2015-2016 Riverbank Computing Limited" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="https://downloads.sourceforge.net/project/pyqt/PyQt5/PyQt-$portVersion/PyQt5_gpl-$portVersion.tar.gz" +CHECKSUM_SHA256="2e481a6c4c41b96ed3b33449e5f9599987c63a5c8db93313bd57a6acbf20f0e1" +SOURCE_DIR="PyQt5_gpl-$portVersion" + +ARCHITECTURES="x86 !x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + python3_pyqt${secondaryArchSuffix} = $portVersion + python3_dateutil${secondaryArchSuffix} + cmd:pylupdate5${secondaryArchSuffix} + cmd:pyrcc5${secondaryArchSuffix} + cmd:pyuic5${secondaryArchSuffix} + " +REQUIRES=" + haiku${secondaryArchSuffix} + lib:libqt5${secondaryArchSuffix} + lib:libGL${secondaryArchSuffix} + python3_sip + cmd:python3 + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + python3_setuptools + python3_sip + devel:libqt5${secondaryArchSuffix} + devel:libGL${secondaryArchSuffix} + " +BUILD_PREREQUIRES=" + cmd:python3 + cmd:gcc${secondaryArchSuffix} + cmd:make + cmd:ld${secondaryArchSuffix} + cmd:qmake${secondaryArchSuffix} >= 5 + " + +BUILD() +{ + # 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:$PYTHONPATH + + $portPackageLinksDir/cmd~python3/bin/python3 configure.py \ + --confirm-license \ + --no-designer-plugin \ + --no-qml-plugin \ + --bindir=$binDir \ + --destdir=$installLocation \ + --sipdir=$dataDir \ + --sip=$portPackageLinksDir/python3_sip/bin/sip \ + --stubsdir=$installLocation/PyQt5 \ + #--verbose \ + #--sipdir= + + make $jobArgs +} + +INSTALL() +{ + # 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:$PYTHONPATH + + mkdir -p $installLocation + make install +} diff --git a/dev-python/pyqt/python_pyqt-5.6.recipe b/dev-python/pyqt/python_pyqt-5.6.recipe new file mode 100644 index 000000000..b9b7b2601 --- /dev/null +++ b/dev-python/pyqt/python_pyqt-5.6.recipe @@ -0,0 +1,78 @@ +SUMMARY="Python v2 and v3 bindings for Qt application framework" +DESCRIPTION="PyQt combines all the advantages of Qt and Python. A programmer \ +has all the power of Qt, but is able to exploit it with the \ +simplicity of Python." +HOMEPAGE="http://www.riverbankcomputing.com/software/pyqt/" +COPYRIGHT="2015-2016 Riverbank Computing Limited" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="https://downloads.sourceforge.net/project/pyqt/PyQt5/PyQt-$portVersion/PyQt5_gpl-$portVersion.tar.gz" +CHECKSUM_SHA256="2e481a6c4c41b96ed3b33449e5f9599987c63a5c8db93313bd57a6acbf20f0e1" +SOURCE_DIR="PyQt5_gpl-$portVersion" + +ARCHITECTURES="x86 !x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + python_pyqt${secondaryArchSuffix} = $portVersion + python_dateutil${secondaryArchSuffix} + cmd:pylupdate5${secondaryArchSuffix} + cmd:pyrcc5${secondaryArchSuffix} + cmd:pyuic5${secondaryArchSuffix} + " +REQUIRES=" + haiku${secondaryArchSuffix} + python_sip + lib:libqt5${secondaryArchSuffix} + lib:libGL${secondaryArchSuffix} + cmd:python2 + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + python_setuptools + python_sip + devel:libqt5${secondaryArchSuffix} + devel:libGL${secondaryArchSuffix} + " +BUILD_PREREQUIRES=" + cmd:python2 + cmd:gcc${secondaryArchSuffix} + cmd:make + cmd:ld${secondaryArchSuffix} + cmd:qmake${secondaryArchSuffix} >= 5 + " + +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:$PYTHONPATH + + $portPackageLinksDir/cmd~python2/bin/python2 configure.py \ + --confirm-license \ + --no-designer-plugin \ + --no-qml-plugin \ + --bindir=$binDir \ + --destdir=$installLocation \ + --sipdir=$dataDir \ + --sip=$portPackageLinksDir/python_sip/bin/sip \ + #--verbose \ + #--sipdir= + + make $jobArgs +} + +INSTALL() +{ + # 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:$PYTHONPATH + + mkdir -p $installLocation + make install +}