commit:     3505313b1bc80620f331af7d76f8c23eb76a32a3
Author:     Chris Pritchard <chris <AT> christopherpritchard <DOT> co <DOT> uk>
AuthorDate: Sun Aug 15 07:35:32 2021 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Sun Aug 15 07:46:23 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3505313b

dev-python/PyQtWebEngine: add 5.15.5_pre2108100905, EAPI 8

Switch build system to sip-build

Bug: https://bugs.gentoo.org/805965
Closes: https://github.com/gentoo/gentoo/pull/21854
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Chris Pritchard <chris <AT> christopherpritchard.co.uk>
Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org>

 dev-python/PyQtWebEngine/Manifest                  |  1 +
 .../PyQtWebEngine-5.15.5_pre2108100905.ebuild      | 76 ++++++++++++++++++++++
 profiles/package.mask                              |  1 +
 3 files changed, 78 insertions(+)

diff --git a/dev-python/PyQtWebEngine/Manifest 
b/dev-python/PyQtWebEngine/Manifest
index e8c22cbea35..3c7ba7fdf37 100644
--- a/dev-python/PyQtWebEngine/Manifest
+++ b/dev-python/PyQtWebEngine/Manifest
@@ -1,2 +1,3 @@
 DIST PyQtWebEngine-5.15.2.tar.gz 48608 BLAKE2B 
a03f77b0cde0d1031e8f1c4c6b5d13a342c28cf814ebaaf4a2cdb4608ce40cdd8163783932abc76cda583c0fed7191653b537598a9ab65f6509ef88008538e31
 SHA512 
7e6d95833b1a9e5bb5275eff01e1923419da35d13862fc4cbb231cbf950ed45e628bc7e161b0b6b66c718ee439a1a8e66dd754cee9adcdf69ab1b8ffab58901e
 DIST PyQtWebEngine-5.15.4.tar.gz 49022 BLAKE2B 
0ac0b3424f22aabbfd733f2a876e502f133c81f639fbd87a4c7509865635b29d4bd3596ccc151b0919a28eff0015913c4fae1a831dbe774fe2d2aeee732e469b
 SHA512 
25cf8578ffae8adbc1dd8d914921b4edf91f19fcf983c9c83c9c8934b4e918ba27bd34a6b9c8252773ec32e6f1f13a06f22cf7d7326a5aceaa91530ea4ee047e
+DIST PyQtWebEngine-5.15.5.dev2108100905.tar.gz 49043 BLAKE2B 
01b75db0d9fa973ccd0a85f9336e16b7c1fb2a303a0d004d247f91744dc642edb836597877fce6c4f038afa6f87ba066eeaca1e3d467bc15689dbe82e8a9809e
 SHA512 
1ea407832f062dc9b9a6c6312feb4c8f3553b55972e5a32c70c9d1c278918d32934791d60c022a56ab507b6215d5f78e1b4244b9fffa3256aad1f5f4afebd47a

diff --git a/dev-python/PyQtWebEngine/PyQtWebEngine-5.15.5_pre2108100905.ebuild 
b/dev-python/PyQtWebEngine/PyQtWebEngine-5.15.5_pre2108100905.ebuild
new file mode 100644
index 00000000000..ab576366582
--- /dev/null
+++ b/dev-python/PyQtWebEngine/PyQtWebEngine-5.15.5_pre2108100905.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+inherit python-r1 qmake-utils
+
+DESCRIPTION="Python bindings for QtWebEngine"
+HOMEPAGE="https://www.riverbankcomputing.com/software/pyqtwebengine/ 
https://pypi.org/project/PyQtWebEngine/";
+
+MY_P=${PN}-${PV/_pre/.dev}
+if [[ ${PV} == *_pre* ]]; then
+       SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz";
+else
+       SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+fi
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="debug"
+
+REQUIRED_USE="
+       ${PYTHON_REQUIRED_USE}
+"
+
+DEPEND="${PYTHON_DEPS}
+       
>=dev-python/PyQt5-5.15.5_pre2107091435[gui,network,printsupport,webchannel,widgets,${PYTHON_USEDEP}]
+       dev-qt/qtcore:5
+       dev-qt/qtgui:5
+       dev-qt/qtwebengine:5[widgets]
+"
+RDEPEND="${DEPEND}
+       >=dev-python/PyQt5-sip-12.9:=[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       >=dev-python/PyQt-builder-1.10[${PYTHON_USEDEP}]
+       >=dev-python/sip-6.2.0_pre2106291255[${PYTHON_USEDEP}]
+       dev-qt/qtcore:5
+"
+
+src_configure() {
+       configuration() {
+               local myconf=(
+                       sip-build
+                       --verbose
+                       --build-dir="${BUILD_DIR}"
+                       --scripts-dir="$(python_get_scriptdir)"
+                       --qmake="$(qt5_get_bindir)"/qmake
+                       --no-make
+                       $(usev debug '--debug --qml-debug --tracing')
+               )
+               echo "${myconf[@]}"
+               "${myconf[@]}" || die
+
+               # Run eqmake to respect toolchain and build flags
+               run_in_build_dir eqmake5 -recursive ${PN}.pro
+       }
+       python_foreach_impl configuration
+}
+
+src_compile() {
+       python_foreach_impl run_in_build_dir default
+}
+
+src_install() {
+       installation() {
+               emake INSTALL_ROOT="${D}" install
+               python_optimize
+       }
+       python_foreach_impl run_in_build_dir installation
+
+       einstalldocs
+}

diff --git a/profiles/package.mask b/profiles/package.mask
index 4c13256bfe7..99eb485b04d 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -462,6 +462,7 @@ sys-libs/db:5.1
 # Masked for revdep testing.
 >=dev-python/sip-6
 >=dev-python/PyQt5-5.15.5_pre
+>=dev-python/PyQtWebEngine-5.15.5_pre
 >=dev-python/qscintilla-python-2.13
 
 # Sam James <[email protected]> (2021-06-12)

Reply via email to