From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 739F9138350 for ; Wed, 26 Feb 2020 11:49:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8B235E090E; Wed, 26 Feb 2020 11:49:31 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 51247E090E for ; Wed, 26 Feb 2020 11:49:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C7E9E34F365 for ; Wed, 26 Feb 2020 11:49:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2049410B for ; Wed, 26 Feb 2020 11:49:27 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1582717551.2898c16869a5b5fc213e4bf40d9c89e7908efb18.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/PythonQt/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/PythonQt/PythonQt-3.2-r1.ebuild dev-python/PythonQt/metadata.xml X-VCS-Directories: dev-python/PythonQt/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 2898c16869a5b5fc213e4bf40d9c89e7908efb18 X-VCS-Branch: master Date: Wed, 26 Feb 2020 11:49:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ddfbc627-d99c-49fd-bba9-84d94ce1bc50 X-Archives-Hash: b429a3d0f4d765997751f87b115c6fba commit: 2898c16869a5b5fc213e4bf40d9c89e7908efb18 Author: Vladimir Pavljuchenkov (SpiderX) spiderx dp ua> AuthorDate: Sun Feb 16 21:11:52 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed Feb 26 11:45:51 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2898c168 dev-python/PythonQt: python3_7, EAPI 7, fix revdep, tests 1. add github reference in metadata 2. move to EAPI 7 3. add python3_7 4. add tests 5. add missed app-arch/unzip 6. don't build tests and examples 7. remove webkit USE flag Closes: https://bugs.gentoo.org/708700 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Vladimir Pavljuchenkov spiderx.dp.ua> Closes: https://github.com/gentoo/gentoo/pull/14680 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-python/PythonQt/PythonQt-3.2-r1.ebuild | 95 ++++++++++++++++++++++++++++++ dev-python/PythonQt/metadata.xml | 14 ++--- 2 files changed, 102 insertions(+), 7 deletions(-) diff --git a/dev-python/PythonQt/PythonQt-3.2-r1.ebuild b/dev-python/PythonQt/PythonQt-3.2-r1.ebuild new file mode 100644 index 00000000000..5ca6174c99f --- /dev/null +++ b/dev-python/PythonQt/PythonQt-3.2-r1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +MY_P=${PN}${PV} + +inherit qmake-utils python-single-r1 virtualx + +DESCRIPTION="A dynamic Python binding for the Qt framework" +HOMEPAGE="https://mevislab.github.io/pythonqt" +SRC_URI="mirror://sourceforge/pythonqt/pythonqt/${P}/${MY_P}.zip" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc examples +extensions test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +RDEPEND="${PYTHON_DEPS} + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + extensions? ( + dev-qt/designer:5 + dev-qt/qtdeclarative:5[widgets] + dev-qt/qtmultimedia:5[widgets] + dev-qt/qtnetwork:5 + dev-qt/qtopengl:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsql:5 + dev-qt/qtsvg:5 + dev-qt/qtxml:5 + dev-qt/qtxmlpatterns:5 )" +DEPEND="${RDEPEND} + dev-qt/qtxml:5" +BDEPEND="app-arch/unzip + virtual/pkgconfig + doc? ( app-doc/doxygen ) + test? ( dev-qt/qttest:5 )" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + + if ! use examples ; then + sed -i '/SUBDIRS/s/examples//' PythonQt.pro || die "sed for examples" + fi + if ! use extensions ; then + sed -i '/SUBDIRS/s/extensions//' PythonQt.pro || die "sed for extensions" + fi + if ! use test ; then + sed -i '/SUBDIRS/s/tests//' PythonQt.pro || die "sed for test" + fi + + # Remove webkit support + sed -i '/qtHaveModule(webkit):CONFIG += PythonQtWebKit/d' \ + extensions/PythonQt_QtAll/PythonQt_QtAll.pro \ + || die "sed for webkit" + + # Unset python version to use python-config + sed -i "/unix:PYTHON_VERSION=/s/2.7//" build/python.prf \ + || die "sed for python version" +} + +src_configure() { + eqmake5 CONFIG+="$(usex debug debug release '' '')" PREFIX="${ED}"/usr +} + +src_test() { + LD_PRELOAD="${S}"/lib/libPythonQt-Qt5-Python"$(usex debug _d '' '' '')".so.3 \ + virtx ./lib/PythonQtTest"$(usex debug _d '' '' '')" +} + +src_install() { + einstalldocs + + # Includes + insinto /usr/include/PythonQt + doins -r src/*.h + insinto /usr/include/PythonQt/gui + doins -r src/gui/*.h + + if use extensions ; then + insinto /usr/include/PythonQt/extensions/PythonQt_QtAll + doins -r extensions/PythonQt_QtAll/*.h + fi + + # Libraries + dolib.so lib/libPythonQt* +} diff --git a/dev-python/PythonQt/metadata.xml b/dev-python/PythonQt/metadata.xml index 1b4473ec008..32c82921dcc 100644 --- a/dev-python/PythonQt/metadata.xml +++ b/dev-python/PythonQt/metadata.xml @@ -9,18 +9,18 @@ proxy-maint@gentoo.org Proxy Maintainers - -PythonQt is a dynamic Python binding for the Qt framework. -It offers an easy way to embed the Python scripting language into your C++ Qt applications. -The focus of PythonQt is on embedding Python into an existing C++ application, -not on writing the whole application completely in Python. + + PythonQt is a dynamic Python binding for the Qt framework. + It offers an easy way to embed the Python scripting language into + your C++ Qt applications. The focus of PythonQt is on embedding Python + into an existing C++ application, not on writing the whole application + completely in Python. Install extensions - https://sourceforge.net/p/pythonqt/news/ - http://pythonqt.sourceforge.net/index.html + MeVisLab/pythonqt pythonqt