Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-visualization/qtiplot/, sci-visualization/qtiplot/files/
Date: Sun, 05 Mar 2017 12:43:03
Message-Id: 1488717769.68af1bcdec50266f55ffd8cbd32e5522b820935a.asturm@gentoo
1 commit: 68af1bcdec50266f55ffd8cbd32e5522b820935a
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 5 12:41:36 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 5 12:42:49 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68af1bcd
7
8 sci-visualization/qtiplot: Fix build with >=sip-4.19
9
10 Thanks-to: Fabio Rossi <rossi.f <AT> inwind.it>
11 Gentoo-bug: 609280
12
13 Package-Manager: Portage-2.3.3, Repoman-2.3.1
14
15 .../qtiplot/files/qtiplot-0.9.8.9-sip-4.19.patch | 38 ++++++++++++++++++++++
16 .../qtiplot/qtiplot-0.9.8.9-r3.ebuild | 5 +--
17 .../qtiplot/qtiplot-0.9.8.9-r4.ebuild | 36 ++++++++++----------
18 3 files changed, 60 insertions(+), 19 deletions(-)
19
20 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-sip-4.19.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-sip-4.19.patch
21 new file mode 100644
22 index 00000000000..a1ea502787c
23 --- /dev/null
24 +++ b/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-sip-4.19.patch
25 @@ -0,0 +1,38 @@
26 +--- a/qtiplot/src/scripting/qti.sip 2017-02-13 17:01:03.123828499 +0100
27 ++++ b/qtiplot/src/scripting/qti.sip 2017-02-13 17:02:12.628828234 +0100
28 +@@ -148,14 +148,14 @@
29 + }
30 + break;
31 + case Table::Date:
32 +- if (sipCanConvertToType(item, sipType_QDateTime, 0)) {
33 ++ if (sipCanConvertToType(item, sipFindType("QDateTime"), 0)) {
34 + int isErr = 0;
35 +- QDateTime* dateTime = reinterpret_cast<QDateTime*>(sipConvertToType(item, sipType_QDateTime,
36 ++ QDateTime* dateTime = reinterpret_cast<QDateTime*>(sipConvertToType(item, sipFindType("QDateTime"),
37 + 0/*sipTransferObj*/, 0/*flags*/, 0/*state*/, &isErr));
38 + if (isErr)
39 + return 1;
40 + table->setText(row, col, dateTime->toString(table->columnFormat(col)));
41 +- delete dateTime;
42 ++ //delete dateTime;
43 + }
44 + else {
45 + if (PyType_Ready(item_type) == 0)
46 +@@ -164,14 +164,14 @@
47 + }
48 + break;
49 + case Table::Time:
50 +- if (sipCanConvertToType(item, sipType_QTime, 0)) {
51 ++ if (sipCanConvertToType(item, sipFindType("QTime"), 0)) {
52 + int isErr = 0;
53 +- QTime* time = reinterpret_cast<QTime*>(sipConvertToType(item, sipType_QTime,
54 ++ QTime* time = reinterpret_cast<QTime*>(sipConvertToType(item, sipFindType("QTime"),
55 + 0/*sipTransferObj*/, 0/*flags*/, 0/*state*/, &isErr));
56 + if (isErr)
57 + return 1;
58 + table->setText(row, col, time->toString(table->columnFormat(col)));
59 +- delete time;
60 ++ //delete time;
61 + }
62 + else {
63 + if (PyType_Ready(item_type) == 0)
64
65 diff --git a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r3.ebuild b/sci-visualization/qtiplot/qtiplot-0.9.8.9-r3.ebuild
66 index c716e31a7bb..65c127fe41f 100644
67 --- a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r3.ebuild
68 +++ b/sci-visualization/qtiplot/qtiplot-0.9.8.9-r3.ebuild
69 @@ -1,4 +1,4 @@
70 -# Copyright 1999-2016 Gentoo Foundation
71 +# Copyright 1999-2017 Gentoo Foundation
72 # Distributed under the terms of the GNU General Public License v2
73
74 EAPI=5
75 @@ -75,7 +75,8 @@ PATCHES=(
76 "${FILESDIR}"/${P}-private.patch
77 "${FILESDIR}"/${P}-sip-4.15.patch
78 "${FILESDIR}"/${P}-PyQt4-4.11.3.patch
79 - )
80 + "${FILESDIR}"/${P}-sip-4.19.patch
81 +)
82
83 RESTRICT="!bindist? ( bindist )"
84
85
86 diff --git a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r4.ebuild b/sci-visualization/qtiplot/qtiplot-0.9.8.9-r4.ebuild
87 index 963f9190a1a..42a68ecc39c 100644
88 --- a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r4.ebuild
89 +++ b/sci-visualization/qtiplot/qtiplot-0.9.8.9-r4.ebuild
90 @@ -1,4 +1,4 @@
91 -# Copyright 1999-2016 Gentoo Foundation
92 +# Copyright 1999-2017 Gentoo Foundation
93 # Distributed under the terms of the GNU General Public License v2
94
95 EAPI=6
96 @@ -31,36 +31,37 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
97
98 # qwtplot3d much modified from original upstream
99 # >=x11-libs/qwt-5.3 they are using trunk checkouts
100 -CDEPEND="
101 - media-libs/libemf
102 - dev-qt/qthelp:4
103 - dev-qt/qtgui:4
104 - dev-qt/qtopengl:4
105 - dev-qt/qt3support:4
106 - dev-qt/qthelp:4[compat]
107 - dev-qt/qtsvg:4
108 - >=x11-libs/gl2ps-1.3.5[png]
109 +RDEPEND="
110 >=dev-cpp/muParser-1.32
111 >=dev-libs/boost-1.35.0:=
112 dev-libs/quazip[qt4]
113 + dev-qt/qt3support:4
114 + dev-qt/qtgui:4
115 + dev-qt/qthelp:4
116 + dev-qt/qthelp:4[compat]
117 + dev-qt/qtopengl:4
118 + dev-qt/qtsvg:4
119 + media-libs/libemf
120 media-libs/libpng:=
121 sci-libs/alglib:=
122 >=sci-libs/gsl-2
123 sci-libs/tamu_anova
124 + >=x11-libs/gl2ps-1.3.5[png]
125 latex? ( dev-tex/qtexengine )
126 mono? ( dev-dotnet/libgdiplus )
127 python? (
128 ${PYTHON_DEPS}
129 >=dev-python/PyQt4-4.11.3[X,${PYTHON_USEDEP}]
130 - )"
131 -DEPEND="${CDEPEND}
132 + )
133 +"
134 +DEPEND="${RDEPEND}
135 virtual/pkgconfig
136 - python? ( >=dev-python/sip-4.16.5[${PYTHON_USEDEP}] )
137 doc? (
138 >=app-text/docbook-sgml-utils-0.6.14-r1
139 - >=app-text/docbook-xml-dtd-4.4-r2:4.4 )"
140 -
141 -RDEPEND="${CDEPEND}"
142 + >=app-text/docbook-xml-dtd-4.4-r2:4.4
143 + )
144 + python? ( >=dev-python/sip-4.16.5[${PYTHON_USEDEP}] )
145 +"
146
147 PATCHES=(
148 "${WORKDIR}"/${P}-origin.patch
149 @@ -77,7 +78,8 @@ PATCHES=(
150 "${FILESDIR}"/${P}-sip-4.15.patch
151 "${FILESDIR}"/${P}-PyQt4-4.11.3.patch
152 "${FILESDIR}"/${P}-gsl-2.patch
153 - )
154 + "${FILESDIR}"/${P}-sip-4.19.patch
155 +)
156
157 RESTRICT="!bindist? ( bindist )"