1 |
commit: d8536989154b2c485d0e6f799272e3b89ef2d9a8 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 18 16:33:59 2016 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 18 16:34:32 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8536989 |
7 |
|
8 |
sci-visualization/qtiplot: Add compatibility patch for gsl API cahnge |
9 |
|
10 |
Thanks Jürgen Rose for the patch |
11 |
|
12 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=574620 |
13 |
|
14 |
Package-Manager: portage-2.2.27 |
15 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
16 |
|
17 |
sci-visualization/qtiplot/Manifest | 1 + |
18 |
.../qtiplot/files/qtiplot-0.9.8.9-gsl-2.patch | 36 +++++++++++++++++ |
19 |
.../qtiplot/qtiplot-0.9.8.9-r2.ebuild | 4 +- |
20 |
.../qtiplot/qtiplot-0.9.8.9-r3.ebuild | 4 +- |
21 |
...0.9.8.9-r3.ebuild => qtiplot-0.9.8.9-r4.ebuild} | 46 +++++++++++----------- |
22 |
5 files changed, 65 insertions(+), 26 deletions(-) |
23 |
|
24 |
diff --git a/sci-visualization/qtiplot/Manifest b/sci-visualization/qtiplot/Manifest |
25 |
index 1fd7b6f..2271a07 100644 |
26 |
--- a/sci-visualization/qtiplot/Manifest |
27 |
+++ b/sci-visualization/qtiplot/Manifest |
28 |
@@ -1,2 +1,3 @@ |
29 |
DIST qtiplot-0.9.8.9-origin.patch.bz2 104708 SHA256 e83d7212be0fadae31b14c8a86b655fdb3b7c7b8fc80b1e2d91eb0a7e96b1e99 SHA512 62f5bb531c2fc7e061661ab5733a70acf9a61ff90a934af42b5741c63478caebabc8240f37d25660f623c5cbcd530e1303e967a095ca99b3452f29cfb5200b69 WHIRLPOOL 94b4b704737c2e6bb86caa00497164749df7eb01b13b49d06daa8f33b3e34d23782bde4fec617f35755c2e2f4286327bb39270bf48a9f020e94ef113f9d962bb |
30 |
+DIST qtiplot-0.9.8.9-origin.patch.xz 89660 SHA256 8d1a9927fad711b7e357641926b884f68d28f8e2f648f6a7c071514d5d552c11 SHA512 adbd002975bb49997eb610b150c1bbfe9c9617b0b5bbb70f52df7475339b7d68cada175eb9f6048f6ece043ca3dcf5c62ef361d82bc670b1576ee8493d6b757c WHIRLPOOL 41fd5c1627737f060d7a0d99682e58417e050c7655798453a602c1cf9409d5bab319870b6054efe3542ac038c2bc32f804ae427646a3f56290a2c5b1905cbcd4 |
31 |
DIST qtiplot-0.9.8.9.tar.bz2 16202943 SHA256 a523ea259516d7581abaf2fe376507d152db32f71d88176cff18f5bc391b9ef0 SHA512 3a0cb7b49c508f56228e8e3a259b4fd34c872410ad14ef1d8656372e3e8ab9f92e59094a9cc1a75680099a8832f7472ad31462b3ae8a9e132ac7056d5245cf2a WHIRLPOOL 3cf9d9ab7d58301364a61f6c5ad51858ffe1e6214c5971c1d042c7894fcb70fa4b28fe0e6631f142ab8fa9b2c2b979e4e178bc44b1961cde70b29d9aaa2c7d3f |
32 |
|
33 |
diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-gsl-2.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-gsl-2.patch |
34 |
new file mode 100644 |
35 |
index 0000000..9ad8919 |
36 |
--- /dev/null |
37 |
+++ b/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-gsl-2.patch |
38 |
@@ -0,0 +1,36 @@ |
39 |
+ * Info: Using [gentoo] (https://bugs.gentoo.org/xmlrpc.cgi) |
40 |
+ * Info: Getting attachment 425760 |
41 |
+ * Info: Viewing attachment: "fix_fit_gsl_fdfsolver.patch" |
42 |
+diff --git a/qtiplot/src/analysis/Fit.cpp b/qtiplot/src/analysis/Fit.cpp |
43 |
+index 22cb5be..555f21d 100755 |
44 |
+--- a/qtiplot/src/analysis/Fit.cpp |
45 |
++++ b/qtiplot/src/analysis/Fit.cpp |
46 |
+@@ -106,6 +106,7 @@ void Fit::init() |
47 |
+ gsl_multifit_fdfsolver * Fit::fitGSL(gsl_multifit_function_fdf f, int &iterations, int &status) |
48 |
+ { |
49 |
+ const gsl_multifit_fdfsolver_type *T; |
50 |
++ gsl_matrix *J; |
51 |
+ if (d_solver) |
52 |
+ T = gsl_multifit_fdfsolver_lmder; |
53 |
+ else |
54 |
+@@ -128,7 +129,8 @@ gsl_multifit_fdfsolver * Fit::fitGSL(gsl_multifit_function_fdf f, int &iteration |
55 |
+ } |
56 |
+ |
57 |
+ if (status){ |
58 |
+- gsl_multifit_covar (s->J, 0.0, covar); |
59 |
++ gsl_multifit_fdfsolver_jac (s, J); |
60 |
++ gsl_multifit_covar (J, 0.0, covar); |
61 |
+ iterations = 0; |
62 |
+ return s; |
63 |
+ } |
64 |
+@@ -155,7 +157,8 @@ gsl_multifit_fdfsolver * Fit::fitGSL(gsl_multifit_function_fdf f, int &iteration |
65 |
+ status = gsl_multifit_test_delta (s->dx, s->x, d_tolerance, d_tolerance); |
66 |
+ } while (inRange && status == GSL_CONTINUE && (int)iter < d_max_iterations); |
67 |
+ |
68 |
+- gsl_multifit_covar (s->J, 0.0, covar); |
69 |
++ gsl_multifit_fdfsolver_jac (s, J); |
70 |
++ gsl_multifit_covar (J, 0.0, covar); |
71 |
+ |
72 |
+ iterations = iter; |
73 |
+ return s; |
74 |
+ |
75 |
|
76 |
diff --git a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r2.ebuild b/sci-visualization/qtiplot/qtiplot-0.9.8.9-r2.ebuild |
77 |
index f93b945..e2db5e6 100644 |
78 |
--- a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r2.ebuild |
79 |
+++ b/sci-visualization/qtiplot/qtiplot-0.9.8.9-r2.ebuild |
80 |
@@ -1,4 +1,4 @@ |
81 |
-# Copyright 1999-2015 Gentoo Foundation |
82 |
+# Copyright 1999-2016 Gentoo Foundation |
83 |
# Distributed under the terms of the GNU General Public License v2 |
84 |
# $Id$ |
85 |
|
86 |
@@ -45,7 +45,7 @@ CDEPEND=" |
87 |
dev-libs/quazip |
88 |
media-libs/libpng:= |
89 |
sci-libs/alglib:= |
90 |
- sci-libs/gsl |
91 |
+ <sci-libs/gsl-2 |
92 |
sci-libs/tamu_anova |
93 |
latex? ( dev-tex/qtexengine ) |
94 |
mono? ( dev-dotnet/libgdiplus ) |
95 |
|
96 |
diff --git a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r3.ebuild b/sci-visualization/qtiplot/qtiplot-0.9.8.9-r3.ebuild |
97 |
index eec88b2..060eeae 100644 |
98 |
--- a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r3.ebuild |
99 |
+++ b/sci-visualization/qtiplot/qtiplot-0.9.8.9-r3.ebuild |
100 |
@@ -1,4 +1,4 @@ |
101 |
-# Copyright 1999-2015 Gentoo Foundation |
102 |
+# Copyright 1999-2016 Gentoo Foundation |
103 |
# Distributed under the terms of the GNU General Public License v2 |
104 |
# $Id$ |
105 |
|
106 |
@@ -45,7 +45,7 @@ CDEPEND=" |
107 |
dev-libs/quazip |
108 |
media-libs/libpng:= |
109 |
sci-libs/alglib:= |
110 |
- sci-libs/gsl |
111 |
+ <sci-libs/gsl-2 |
112 |
sci-libs/tamu_anova |
113 |
latex? ( dev-tex/qtexengine ) |
114 |
mono? ( dev-dotnet/libgdiplus ) |
115 |
|
116 |
diff --git a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r3.ebuild b/sci-visualization/qtiplot/qtiplot-0.9.8.9-r4.ebuild |
117 |
similarity index 86% |
118 |
copy from sci-visualization/qtiplot/qtiplot-0.9.8.9-r3.ebuild |
119 |
copy to sci-visualization/qtiplot/qtiplot-0.9.8.9-r4.ebuild |
120 |
index eec88b2..5163a6a 100644 |
121 |
--- a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r3.ebuild |
122 |
+++ b/sci-visualization/qtiplot/qtiplot-0.9.8.9-r4.ebuild |
123 |
@@ -1,19 +1,20 @@ |
124 |
-# Copyright 1999-2015 Gentoo Foundation |
125 |
+# Copyright 1999-2016 Gentoo Foundation |
126 |
# Distributed under the terms of the GNU General Public License v2 |
127 |
# $Id$ |
128 |
|
129 |
-EAPI=5 |
130 |
+EAPI=6 |
131 |
|
132 |
PYTHON_COMPAT=( python2_7 ) |
133 |
|
134 |
-inherit eutils qt4-r2 fdo-mime python-single-r1 toolchain-funcs |
135 |
+inherit eutils qmake-utils python-single-r1 toolchain-funcs xdg |
136 |
|
137 |
DESCRIPTION="Qt based clone of the Origin plotting package" |
138 |
-HOMEPAGE="http://soft.proindependent.com/qtiplot.html |
139 |
+HOMEPAGE=" |
140 |
+ http://soft.proindependent.com/qtiplot.html |
141 |
http://www.staff.science.uu.nl/~zeven101/qtiplot.html" |
142 |
SRC_URI=" |
143 |
https://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.bz2 |
144 |
- https://dev.gentoo.org/~dilfridge/distfiles/${P}-origin.patch.bz2" |
145 |
+ https://dev.gentoo.org/~jlec/distfiles/${P}-origin.patch.xz" |
146 |
|
147 |
LICENSE="GPL-2 GPL-3" |
148 |
SLOT="0" |
149 |
@@ -45,7 +46,7 @@ CDEPEND=" |
150 |
dev-libs/quazip |
151 |
media-libs/libpng:= |
152 |
sci-libs/alglib:= |
153 |
- sci-libs/gsl |
154 |
+ >=sci-libs/gsl-2 |
155 |
sci-libs/tamu_anova |
156 |
latex? ( dev-tex/qtexengine ) |
157 |
mono? ( dev-dotnet/libgdiplus ) |
158 |
@@ -63,7 +64,7 @@ DEPEND="${CDEPEND} |
159 |
RDEPEND="${CDEPEND}" |
160 |
|
161 |
PATCHES=( |
162 |
- "${DISTDIR}"/${P}-origin.patch.bz2 |
163 |
+ "${WORKDIR}"/${P}-origin.patch |
164 |
"${FILESDIR}"/${P}-origin-2.patch |
165 |
"${FILESDIR}"/${P}-qt48.patch |
166 |
"${FILESDIR}"/${PN}-0.9.8.8-system-gl2ps.patch |
167 |
@@ -76,6 +77,7 @@ PATCHES=( |
168 |
"${FILESDIR}"/${P}-private.patch |
169 |
"${FILESDIR}"/${P}-sip-4.15.patch |
170 |
"${FILESDIR}"/${P}-PyQt4-4.11.3.patch |
171 |
+ "${FILESDIR}"/${P}-gsl-2.patch |
172 |
) |
173 |
|
174 |
RESTRICT="!bindist? ( bindist )" |
175 |
@@ -87,13 +89,15 @@ pkg_setup() { |
176 |
src_prepare() { |
177 |
local mylibs |
178 |
|
179 |
- qt4-r2_src_prepare |
180 |
+ xdg_src_prepare |
181 |
|
182 |
- rm -rf 3rdparty/{liborigin,QTeXEngine,/qwtplot3d/3rdparty/gl2ps/,boost,alglib} || die |
183 |
+ rm -rf \ |
184 |
+ 3rdparty/{liborigin,QTeXEngine,/qwtplot3d/3rdparty/gl2ps/,boost,alglib} \ |
185 |
+ || die |
186 |
sed \ |
187 |
-e "s:dll:static:g" \ |
188 |
-e "/INSTALLS/d" \ |
189 |
- -i 3rdparty/qwtplot3d/*.pro |
190 |
+ -i 3rdparty/qwtplot3d/*.pro || die |
191 |
|
192 |
mylibs="${mylibs} -lquazip" |
193 |
use mono && mylibs="${mylibs} $($(tc-getPKG_CONFIG) --libs libgdiplus)" |
194 |
@@ -111,7 +115,7 @@ src_prepare() { |
195 |
QWT_LIBS = \$\$QTI_ROOT/3rdparty/qwt/lib/libqwt.a |
196 |
QWT3D_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwtplot3d/include |
197 |
QWT3D_LIBS = \$\$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a |
198 |
- EMF_INCLUDEPATH = "${EPREFIX}/usr/include/libEMF |
199 |
+ EMF_INCLUDEPATH = "${EPREFIX}"/usr/include/libEMF |
200 |
SYS_LIBS = -lgl2ps ${mylibs} -lGLU |
201 |
|
202 |
LUPDATE = lupdate |
203 |
@@ -176,9 +180,11 @@ src_prepare() { |
204 |
chmod -x qtiplot/qti_wordlist.txt |
205 |
|
206 |
# sed out debian paths |
207 |
- sed -e 's:\(/usr/share/sgml/\)docbook/stylesheet/dsssl/modular\(/html/docbook.dsl\):\1stylesheets/dsssl/docbook\2:' \ |
208 |
+ sed \ |
209 |
+ -e 's:\(/usr/share/sgml/\)docbook/stylesheet/dsssl/modular\(/html/docbook.dsl\):\1stylesheets/dsssl/docbook\2:' \ |
210 |
-i manual/qtiplot.dsl || die |
211 |
- sed -e 's:\(/usr/share/\)xml/docbook/stylesheet/nwalsh\(/html/chunk.xsl\):\1sgml/docbook/xsl-stylesheets\2:' \ |
212 |
+ sed \ |
213 |
+ -e 's:\(/usr/share/\)xml/docbook/stylesheet/nwalsh\(/html/chunk.xsl\):\1sgml/docbook/xsl-stylesheets\2:' \ |
214 |
-i manual/qtiplot_html.xsl || die |
215 |
|
216 |
sed \ |
217 |
@@ -192,16 +198,16 @@ src_configure() { |
218 |
} |
219 |
|
220 |
src_compile() { |
221 |
- emake |
222 |
+ default |
223 |
lrelease qtiplot/qtiplot.pro || die |
224 |
if use doc; then |
225 |
- cd manual |
226 |
+ cd manual || die |
227 |
emake web |
228 |
fi |
229 |
} |
230 |
|
231 |
src_install() { |
232 |
- qt4-r2_src_install |
233 |
+ emake INSTALL_ROOT="${D}" install |
234 |
|
235 |
insinto /usr/share/qtiplot |
236 |
doins qtiplot/qti_wordlist.txt |
237 |
@@ -209,7 +215,7 @@ src_install() { |
238 |
newicon qtiplot_logo.png qtiplot.png |
239 |
make_desktop_entry qtiplot "QtiPlot Scientific Plotting" qtiplot |
240 |
|
241 |
- use doc && dohtml -r manual/html/* |
242 |
+ use doc && dodoc -r manual/html |
243 |
|
244 |
use python && python_optimize |
245 |
|
246 |
@@ -230,9 +236,5 @@ pkg_postinst() { |
247 |
dev-python/pygsl dev-python/rpy sci-libs/scipy dev-python/sympy |
248 |
fi |
249 |
|
250 |
- fdo-mime_desktop_database_update |
251 |
-} |
252 |
- |
253 |
-pkg_postrm() { |
254 |
- fdo-mime_desktop_database_update |
255 |
+ xdg_pkg_postinst |
256 |
} |