1 |
commit: 2898c16869a5b5fc213e4bf40d9c89e7908efb18 |
2 |
Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua> |
3 |
AuthorDate: Sun Feb 16 21:11:52 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=2898c168 |
7 |
|
8 |
dev-python/PythonQt: python3_7, EAPI 7, fix revdep, tests |
9 |
|
10 |
1. add github reference in metadata |
11 |
2. move to EAPI 7 |
12 |
3. add python3_7 |
13 |
4. add tests |
14 |
5. add missed app-arch/unzip |
15 |
6. don't build tests and examples |
16 |
7. remove webkit USE flag |
17 |
|
18 |
Closes: https://bugs.gentoo.org/708700 |
19 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
20 |
Signed-off-by: Vladimir Pavljuchenkov <spiderx <AT> spiderx.dp.ua> |
21 |
Closes: https://github.com/gentoo/gentoo/pull/14680 |
22 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
23 |
|
24 |
dev-python/PythonQt/PythonQt-3.2-r1.ebuild | 95 ++++++++++++++++++++++++++++++ |
25 |
dev-python/PythonQt/metadata.xml | 14 ++--- |
26 |
2 files changed, 102 insertions(+), 7 deletions(-) |
27 |
|
28 |
diff --git a/dev-python/PythonQt/PythonQt-3.2-r1.ebuild b/dev-python/PythonQt/PythonQt-3.2-r1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..5ca6174c99f |
31 |
--- /dev/null |
32 |
+++ b/dev-python/PythonQt/PythonQt-3.2-r1.ebuild |
33 |
@@ -0,0 +1,95 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{6,7} ) |
40 |
+ |
41 |
+MY_P=${PN}${PV} |
42 |
+ |
43 |
+inherit qmake-utils python-single-r1 virtualx |
44 |
+ |
45 |
+DESCRIPTION="A dynamic Python binding for the Qt framework" |
46 |
+HOMEPAGE="https://mevislab.github.io/pythonqt" |
47 |
+SRC_URI="mirror://sourceforge/pythonqt/pythonqt/${P}/${MY_P}.zip" |
48 |
+ |
49 |
+LICENSE="LGPL-2.1" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+IUSE="debug doc examples +extensions test" |
53 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
54 |
+RESTRICT="!test? ( test )" |
55 |
+ |
56 |
+RDEPEND="${PYTHON_DEPS} |
57 |
+ dev-qt/qtcore:5 |
58 |
+ dev-qt/qtgui:5 |
59 |
+ dev-qt/qtwidgets:5 |
60 |
+ extensions? ( |
61 |
+ dev-qt/designer:5 |
62 |
+ dev-qt/qtdeclarative:5[widgets] |
63 |
+ dev-qt/qtmultimedia:5[widgets] |
64 |
+ dev-qt/qtnetwork:5 |
65 |
+ dev-qt/qtopengl:5 |
66 |
+ dev-qt/qtprintsupport:5 |
67 |
+ dev-qt/qtsql:5 |
68 |
+ dev-qt/qtsvg:5 |
69 |
+ dev-qt/qtxml:5 |
70 |
+ dev-qt/qtxmlpatterns:5 )" |
71 |
+DEPEND="${RDEPEND} |
72 |
+ dev-qt/qtxml:5" |
73 |
+BDEPEND="app-arch/unzip |
74 |
+ virtual/pkgconfig |
75 |
+ doc? ( app-doc/doxygen ) |
76 |
+ test? ( dev-qt/qttest:5 )" |
77 |
+ |
78 |
+S="${WORKDIR}/${MY_P}" |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ default |
82 |
+ |
83 |
+ if ! use examples ; then |
84 |
+ sed -i '/SUBDIRS/s/examples//' PythonQt.pro || die "sed for examples" |
85 |
+ fi |
86 |
+ if ! use extensions ; then |
87 |
+ sed -i '/SUBDIRS/s/extensions//' PythonQt.pro || die "sed for extensions" |
88 |
+ fi |
89 |
+ if ! use test ; then |
90 |
+ sed -i '/SUBDIRS/s/tests//' PythonQt.pro || die "sed for test" |
91 |
+ fi |
92 |
+ |
93 |
+ # Remove webkit support |
94 |
+ sed -i '/qtHaveModule(webkit):CONFIG += PythonQtWebKit/d' \ |
95 |
+ extensions/PythonQt_QtAll/PythonQt_QtAll.pro \ |
96 |
+ || die "sed for webkit" |
97 |
+ |
98 |
+ # Unset python version to use python-config |
99 |
+ sed -i "/unix:PYTHON_VERSION=/s/2.7//" build/python.prf \ |
100 |
+ || die "sed for python version" |
101 |
+} |
102 |
+ |
103 |
+src_configure() { |
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() { |
113 |
+ einstalldocs |
114 |
+ |
115 |
+ # Includes |
116 |
+ insinto /usr/include/PythonQt |
117 |
+ doins -r src/*.h |
118 |
+ insinto /usr/include/PythonQt/gui |
119 |
+ doins -r src/gui/*.h |
120 |
+ |
121 |
+ if use extensions ; then |
122 |
+ insinto /usr/include/PythonQt/extensions/PythonQt_QtAll |
123 |
+ doins -r extensions/PythonQt_QtAll/*.h |
124 |
+ fi |
125 |
+ |
126 |
+ # Libraries |
127 |
+ dolib.so lib/libPythonQt* |
128 |
+} |
129 |
|
130 |
diff --git a/dev-python/PythonQt/metadata.xml b/dev-python/PythonQt/metadata.xml |
131 |
index 1b4473ec008..32c82921dcc 100644 |
132 |
--- a/dev-python/PythonQt/metadata.xml |
133 |
+++ b/dev-python/PythonQt/metadata.xml |
134 |
@@ -9,18 +9,18 @@ |
135 |
<email>proxy-maint@g.o</email> |
136 |
<name>Proxy Maintainers</name> |
137 |
</maintainer> |
138 |
- <longdescription> |
139 |
-PythonQt is a dynamic Python binding for the Qt framework. |
140 |
-It offers an easy way to embed the Python scripting language into your C++ Qt applications. |
141 |
-The focus of PythonQt is on embedding Python into an existing C++ application, |
142 |
-not on writing the whole application completely in Python. |
143 |
+ <longdescription lang="en"> |
144 |
+ PythonQt is a dynamic Python binding for the Qt framework. |
145 |
+ It offers an easy way to embed the Python scripting language into |
146 |
+ your C++ Qt applications. The focus of PythonQt is on embedding Python |
147 |
+ into an existing C++ application, not on writing the whole application |
148 |
+ completely in Python. |
149 |
</longdescription> |
150 |
<use> |
151 |
<flag name="extensions">Install extensions</flag> |
152 |
</use> |
153 |
<upstream> |
154 |
- <changelog>https://sourceforge.net/p/pythonqt/news/</changelog> |
155 |
- <doc>http://pythonqt.sourceforge.net/index.html</doc> |
156 |
+ <remote-id type="github">MeVisLab/pythonqt</remote-id> |
157 |
<remote-id type="sourceforge">pythonqt</remote-id> |
158 |
</upstream> |
159 |
</pkgmetadata> |