1 # Copyright 1999-2019 Gentoo Authors
2 # Copyright 2019 Maximilian Friedersdorff
3 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
8 inherit multibuild python-r1 qmake-utils
10 DESCRIPTION="Python bindings for the Qt framework"
11 HOMEPAGE="https://www.riverbankcomputing.com/software/pyqtwebengine/intro"
13 MY_P=${PN}_gpl-${PV/_pre/.dev}
14 if [[ ${PV} == *_pre* ]]; then
15 SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz"
17 SRC_URI="https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/${PV}/PyQtWebEngine_gpl-${PV}.tar.gz"
22 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
24 IUSE="debug examples widgets"
26 # The requirements below were extracted from configure.py
27 # and from the output of 'grep -r "%Import " "${S}"/sip'
29 ${PYTHON_REQUIRED_USE}
32 # Minimal supported version of Qt.
37 >=dev-python/PyQt5-5.12_pre[widgets?]
38 >=dev-qt/qtwebengine-${QT_PV}[widgets?]
39 widgets? ( >=dev-qt/qtwidgets-${QT_PV} )
42 >=dev-python/sip-4.19.14_pre[${PYTHON_USEDEP}]
50 if [[ $# -eq 1 ]]; then
51 echo --enable=Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1}
63 $(usex debug '--debug --qml-debug --trace' '')
65 --qmake="$(qt5_get_bindir)"/qmake
66 --sip-incdir="$(python_get_includedir)"
71 eqmake5 -recursive ${PN}.pro
73 python_foreach_impl run_in_build_dir configuration
77 python_foreach_impl run_in_build_dir default
82 local tmp_root=${D}/${PN}_tmp_root
83 # parallel install fails (same issue as qscintilla-python-2.10.8)
84 emake -j1 INSTALL_ROOT="${tmp_root}" install
86 multibuild_merge_root "${tmp_root}" "${D}"
89 python_foreach_impl run_in_build_dir installation
94 insinto /usr/share/doc/${PF}