<commit_before>DESCRIPTION = "Python Qt4 Bindings"
HOMEPAGE = "http://riverbankcomputing.co.uk"
AUTHOR = "<NAME> @ <EMAIL>"
SECTION = "devel/python"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "sip-native python-sip"
RDEPENDS = "python-core"
SRCNAME = "pyqt"
PR = "ml4"

PYQT_OE_VERSION = "Qt_4_4_1"

SRC_URI = "\
  http://cvs.fedora.redhat.com/repo/pkgs/PyQt4/PyQt-x11-gpl-4.4.3.tar.gz/89e84c36a8520bf8b3a8a2b20e765154/PyQt-x11-gpl-4.4.3.tar.gz \
  file://cross-compile.patch;patch=1 \
  file://01_configure.dpatch;patch=1 \
  file://02_htmllinks.dpatch;patch=1 \
  file://03_qreal.dpatch;patch=1 \
  file://04_qreal_api_fixes-for-4.4.3.dpatch;patch=1 \
  \
  file://assistantclient-fix.patch;patch=1 \
"
S = "${WORKDIR}/PyQt-x11-gpl-${PV}"

inherit qt4x11 sip distutils-base

PARALLEL_MAKE = ""

QMAKE_PROFILES = "pyqt.pro"
# NOTE: match with qt version we have in OE
EXTRA_SIPTAGS = "-tWS_X11 -t${PYQT_OE_VERSION} -xVendorID -xPyQt_SessionManager -xPyQt_Accessibility"
EXTRA_OEMAKE = " MAKEFLAGS= "
<commit_msg>python-pyqt: only apply patches for qreal on arm/mips machines<commit_after>DESCRIPTION = "Python Qt4 Bindings"
HOMEPAGE = "http://riverbankcomputing.co.uk"
AUTHOR = "<NAME> @ <EMAIL>"
SECTION = "devel/python"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "sip-native python-sip"
RDEPENDS = "python-core"
SRCNAME = "pyqt"
PR = "ml5"

PYQT_OE_VERSION = "Qt_4_4_1"

SRC_URI = "\
  http://cvs.fedora.redhat.com/repo/pkgs/PyQt4/PyQt-x11-gpl-4.4.3.tar.gz/89e84c36a8520bf8b3a8a2b20e765154/PyQt-x11-gpl-4.4.3.tar.gz \
  file://cross-compile.patch;patch=1 \
  file://01_configure.dpatch;patch=1 \
  file://02_htmllinks.dpatch;patch=1 \
  \
  file://assistantclient-fix.patch;patch=1 \
"
S = "${WORKDIR}/PyQt-x11-gpl-${PV}"

# arm and mips machines need some extra patches

SRC_URI_append_arm = "\
  file://03_qreal.dpatch;patch=1 \
  file://04_qreal_api_fixes-for-4.4.3.dpatch;patch=1"

SRC_URI_append_mipsel = "\
  file://03_qreal.dpatch;patch=1 \
  file://04_qreal_api_fixes-for-4.4.3.dpatch;patch=1"

inherit qt4x11 sip distutils-base

PARALLEL_MAKE = ""

QMAKE_PROFILES = "pyqt.pro"
# NOTE: match with qt version we have in OE
EXTRA_SIPTAGS = "-tWS_X11 -t${PYQT_OE_VERSION} -xVendorID -xPyQt_SessionManager -xPyQt_Accessibility"
EXTRA_OEMAKE = " MAKEFLAGS= "

{'fraction_non_alphanumeric': 0.16, 'fraction_numerical': 0.05846153846153846, 'mean_word_length': 4.330210772833723, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1540065', 'n_tokens_mistral': 1086, 'n_tokens_neox': 1027, 'n_words': 140}