Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev-python/PyQtWebEngine: new package #11432

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions dev-python/PyQtWebEngine/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST PyQtWebEngine_gpl-5.12.1.tar.gz 42474 BLAKE2B 6cb333d8e429ae6b9f8c20a7486754767639693351605e85c0226ab3f1f065a549d40d69669d91f501fdf2c30346304a547e36b416d275a8bfe4ea621c0633b7 SHA512 2bcb0e4da51de9cfb5128e03c03ada77f2d4b99b0885da910584717681b96759ce4301c325cbbf43602d46746e2d37d81ed62f77dd63b33359fd5fae74d7f010
66 changes: 66 additions & 0 deletions dev-python/PyQtWebEngine/PyQtWebEngine-5.12.1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
inherit python-r1 qmake-utils

DESCRIPTION="Python bindings for Qt WebEngine framework"
HOMEPAGE="https://www.riverbankcomputing.com/software/pyqtwebengine/intro"

MY_P=${PN}_gpl-${PV/_pre/.dev}
SRC_URI="https://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug"

RDEPEND="${PYTHON_DEPS}
>=dev-python/PyQt5-5.12.1[${PYTHON_USEDEP},widgets]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When webengine was part of PyQt5, other modules were needed, namely network, printsupport, and webchannel. Are those not required anymore?

>=dev-python/PyQt5-sip-4.19.14:=[${PYTHON_USEDEP}]
>=dev-qt/qtwebengine-5.12[widgets]"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure about this >=5.12 dep?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I am not sure. But I did not test it with Qt-5.{10,11}. Should it be tested before commiting this ebuild?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need

DEPEND="${RDEPEND}
>=dev-python/sip-4.19.14[${PYTHON_USEDEP}]"
BDEPEND=""

S="${WORKDIR}/${MY_P}"

src_prepare() {
default
python_copy_sources
Copy link
Contributor

@Pesa Pesa Apr 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configuration() does an out-of-source build, so why are you copying the sources here?

}

src_configure() {
configuration() {
local myconf=(
"${PYTHON}"
"${S}"/configure.py
$(usex debug '--debug --trace' '')
--destdir="$(python_get_sitedir)"/PyQt5
--qmake="$(qt5_get_bindir)"/qmake
--sip-incdir="$(python_get_includedir)"
--verbose
)
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() {
# Parallel install fails
emake -j1 INSTALL_ROOT="${D}" install
python_optimize
}
python_foreach_impl run_in_build_dir installation
einstalldocs
}
32 changes: 32 additions & 0 deletions dev-python/PyQtWebEngine/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>qt@gentoo.org</email>
<name>Gentoo Qt Project</name>
</maintainer>
<maintainer type="person">
<email>stefan.strogin@gmail.com</email>
<name>Stefan Strogin</name>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<longdescription lang="en">
PyQtWebEngine is a set of Python bindings for The Qt Company's
Qt WebEngine libraries. The bindings sit on top of PyQt5 and
are implemented as a set of three modules. Prior to v5.12 these
bindings were part of PyQt itself.
</longdescription>
<upstream>
<maintainer status="active">
<email>phil@riverbankcomputing.com</email>
<name>Phil Thompson</name>
</maintainer>
<changelog>https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/ChangeLog</changelog>
<doc>https://www.riverbankcomputing.com/static/Docs/PyQt5/</doc>
<bugs-to>mailto:pyqt@riverbankcomputing.com</bugs-to>
<remote-id type="pypi">PyQtWebEngine</remote-id>
</upstream>
</pkgmetadata>