Files
haikuports/dev-python/pyqt/pyqt-5.5.1.recipe
Zoltán Mizsei 1dc3007d26 PyQt5 Initial Recipe
new file:   pyqt/pyqt-5.5.1.recipe

	modified:   pyqt/pyqt-5.5.1.recipe

	modified:   pyqt/pyqt-5.5.1.recipe

Changes here and there (libgl and icu)

	modified:   dev-python/pyqt/pyqt-5.5.1.recipe

Python general section moved into highest level.

Secondary suffixes for icu.
2016-03-04 18:15:53 +01:00

75 lines
2.0 KiB
Bash

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-5.5.1/PyQt-gpl-$portVersion.tar.gz"
CHECKSUM_SHA256="0a70ef94fbffcf674b0dde024aae2a2a7a3f5a8c42806109ff7df2c941bd8386"
SOURCE_DIR="PyQt-gpl-$portVersion"
ARCHITECTURES="x86 !x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
pyqt${secondaryArchSuffix} = $portVersion
python_dateutil${secondaryArchSuffix}
cmd:pylupdate5${secondaryArchSuffix}
cmd:pyrcc5${secondaryArchSuffix}
cmd:pyuic5${secondaryArchSuffix}
"
REQUIRES="
haiku${secondaryArchSuffix}
lib:libqt5${secondaryArchSuffix}
lib:libGL${secondaryArchSuffix}
cmd:sip
cmd:python
icu55${secondaryArchSuffix}
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
python_setuptools
qt5${secondaryArchSuffix}_devel
cmd:sip
devel:libGL${secondaryArchSuffix}
icu55${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:python
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 \
--confirm-license \
--no-designer-plugin \
--no-qml-plugin \
--bindir=$binDir \
--destdir=$installLocation \
--sipdir=$dataDir \
--sip=$portPackageLinksDir/cmd~sip/bin/sip \
#--verbose \
#--sipdir=
make $jobArgs
}
INSTALL()
{
mkdir -p $installLocation
make install
}