Gentoo Archives: gentoo-commits

From: "Andrey Grozin (grozin)" <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/mathgl: ChangeLog mathgl-1.10.ebuild
Date: Mon, 04 Jan 2010 12:03:09
Message-Id: E1NRle7-0005aK-R6@stork.gentoo.org
1 grozin 10/01/04 12:02:51
2
3 Modified: ChangeLog
4 Added: mathgl-1.10.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.2_rc61/cvs/Linux i686)
8
9 Revision Changes Path
10 1.9 sci-libs/mathgl/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/mathgl/ChangeLog?rev=1.9&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/mathgl/ChangeLog?rev=1.9&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/mathgl/ChangeLog?r1=1.8&r2=1.9
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v
19 retrieving revision 1.8
20 retrieving revision 1.9
21 diff -u -r1.8 -r1.9
22 --- ChangeLog 15 Sep 2009 04:37:30 -0000 1.8
23 +++ ChangeLog 4 Jan 2010 12:02:51 -0000 1.9
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sci-libs/mathgl
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.8 2009/09/15 04:37:30 grozin Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.9 2010/01/04 12:02:51 grozin Exp $
30 +
31 +*mathgl-1.10 (04 Jan 2010)
32 +
33 + 04 Jan 2010; Andrey Grozin <grozin@g.o> +mathgl-1.10.ebuild,
34 + +files/mathgl-1.10-gcc43.patch:
35 + Version bump
36
37 15 Sep 2009; Andrey Grozin <grozin@g.o> -mathgl-1.8.1.ebuild,
38 -files/mathgl-1.8.1-gcc43.patch, -files/mathgl-1.8.1-gcc44.patch,
39
40
41
42 1.1 sci-libs/mathgl/mathgl-1.10.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/mathgl/mathgl-1.10.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/mathgl/mathgl-1.10.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mathgl-1.10.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/mathgl-1.10.ebuild,v 1.1 2010/01/04 12:02:51 grozin Exp $
52
53 EAPI=2
54 WX_GTK_VER=2.8
55 inherit autotools wxwidgets python versionator toolchain-funcs
56
57 DESCRIPTION="Math Graphics Library"
58 HOMEPAGE="http://mathgl.sourceforge.net/"
59 SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
60
61 LICENSE="LGPL-3"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="doc fltk gif glut gsl hdf5 jpeg octave python qt4 wxwidgets"
65
66 RDEPEND="media-libs/libpng
67 virtual/glu
68 python? ( dev-python/numpy )
69 glut? ( virtual/glut )
70 fltk? ( x11-libs/fltk:1.1 )
71 gif? ( media-libs/giflib )
72 jpeg? ( media-libs/jpeg )
73 hdf5? ( >=sci-libs/hdf5-1.8 )
74 gsl? ( sci-libs/gsl )
75 octave? ( sci-mathematics/octave )
76 qt4? ( x11-libs/qt-gui:4 )
77 wxwidgets? ( x11-libs/wxGTK:2.8 )"
78 DEPEND="${RDEPEND}
79 >=sys-devel/libtool-2.2.4
80 doc? ( app-text/texi2html virtual/texi2dvi )
81 python? ( dev-lang/swig )
82 octave? ( dev-lang/swig )"
83
84 pkg_setup() {
85 if ! version_is_at_least "4.3.0" "$(gcc-version)"; then
86 eerror "You need >=gcc-4.3.0 to compile this package"
87 die "Wrong gcc version"
88 fi
89 }
90
91 src_prepare() {
92 # bug #267061
93 epatch "${FILESDIR}"/${P}-gcc43.patch
94
95 # correct location of numpy/arrayobject.h
96 if use python; then
97 local numpy_h
98 numpy_h=$(python_get_sitedir)/numpy/core/include/numpy/arrayobject.h
99 einfo "fixing numpy.i"
100 sed -e "s|<numpy/arrayobject.h>|\"${numpy_h}\"|" \
101 -i lang/numpy.i \
102 || die "sed failed"
103 fi
104
105 eautoreconf
106 }
107
108 src_configure() {
109 econf --docdir="${ROOT}"usr/share/doc/${PF} \
110 $(use_enable glut) \
111 $(use_enable qt4 qt) \
112 $(use_enable wxwidgets wx) \
113 $(use_enable fltk) \
114 $(use_enable gif) \
115 $(use_enable jpeg) \
116 $(use_enable hdf5 hdf5_18) \
117 $(use_enable python) \
118 $(use_enable octave) \
119 $(use_enable gsl) \
120 $(use_enable doc docs)
121 }
122
123 src_compile() {
124 # see bug #249627
125 local JOBS
126 use doc && JOBS=-j1
127 emake ${JOBS} || die "emake failed"
128 }
129
130 src_install() {
131 emake DESTDIR="${D}" install || die "emake install failed"
132 dodoc README AUTHORS || die "dodoc failed"
133 }
134
135 pkg_postinst() {
136 if use octave; then
137 octave <<-EOF
138 pkg install /usr/share/${PN}/octave/${PN}.tar.gz
139 EOF
140 fi
141 }
142
143 pkg_prerm() {
144 if use octave; then
145 octave <<-EOF
146 pkg uninstall ${PN}
147 EOF
148 fi
149 }