diff --git a/dev-python/pyqt/python3_pyqt-5.5.1.recipe b/dev-python/pyqt/python3_pyqt-5.5.1.recipe new file mode 100644 index 000000000..814f60140 --- /dev/null +++ b/dev-python/pyqt/python3_pyqt-5.5.1.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 Riverbank Computing Limited" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-$portVersion/PyQt-gpl-$portVersion.tar.gz" +CHECKSUM_SHA256="0a70ef94fbffcf674b0dde024aae2a2a7a3f5a8c42806109ff7df2c941bd8386" +SOURCE_DIR="PyQt-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} + " + +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 \ + #--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/pyqt-5.5.1.recipe b/dev-python/pyqt/python_pyqt-5.5.1.recipe similarity index 62% rename from dev-python/pyqt/pyqt-5.5.1.recipe rename to dev-python/pyqt/python_pyqt-5.5.1.recipe index 22e02c148..bd8208b49 100644 --- a/dev-python/pyqt/pyqt-5.5.1.recipe +++ b/dev-python/pyqt/python_pyqt-5.5.1.recipe @@ -6,7 +6,7 @@ HOMEPAGE="http://www.riverbankcomputing.com/software/pyqt/" COPYRIGHT="2015 Riverbank Computing Limited" LICENSE="GNU GPL v3" REVISION="1" -SOURCE_URI="http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.5.1/PyQt-gpl-$portVersion.tar.gz" +SOURCE_URI="http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-$portVersion/PyQt-gpl-$portVersion.tar.gz" CHECKSUM_SHA256="0a70ef94fbffcf674b0dde024aae2a2a7a3f5a8c42806109ff7df2c941bd8386" SOURCE_DIR="PyQt-gpl-$portVersion" @@ -14,7 +14,7 @@ ARCHITECTURES="x86 !x86_gcc2 x86_64" SECONDARY_ARCHITECTURES="x86" PROVIDES=" - pyqt${secondaryArchSuffix} = $portVersion + python_pyqt${secondaryArchSuffix} = $portVersion python_dateutil${secondaryArchSuffix} cmd:pylupdate5${secondaryArchSuffix} cmd:pyrcc5${secondaryArchSuffix} @@ -22,38 +22,36 @@ PROVIDES=" " REQUIRES=" haiku${secondaryArchSuffix} + python_sip lib:libqt5${secondaryArchSuffix} lib:libGL${secondaryArchSuffix} - cmd:sip - cmd:python - icu55${secondaryArchSuffix} + cmd:python2 " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel python_setuptools - qt5${secondaryArchSuffix}_devel - cmd:sip + python_sip + devel:libqt5${secondaryArchSuffix} devel:libGL${secondaryArchSuffix} - icu55${secondaryArchSuffix}_devel " BUILD_PREREQUIRES=" - cmd:python + cmd:python2 cmd:gcc${secondaryArchSuffix} cmd:make cmd:ld${secondaryArchSuffix} cmd:qmake${secondaryArchSuffix} " -# GENERIC: all python_setuptools-based installs need this -python=$portPackageLinksDir/cmd~python/bin/python -pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3) -installLocation=$prefix/lib/python$pythonVersion/vendor-packages/ -export PYTHONPATH=$installLocation:$PYTHONPATH - BUILD() { - $portPackageLinksDir/cmd~python/bin/python configure.py \ + # 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 \ @@ -69,6 +67,12 @@ BUILD() 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 }