]> git.friedersdorff.com Git - max/gentoo-overlay.git/commitdiff
dev-python/PyQtWebengine: Break out PyQtWebengine from PyQt5
authorMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 18 Mar 2019 10:09:36 +0000 (10:09 +0000)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 18 Mar 2019 10:09:36 +0000 (10:09 +0000)
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Manifest-Sign-Key: BA1CE947376048A4B3C4D4E50B3B880CF5E7FCB3

dev-python/PyQtWebEngine/Manifest [new file with mode: 0644]
dev-python/PyQtWebEngine/PyQtWebEngine-5.12.ebuild [new file with mode: 0644]
dev-python/PyQtWebEngine/metadata.xml [new file with mode: 0644]

diff --git a/dev-python/PyQtWebEngine/Manifest b/dev-python/PyQtWebEngine/Manifest
new file mode 100644 (file)
index 0000000..a7f9519
--- /dev/null
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST PyQtWebEngine_gpl-5.12.tar.gz 42122 BLAKE2B 1347d6befe30066056d8ca75caa01318a873336abcfc41a5d2cfcefe7565f8a5845d8a800a10d0c33de6ec17b91c581756bea905edfb035efc088f28028033f5 SHA512 09ed9ecd40370194889f7538dc65f775ca6523e5a113c5aa018ac782089da2203bce55a9b760430b1c7c04695905740aa48f9a9c41ffd8069b32956572d3bece
+EBUILD PyQtWebEngine-5.12.ebuild 2162 BLAKE2B fc94b14972e84f8fb51ebe36ef4e4ecf0e5938edaf0573ae0b9e4f71b96c89c07f0a4fc62039e987acca8ad6d917ad97100d3484f5315a493da4aeb3b2f02517 SHA512 37ac37125bbbadcc8fd1203f1f0d511267c940350945be32b6fae30e52cfb3b432aa8ac5ee7e42af64f9b66fa2b6e17a556673c8e09758979f97603e868d40d1
+MISC metadata.xml 685 BLAKE2B b7d7a911016b7ef197564747d4f0bae28a338a9e0ff6a31e20a68dd58bb2082dd8bd6a29100df88d6a967ead67b37706020fdf7b987ec9f334944a43fc5951bf SHA512 c6e29513792ddb34d2502ef44da59c8b77f0ea587a28f27bb4716880ecf2d77b349e38f1675c4ef3ae70ecd58bda4972096e229486f39bc4e6655d0f3833554a
+-----BEGIN PGP SIGNATURE-----
+
+iQEzBAEBCAAdFiEETdUSO77k6gzTbgmzTCaO99ou320FAlyPbl0ACgkQTCaO99ou
+323pKwf/TLtKUWZF97jUCwgD+gu5hBR+v8RjfkHWYO5J3/WFRHoE+tQ/BwLW40md
+R6IaypSTg/Dl4PjQ3pFtQetlqgze44QCB9gXO91CptD6z2PJXy1M1Xtd+I3+Jhqr
+tVg22Jupk9MxnfDQv6FNNBjfVn5q5gIDjxdrGQAyUq+sBsGjZnfo8sF456T+sQCF
+slW/HKKvvYIskVGqsQObQIOK/utPaCp7Vkk3fy3vPtexvjoELJ+8J8zsJa3Tw/Zv
+PBdfq5iT9DW7pQv9s2elkexqU1LH5gE1tWy4JuV014c3VZCicNNMRhsH3veJjt0G
+kR8SjqC5xkmBhjVCXkMUPXml2l6/Nw==
+=DmfN
+-----END PGP SIGNATURE-----
diff --git a/dev-python/PyQtWebEngine/PyQtWebEngine-5.12.ebuild b/dev-python/PyQtWebEngine/PyQtWebEngine-5.12.ebuild
new file mode 100644 (file)
index 0000000..ccb71ce
--- /dev/null
@@ -0,0 +1,97 @@
+# Copyright 1999-2019 Gentoo Authors
+# Copyright 2019 Maximilian Friedersdorff
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
+inherit multibuild python-r1 qmake-utils
+
+DESCRIPTION="Python bindings for the Qt framework"
+HOMEPAGE="https://www.riverbankcomputing.com/software/pyqtwebengine/intro"
+
+MY_P=${PN}_gpl-${PV/_pre/.dev}
+if [[ ${PV} == *_pre* ]]; then
+       SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz"
+else
+       SRC_URI="https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/PyQtWebEngine_gpl-${PV}.tar.gz"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+IUSE="debug examples widgets"
+
+# The requirements below were extracted from configure.py
+# and from the output of 'grep -r "%Import " "${S}"/sip'
+REQUIRED_USE="
+       ${PYTHON_REQUIRED_USE}
+"
+
+# Minimal supported version of Qt.
+QT_PV="5.10:5"
+
+RDEPEND="
+       ${PYTHON_DEPS}
+       >=dev-python/PyQt5-5.12_pre[widgets?]
+       >=dev-qt/qtwebengine-${QT_PV}[widgets?]
+       widgets? ( >=dev-qt/qtwidgets-${QT_PV} )
+"
+DEPEND="${RDEPEND}
+       >=dev-python/sip-4.19.14_pre[${PYTHON_USEDEP}]
+"
+
+S=${WORKDIR}/${MY_P}
+
+pyqt_use_enable() {
+       use "$1" || return
+
+       if [[ $# -eq 1 ]]; then
+               echo --enable=Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1}
+       else
+               shift
+               echo ${@/#/--enable=}
+       fi
+}
+
+src_configure() {
+       configuration() {
+               local myconf=(
+                       "${PYTHON}"
+                       "${S}"/configure.py
+                       $(usex debug '--debug --qml-debug --trace' '')
+                       --verbose
+                       --qmake="$(qt5_get_bindir)"/qmake
+                       --sip-incdir="$(python_get_includedir)"
+               )
+               echo "${myconf[@]}"
+               "${myconf[@]}" || die
+
+               eqmake5 -recursive ${PN}.pro
+       }
+       python_foreach_impl run_in_build_dir configuration
+}
+
+src_compile() {
+       python_foreach_impl run_in_build_dir default
+}
+
+src_install() {
+       installation() {
+               local tmp_root=${D}/${PN}_tmp_root
+               # parallel install fails (same issue as qscintilla-python-2.10.8)
+               emake -j1 INSTALL_ROOT="${tmp_root}" install
+
+               multibuild_merge_root "${tmp_root}" "${D}"
+               python_optimize
+       }
+       python_foreach_impl run_in_build_dir installation
+
+       einstalldocs
+
+       if use examples; then
+               insinto /usr/share/doc/${PF}
+               doins -r examples
+       fi
+}
diff --git a/dev-python/PyQtWebEngine/metadata.xml b/dev-python/PyQtWebEngine/metadata.xml
new file mode 100644 (file)
index 0000000..d1e06f1
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="project">
+               <email>max@friedersdorff.com</email>
+               <name>Maximilian Friedersdorff</name>
+       </maintainer>
+       <use>
+               <flag name="widgets">Build bindings for the QtWidgets module</flag>
+       </use>
+       <upstream>
+               <maintainer status="active">
+                       <email>phil@riverbankcomputing.com</email>
+                       <name>Phil Thompson</name>
+               </maintainer>
+               <bugs-to>mailto:pyqt@riverbankcomputing.com</bugs-to>
+               <doc>https://pyqt.readthedocs.io/</doc>
+               <remote-id type="pypi">PyQt5</remote-id>
+               <remote-id type="sourceforge">pyqt</remote-id>
+       </upstream>
+</pkgmetadata>