Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/mathgl: mathgl-1.10.1-r1.ebuild ChangeLog mathgl-1.10.2-r1.ebuild mathgl-1.10.2.1-r1.ebuild mathgl-1.10.2.ebuild mathgl-1.10.1.ebuild
Date: Wed, 30 Jun 2010 22:14:24
Message-Id: 20100630221420.7B7342C621@corvid.gentoo.org
1 jlec 10/06/30 22:14:20
2
3 Modified: ChangeLog
4 Added: mathgl-1.10.1-r1.ebuild mathgl-1.10.2-r1.ebuild
5 mathgl-1.10.2.1-r1.ebuild
6 Removed: mathgl-1.10.2.ebuild mathgl-1.10.1.ebuild
7 Log:
8 Version Bump, fixes for PYTHON multi ABI, #323605, no pointless la files, #313167
9 (Portage version: 2.2_rc67/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.15 sci-libs/mathgl/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/ChangeLog?rev=1.15&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/ChangeLog?rev=1.15&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/ChangeLog?r1=1.14&r2=1.15
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v
21 retrieving revision 1.14
22 retrieving revision 1.15
23 diff -u -r1.14 -r1.15
24 --- ChangeLog 29 Mar 2010 21:10:08 -0000 1.14
25 +++ ChangeLog 30 Jun 2010 22:14:20 -0000 1.15
26 @@ -1,6 +1,16 @@
27 # ChangeLog for sci-libs/mathgl
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.14 2010/03/29 21:10:08 grozin Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.15 2010/06/30 22:14:20 jlec Exp $
31 +
32 +*mathgl-1.10.2.1-r1 (30 Jun 2010)
33 +*mathgl-1.10.2-r1 (30 Jun 2010)
34 +*mathgl-1.10.1-r1 (30 Jun 2010)
35 +
36 + 30 Jun 2010; Justin Lecher <jlec@g.o> -mathgl-1.10.1.ebuild,
37 + +mathgl-1.10.1-r1.ebuild, -mathgl-1.10.2.ebuild, +mathgl-1.10.2-r1.ebuild,
38 + +mathgl-1.10.2.1-r1.ebuild:
39 + Version Bump, fixes for PYTHON multi ABI, #323605, no pointless la files,
40 + #313167
41
42 *mathgl-1.10.2 (30 Mar 2010)
43
44
45
46
47 1.1 sci-libs/mathgl/mathgl-1.10.1-r1.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/mathgl-1.10.1-r1.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/mathgl-1.10.1-r1.ebuild?rev=1.1&content-type=text/plain
51
52 Index: mathgl-1.10.1-r1.ebuild
53 ===================================================================
54 # Copyright 1999-2010 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/mathgl-1.10.1-r1.ebuild,v 1.1 2010/06/30 22:14:20 jlec Exp $
57
58 EAPI=3
59
60 WX_GTK_VER=2.8
61 PYTHON_DEPEND="2"
62 SUPPORT_PYTHON_ABIS="1"
63 RESTRICT_PYTHON_ABIS="3.*"
64
65 inherit autotools wxwidgets python versionator toolchain-funcs
66
67 DESCRIPTION="Math Graphics Library"
68 HOMEPAGE="http://mathgl.sourceforge.net/"
69 SRC_URI="mirror://sourceforge/${PN}/${P}.tgz mirror://sourceforge/${PN}/STIX_font.tgz"
70
71 LICENSE="LGPL-3"
72 SLOT="0"
73 KEYWORDS="~amd64 ~x86"
74 IUSE="doc fltk gif glut gsl hdf5 jpeg octave python qt4 wxwidgets"
75
76 RDEPEND="media-libs/libpng
77 virtual/glu
78 python? ( dev-python/numpy )
79 glut? ( virtual/glut )
80 fltk? ( x11-libs/fltk:1.1 )
81 gif? ( media-libs/giflib )
82 jpeg? ( media-libs/jpeg )
83 hdf5? ( >=sci-libs/hdf5-1.8 )
84 gsl? ( sci-libs/gsl )
85 octave? ( sci-mathematics/octave )
86 qt4? ( x11-libs/qt-gui:4 )
87 wxwidgets? ( x11-libs/wxGTK:2.8 )"
88 DEPEND="${RDEPEND}
89 >=sys-devel/libtool-2.2.4
90 doc? ( app-text/texi2html virtual/texi2dvi )
91 python? ( dev-lang/swig )
92 octave? ( dev-lang/swig )"
93
94 pkg_setup() {
95 if ! version_is_at_least "4.3.0" "$(gcc-version)"; then
96 eerror "You need >=gcc-4.3.0 to compile this package"
97 die "Wrong gcc version"
98 fi
99 if use hdf5 && has_version sci-libs/hdf5[mpi]; then
100 export CC=mpicc
101 export CXX=mpicxx
102 fi
103 }
104
105 src_unpack() {
106 unpack ${A}
107 mkdir "${S}"/fonts
108 cd "${S}"/fonts
109 unpack STIX_font.tgz
110 }
111
112 src_prepare() {
113 # bug #267061
114 epatch "${FILESDIR}"/${P}-gcc43.patch
115
116 # correct location of numpy/arrayobject.h
117 if use python; then
118 sed \
119 -e '/SUBDIRS/s:lang::g' \
120 -i Makefile.am || die
121 python_src_prepare
122 fi
123 echo "#!${EPREFIX}/bin/sh" > config/py-compile
124
125 eautoreconf
126 }
127
128 src_configure() {
129 econf --docdir="${ROOT}"usr/share/doc/${PF} \
130 $(use_enable glut) \
131 $(use_enable qt4 qt) \
132 $(use_enable wxwidgets wx) \
133 $(use_enable fltk) \
134 $(use_enable gif) \
135 $(use_enable jpeg) \
136 $(use_enable hdf5 hdf5_18) \
137 $(use_enable python) \
138 $(use_enable octave) \
139 $(use_enable gsl) \
140 $(use_enable doc docs)
141 }
142
143 src_compile() {
144 # see bug #249627
145 local JOBS
146 use doc && JOBS=-j1
147 emake ${JOBS} || die "emake failed"
148 if use python; then
149 python_copy_sources lang
150 compilation() {
151 local numpy_h
152 numpy_h=$(python_get_sitedir)/numpy/core/include/numpy/arrayobject.h
153 einfo "fixing numpy.i for Python-${PYTHON_ABI}"
154 sed -e "s|<numpy/arrayobject.h>|\"${numpy_h}\"|" \
155 -i numpy.i \
156 || die "sed failed"
157 emake PYTHON_HEADERS="-I$(python_get_includedir)" pyexecdir="$(python_get_sitedir)"
158 }
159 python_execute_function -s --source-dir lang compilation
160 fi
161 }
162
163 src_install() {
164 emake DESTDIR="${D}" install || die "emake install failed"
165 if use python; then
166 installation() {
167 emake DESTDIR="${D}" PYTHON="$(PYTHON)" pyexecdir="$(python_get_sitedir)" pythondir="$(python_get_sitedir)" install
168 }
169 python_execute_function -s --source-dir lang installation
170 python_clean_installation_image
171 fi
172 dodoc README AUTHORS || die "dodoc failed"
173 }
174
175 pkg_postinst() {
176 if use octave; then
177 octave <<-EOF
178 pkg install /usr/share/${PN}/octave/${PN}.tar.gz
179 EOF
180 fi
181 use python && python_mod_optimize ${PN}.py
182 }
183
184 pkg_prerm() {
185 if use octave; then
186 octave <<-EOF
187 pkg uninstall ${PN}
188 EOF
189 fi
190 use python && python_mod_cleanup ${PN}.py
191 }
192
193
194
195 1.1 sci-libs/mathgl/mathgl-1.10.2-r1.ebuild
196
197 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/mathgl-1.10.2-r1.ebuild?rev=1.1&view=markup
198 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/mathgl-1.10.2-r1.ebuild?rev=1.1&content-type=text/plain
199
200 Index: mathgl-1.10.2-r1.ebuild
201 ===================================================================
202 # Copyright 1999-2010 Gentoo Foundation
203 # Distributed under the terms of the GNU General Public License v2
204 # $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/mathgl-1.10.2-r1.ebuild,v 1.1 2010/06/30 22:14:20 jlec Exp $
205
206 EAPI=3
207 WX_GTK_VER=2.8
208 PYTHON_DEPEND="2"
209 SUPPORT_PYTHON_ABIS="1"
210 RESTRICT_PYTHON_ABIS="3.*"
211 inherit autotools wxwidgets python versionator toolchain-funcs
212
213 DESCRIPTION="Math Graphics Library"
214 HOMEPAGE="http://mathgl.sourceforge.net/"
215 SRC_URI="mirror://sourceforge/${PN}/${P}.tgz mirror://sourceforge/${PN}/STIX_font.tgz"
216
217 LICENSE="LGPL-3"
218 SLOT="0"
219 KEYWORDS="~amd64 ~x86"
220 IUSE="doc fltk gif glut gsl hdf5 jpeg octave python qt4 wxwidgets"
221
222 RDEPEND="media-libs/libpng
223 virtual/glu
224 python? ( dev-python/numpy )
225 glut? ( virtual/glut )
226 fltk? ( x11-libs/fltk:1.1 )
227 gif? ( media-libs/giflib )
228 jpeg? ( media-libs/jpeg )
229 hdf5? ( >=sci-libs/hdf5-1.8 )
230 gsl? ( sci-libs/gsl )
231 octave? ( sci-mathematics/octave )
232 qt4? ( x11-libs/qt-gui:4 )
233 wxwidgets? ( x11-libs/wxGTK:2.8 )"
234 DEPEND="${RDEPEND}
235 >=sys-devel/libtool-2.2.4
236 doc? ( app-text/texi2html virtual/texi2dvi )
237 python? ( dev-lang/swig )
238 octave? ( dev-lang/swig )"
239
240 pkg_setup() {
241 if ! version_is_at_least "4.3.0" "$(gcc-version)"; then
242 eerror "You need >=gcc-4.3.0 to compile this package"
243 die "Wrong gcc version"
244 fi
245 if use hdf5 && has_version sci-libs/hdf5[mpi]; then
246 export CC=mpicc
247 export CXX=mpicxx
248 fi
249 }
250
251 src_unpack() {
252 unpack ${A}
253 mkdir "${S}"/fonts
254 cd "${S}"/fonts
255 unpack STIX_font.tgz
256 }
257
258 src_prepare() {
259 # bug #267061
260 epatch "${FILESDIR}"/${P}-gcc43.patch
261
262 # correct location of numpy/arrayobject.h
263 if use python; then
264 sed \
265 -e '/SUBDIRS/s:lang::g' \
266 -i Makefile.am || die
267 python_src_prepare
268 fi
269 echo "#!${EPREFIX}/bin/sh" > config/py-compile
270
271 eautoreconf
272 }
273
274 src_configure() {
275 econf --docdir="${ROOT}"usr/share/doc/${PF} \
276 $(use_enable glut) \
277 $(use_enable qt4 qt) \
278 $(use_enable wxwidgets wx) \
279 $(use_enable fltk) \
280 $(use_enable gif) \
281 $(use_enable jpeg) \
282 $(use_enable hdf5 hdf5_18) \
283 $(use_enable python) \
284 $(use_enable octave) \
285 $(use_enable gsl) \
286 $(use_enable doc docs)
287 }
288
289 src_compile() {
290 # see bug #249627
291 local JOBS
292 use doc && JOBS=-j1
293 emake ${JOBS} || die "emake failed"
294 if use python; then
295 python_copy_sources lang
296 compilation() {
297 local numpy_h
298 numpy_h=$(python_get_sitedir)/numpy/core/include/numpy/arrayobject.h
299 einfo "fixing numpy.i for Python-${PYTHON_ABI}"
300 sed -e "s|<numpy/arrayobject.h>|\"${numpy_h}\"|" \
301 -i numpy.i \
302 || die "sed failed"
303 emake PYTHON_HEADERS="-I$(python_get_includedir)" pyexecdir="$(python_get_sitedir)"
304 }
305 python_execute_function -s --source-dir lang compilation
306 fi
307 }
308
309 src_install() {
310 emake DESTDIR="${D}" install || die "emake install failed"
311 if use python; then
312 installation() {
313 emake DESTDIR="${D}" PYTHON="$(PYTHON)" pyexecdir="$(python_get_sitedir)" pythondir="$(python_get_sitedir)" install
314 }
315 python_execute_function -s --source-dir lang installation
316 python_clean_installation_image
317 fi
318 dodoc README AUTHORS || die "dodoc failed"
319 }
320
321 pkg_postinst() {
322 if use octave; then
323 octave <<-EOF
324 pkg install /usr/share/${PN}/octave/${PN}.tar.gz
325 EOF
326 fi
327 use python && python_mod_optimize ${PN}.py
328 }
329
330 pkg_prerm() {
331 if use octave; then
332 octave <<-EOF
333 pkg uninstall ${PN}
334 EOF
335 fi
336 use python && python_mod_cleanup ${PN}.py
337 }
338
339
340
341 1.1 sci-libs/mathgl/mathgl-1.10.2.1-r1.ebuild
342
343 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/mathgl-1.10.2.1-r1.ebuild?rev=1.1&view=markup
344 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/mathgl-1.10.2.1-r1.ebuild?rev=1.1&content-type=text/plain
345
346 Index: mathgl-1.10.2.1-r1.ebuild
347 ===================================================================
348 # Copyright 1999-2010 Gentoo Foundation
349 # Distributed under the terms of the GNU General Public License v2
350 # $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/mathgl-1.10.2.1-r1.ebuild,v 1.1 2010/06/30 22:14:20 jlec Exp $
351
352 EAPI=3
353
354 WX_GTK_VER=2.8
355 PYTHON_DEPEND="2"
356 SUPPORT_PYTHON_ABIS="1"
357 RESTRICT_PYTHON_ABIS="3.*"
358
359 inherit autotools wxwidgets python versionator toolchain-funcs
360
361 DESCRIPTION="Math Graphics Library"
362 HOMEPAGE="http://mathgl.sourceforge.net/"
363 SRC_URI="mirror://sourceforge/${PN}/${P}.tgz mirror://sourceforge/${PN}/STIX_font.tgz"
364
365 LICENSE="LGPL-3"
366 SLOT="0"
367 KEYWORDS="~amd64 ~x86"
368 IUSE="doc fltk gif glut gsl hdf5 jpeg octave python qt4 wxwidgets"
369
370 RDEPEND="media-libs/libpng
371 virtual/glu
372 python? ( dev-python/numpy )
373 glut? ( virtual/glut )
374 fltk? ( x11-libs/fltk:1.1 )
375 gif? ( media-libs/giflib )
376 jpeg? ( media-libs/jpeg )
377 hdf5? ( >=sci-libs/hdf5-1.8 )
378 gsl? ( sci-libs/gsl )
379 octave? ( sci-mathematics/octave )
380 qt4? ( x11-libs/qt-gui:4 )
381 wxwidgets? ( x11-libs/wxGTK:2.8 )"
382 DEPEND="${RDEPEND}
383 >=sys-devel/libtool-2.2.4
384 doc? ( app-text/texi2html virtual/texi2dvi )
385 python? ( dev-lang/swig )
386 octave? ( dev-lang/swig )"
387
388 pkg_setup() {
389 if ! version_is_at_least "4.3.0" "$(gcc-version)"; then
390 eerror "You need >=gcc-4.3.0 to compile this package"
391 die "Wrong gcc version"
392 fi
393 if use hdf5 && has_version sci-libs/hdf5[mpi]; then
394 export CC=mpicc
395 export CXX=mpicxx
396 fi
397 }
398
399 src_unpack() {
400 unpack ${A}
401 mkdir "${S}"/fonts
402 cd "${S}"/fonts
403 unpack STIX_font.tgz
404 }
405
406 src_prepare() {
407 # bug #267061
408 epatch "${FILESDIR}"/${PN}-1.10.2-gcc43.patch
409
410 # correct location of numpy/arrayobject.h
411 if use python; then
412 sed \
413 -e '/SUBDIRS/s:lang::g' \
414 -i Makefile.am || die
415 python_src_prepare
416 fi
417
418 echo "#!${EPREFIX}/bin/sh" > config/py-compile
419
420 eautoreconf
421 }
422
423 src_configure() {
424 econf --docdir="${ROOT}"usr/share/doc/${PF} \
425 $(use_enable glut) \
426 $(use_enable qt4 qt) \
427 $(use_enable wxwidgets wx) \
428 $(use_enable fltk) \
429 $(use_enable gif) \
430 $(use_enable jpeg) \
431 $(use_enable hdf5 hdf5_18) \
432 $(use_enable python) \
433 $(use_enable octave) \
434 $(use_enable gsl) \
435 $(use_enable doc docs)
436 }
437
438 src_compile() {
439 # see bug #249627
440 local JOBS
441 use doc && JOBS=-j1
442 emake ${JOBS} || die "emake failed"
443
444 if use python; then
445 python_copy_sources lang
446 compilation() {
447 local numpy_h
448 numpy_h=$(python_get_sitedir)/numpy/core/include/numpy/arrayobject.h
449 einfo "fixing numpy.i for Python-${PYTHON_ABI}"
450 sed -e "s|<numpy/arrayobject.h>|\"${numpy_h}\"|" \
451 -i numpy.i \
452 || die "sed failed"
453 emake PYTHON_HEADERS="-I$(python_get_includedir)" pyexecdir="$(python_get_sitedir)"
454 }
455 python_execute_function -s --source-dir lang compilation
456 fi
457 }
458
459 src_install() {
460 emake DESTDIR="${D}" install || die "emake install failed"
461
462 if use python; then
463 installation() {
464 emake DESTDIR="${D}" PYTHON="$(PYTHON)" pyexecdir="$(python_get_sitedir)" pythondir="$(python_get_sitedir)" install
465 }
466 python_execute_function -s --source-dir lang installation
467 python_clean_installation_image
468 fi
469 dodoc README AUTHORS || die "dodoc failed"
470 }
471
472 pkg_postinst() {
473 if use octave; then
474 octave <<-EOF
475 pkg install /usr/share/${PN}/octave/${PN}.tar.gz
476 EOF
477 fi
478 use python && python_mod_optimize ${PN}.py
479 }
480
481 pkg_prerm() {
482 if use octave; then
483 octave <<-EOF
484 pkg uninstall ${PN}
485 EOF
486 fi
487 use python && python_mod_cleanup ${PN}.py
488 }