Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/PythonQt/
Date: Wed, 26 Feb 2020 11:49:32
Message-Id: 1582717551.46d54cd7fa079d1f188f626a94896180eea73f89.asturm@gentoo
1 commit: 46d54cd7fa079d1f188f626a94896180eea73f89
2 Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua>
3 AuthorDate: Mon Feb 17 18:59:12 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 26 11:45:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46d54cd7
7
8 dev-python/PythonQt: update live ebuild
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Vladimir Pavljuchenkov <spiderx <AT> spiderx.dp.ua>
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 dev-python/PythonQt/PythonQt-9999.ebuild | 52 ++++++++++++++++++--------------
15 1 file changed, 29 insertions(+), 23 deletions(-)
16
17 diff --git a/dev-python/PythonQt/PythonQt-9999.ebuild b/dev-python/PythonQt/PythonQt-9999.ebuild
18 index e142455bfc0..8554b891806 100644
19 --- a/dev-python/PythonQt/PythonQt-9999.ebuild
20 +++ b/dev-python/PythonQt/PythonQt-9999.ebuild
21 @@ -1,23 +1,23 @@
22 # Copyright 1999-2020 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI=6
26 +EAPI=7
27
28 -PYTHON_COMPAT=( python3_6 )
29 +PYTHON_COMPAT=( python3_{6,7} )
30 +EGIT_REPO_URI="https://github.com/MeVisLab/pythonqt.git"
31
32 -MY_P=${PN}${PV}
33 -
34 -inherit qmake-utils python-single-r1 subversion
35 +inherit git-r3 qmake-utils python-single-r1 virtualx
36
37 DESCRIPTION="A dynamic Python binding for the Qt framework"
38 -HOMEPAGE="http://pythonqt.sourceforge.net/"
39 +HOMEPAGE="https://mevislab.github.io/pythonqt"
40 SRC_URI=""
41 -ESVN_REPO_URI="https://pythonqt.svn.sourceforge.net/svnroot/pythonqt/trunk"
42
43 LICENSE="LGPL-2.1"
44 SLOT="0"
45 KEYWORDS=""
46 -IUSE="doc +extensions webkit"
47 +IUSE="debug doc examples +extensions test"
48 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
49 +RESTRICT="!test? ( test )"
50
51 RDEPEND="${PYTHON_DEPS}
52 dev-qt/qtcore:5
53 @@ -33,38 +33,44 @@ RDEPEND="${PYTHON_DEPS}
54 dev-qt/qtsql:5
55 dev-qt/qtsvg:5
56 dev-qt/qtxml:5
57 - dev-qt/qtxmlpatterns:5
58 - webkit? ( dev-qt/qtwebkit:5 )
59 - )"
60 + dev-qt/qtxmlpatterns:5 )"
61 DEPEND="${RDEPEND}
62 - dev-qt/qtxml:5
63 + dev-qt/qtxml:5"
64 +BDEPEND="app-arch/unzip
65 virtual/pkgconfig
66 - doc? ( app-doc/doxygen )"
67 -
68 -S="${WORKDIR}/${MY_P}"
69 -
70 -REQUIRED_USE="webkit? ( extensions ) ${PYTHON_REQUIRED_USE}"
71 + doc? ( app-doc/doxygen )
72 + test? ( dev-qt/qttest:5 )"
73
74 src_prepare() {
75 default
76
77 + if ! use examples ; then
78 + sed -i '/SUBDIRS/s/examples//' PythonQt.pro || die "sed for examples"
79 + fi
80 if ! use extensions ; then
81 sed -i '/SUBDIRS/s/extensions//' PythonQt.pro || die "sed for extensions"
82 fi
83 - if ! use webkit ; then
84 - # Remove webkit support if not used
85 - sed -i '/qtHaveModule(webkit):CONFIG += PythonQtWebKit/d' \
86 - extensions/PythonQt_QtAll/PythonQt_QtAll.pro \
87 - || die "sed for webkit"
88 + if ! use test ; then
89 + sed -i '/SUBDIRS/s/tests//' PythonQt.pro || die "sed for test"
90 fi
91
92 + # Remove webkit support if not used
93 + sed -i '/qtHaveModule(webkit):CONFIG += PythonQtWebKit/d' \
94 + extensions/PythonQt_QtAll/PythonQt_QtAll.pro \
95 + || die "sed for webkit"
96 +
97 # Unset python version to use python-config
98 sed -i "/unix:PYTHON_VERSION=/s/2.7//" build/python.prf \
99 || die "sed for python version"
100 }
101
102 src_configure() {
103 - eqmake5 PREFIX="${ED%/}"/usr
104 + eqmake5 CONFIG+="$(usex debug debug release '' '')" PREFIX="${ED}"/usr
105 +}
106 +
107 +src_test() {
108 + LD_PRELOAD="${S}"/lib/libPythonQt-Qt5-Python"$(usex debug _d '' '' '')".so.3 \
109 + virtx ./lib/PythonQtTest"$(usex debug _d '' '' '')"
110 }
111
112 src_install() {