1 |
jlec 12/03/01 07:41:06 |
2 |
|
3 |
Modified: metadata.xml ChangeLog mathgl-1.11.2.ebuild |
4 |
Log: |
5 |
Add patch to compile with latest gcc, #406277, provided by Helmut Jarausch; moved to eapi=4 and autotools-utils.eclass |
6 |
|
7 |
(Portage version: 2.2.0_alpha89/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.6 sci-libs/mathgl/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/metadata.xml?rev=1.6&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/metadata.xml?rev=1.6&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/metadata.xml?r1=1.5&r2=1.6 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/mathgl/metadata.xml,v |
19 |
retrieving revision 1.5 |
20 |
retrieving revision 1.6 |
21 |
diff -u -r1.5 -r1.6 |
22 |
--- metadata.xml 12 Feb 2010 04:20:46 -0000 1.5 |
23 |
+++ metadata.xml 1 Mar 2012 07:41:06 -0000 1.6 |
24 |
@@ -8,6 +8,6 @@ |
25 |
</maintainer> |
26 |
<longdescription>Math Graphics Library</longdescription> |
27 |
<use> |
28 |
- <flag name='octave'>Add bindings for <pkg>sci-mathematics/octave</pkg></flag> |
29 |
+ <flag name="octave">Add bindings for <pkg>sci-mathematics/octave</pkg></flag> |
30 |
</use> |
31 |
</pkgmetadata> |
32 |
|
33 |
|
34 |
|
35 |
1.27 sci-libs/mathgl/ChangeLog |
36 |
|
37 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/ChangeLog?rev=1.27&view=markup |
38 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/ChangeLog?rev=1.27&content-type=text/plain |
39 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/ChangeLog?r1=1.26&r2=1.27 |
40 |
|
41 |
Index: ChangeLog |
42 |
=================================================================== |
43 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v |
44 |
retrieving revision 1.26 |
45 |
retrieving revision 1.27 |
46 |
diff -u -r1.26 -r1.27 |
47 |
--- ChangeLog 28 Feb 2012 00:56:32 -0000 1.26 |
48 |
+++ ChangeLog 1 Mar 2012 07:41:06 -0000 1.27 |
49 |
@@ -1,6 +1,11 @@ |
50 |
# ChangeLog for sci-libs/mathgl |
51 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
52 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.26 2012/02/28 00:56:32 patrick Exp $ |
53 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/ChangeLog,v 1.27 2012/03/01 07:41:06 jlec Exp $ |
54 |
+ |
55 |
+ 01 Mar 2012; Justin Lecher <jlec@g.o> mathgl-1.11.2.ebuild, |
56 |
+ +files/mathgl-1.11.2-cast.patch, metadata.xml: |
57 |
+ Add patch to compile with latest gcc, #406277, provided by Helmut Jarausch; |
58 |
+ moved to eapi=4 and autotools-utils.eclass |
59 |
|
60 |
28 Feb 2012; Patrick Lauer <patrick@g.o> mathgl-1.11.1.1.ebuild, |
61 |
mathgl-1.11.2.ebuild: |
62 |
|
63 |
|
64 |
|
65 |
1.4 sci-libs/mathgl/mathgl-1.11.2.ebuild |
66 |
|
67 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/mathgl-1.11.2.ebuild?rev=1.4&view=markup |
68 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/mathgl-1.11.2.ebuild?rev=1.4&content-type=text/plain |
69 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mathgl/mathgl-1.11.2.ebuild?r1=1.3&r2=1.4 |
70 |
|
71 |
Index: mathgl-1.11.2.ebuild |
72 |
=================================================================== |
73 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/mathgl/mathgl-1.11.2.ebuild,v |
74 |
retrieving revision 1.3 |
75 |
retrieving revision 1.4 |
76 |
diff -u -r1.3 -r1.4 |
77 |
--- mathgl-1.11.2.ebuild 28 Feb 2012 00:56:32 -0000 1.3 |
78 |
+++ mathgl-1.11.2.ebuild 1 Mar 2012 07:41:06 -0000 1.4 |
79 |
@@ -1,15 +1,18 @@ |
80 |
# Copyright 1999-2012 Gentoo Foundation |
81 |
# Distributed under the terms of the GNU General Public License v2 |
82 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/mathgl-1.11.2.ebuild,v 1.3 2012/02/28 00:56:32 patrick Exp $ |
83 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/mathgl/mathgl-1.11.2.ebuild,v 1.4 2012/03/01 07:41:06 jlec Exp $ |
84 |
|
85 |
-EAPI=3 |
86 |
+EAPI=4 |
87 |
|
88 |
WX_GTK_VER=2.8 |
89 |
-PYTHON_DEPEND="2" |
90 |
+ |
91 |
+PYTHON_DEPEND="python? 2" |
92 |
SUPPORT_PYTHON_ABIS="1" |
93 |
RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-* *-jython" |
94 |
|
95 |
-inherit autotools eutils wxwidgets python versionator toolchain-funcs |
96 |
+AUTOTOOLS_AUTORECONF=true |
97 |
+ |
98 |
+inherit autotools-utils eutils python toolchain-funcs versionator wxwidgets |
99 |
|
100 |
DESCRIPTION="Math Graphics Library" |
101 |
HOMEPAGE="http://mathgl.sourceforge.net/" |
102 |
@@ -18,33 +21,45 @@ |
103 |
LICENSE="LGPL-3" |
104 |
SLOT="0" |
105 |
KEYWORDS="~amd64 ~x86" |
106 |
-IUSE="doc fltk gif glut gsl hdf5 jpeg octave python qt4 wxwidgets" |
107 |
+IUSE="doc fltk gif glut gsl hdf5 jpeg mpi octave python qt4 wxwidgets static-libs" |
108 |
|
109 |
-RDEPEND="media-libs/libpng |
110 |
+RDEPEND=" |
111 |
+ media-libs/libpng |
112 |
sys-libs/zlib |
113 |
virtual/opengl |
114 |
- python? ( dev-python/numpy ) |
115 |
- glut? ( media-libs/freeglut ) |
116 |
fltk? ( x11-libs/fltk:1 ) |
117 |
gif? ( media-libs/giflib ) |
118 |
- jpeg? ( virtual/jpeg ) |
119 |
- hdf5? ( >=sci-libs/hdf5-1.8 ) |
120 |
+ glut? ( media-libs/freeglut ) |
121 |
gsl? ( sci-libs/gsl ) |
122 |
+ hdf5? ( >=sci-libs/hdf5-1.8[mpi=] ) |
123 |
+ jpeg? ( virtual/jpeg ) |
124 |
octave? ( >=sci-mathematics/octave-3.4.0 ) |
125 |
+ python? ( dev-python/numpy ) |
126 |
qt4? ( x11-libs/qt-gui:4 ) |
127 |
wxwidgets? ( x11-libs/wxGTK:2.8 )" |
128 |
DEPEND="${RDEPEND} |
129 |
- >=sys-devel/libtool-2.2.4 |
130 |
+ sys-devel/libtool:2 |
131 |
doc? ( app-text/texi2html virtual/texi2dvi ) |
132 |
- python? ( dev-lang/swig ) |
133 |
- octave? ( dev-lang/swig )" |
134 |
+ octave? ( dev-lang/swig ) |
135 |
+ python? ( dev-lang/swig )" |
136 |
+ |
137 |
+REQUIRED_USE="mpi? ( hdf5 ) " |
138 |
+ |
139 |
+AUTOTOOLS_IN_SOURCE_BUILD=1 |
140 |
+ |
141 |
+PATCHES=( |
142 |
+ "${FILESDIR}"/${PN}-1.10.2-gcc43.patch |
143 |
+ "${FILESDIR}"/${PN}-octave-3.4.patch |
144 |
+ "${FILESDIR}"/${P}-zlib.patch |
145 |
+ "${FILESDIR}"/${P}-cast.patch |
146 |
+ ) |
147 |
|
148 |
pkg_setup() { |
149 |
if ! version_is_at_least "4.3.0" "$(gcc-version)"; then |
150 |
eerror "You need >=gcc-4.3.0 to compile this package" |
151 |
die "Wrong gcc version" |
152 |
fi |
153 |
- if use hdf5 && has_version sci-libs/hdf5[mpi]; then |
154 |
+ if use mpi; then |
155 |
export CC=mpicc |
156 |
export CXX=mpicxx |
157 |
fi |
158 |
@@ -54,21 +69,12 @@ |
159 |
|
160 |
src_unpack() { |
161 |
unpack ${A} |
162 |
- mkdir "${S}"/fonts |
163 |
+ [[ -d "${S}"/fonts ]] || mkdir "${S}"/fonts |
164 |
cd "${S}"/fonts |
165 |
unpack STIX_font.tgz |
166 |
} |
167 |
|
168 |
src_prepare() { |
169 |
- # bug #267061 |
170 |
- epatch "${FILESDIR}"/${PN}-1.10.2-gcc43.patch |
171 |
- |
172 |
- # bug #358245 |
173 |
- epatch "${FILESDIR}"/${PN}-octave-3.4.patch |
174 |
- |
175 |
- # bug #378255 |
176 |
- epatch "${FILESDIR}"/${PN}-1.11.2-zlib.patch |
177 |
- |
178 |
# correct location of numpy/arrayobject.h |
179 |
if use python; then |
180 |
sed \ |
181 |
@@ -78,29 +84,33 @@ |
182 |
|
183 |
echo "#!${EPREFIX}/bin/sh" > config/py-compile |
184 |
|
185 |
- eautoreconf |
186 |
+ autotools-utils_src_prepare |
187 |
} |
188 |
|
189 |
src_configure() { |
190 |
- econf --docdir="${ROOT}"usr/share/doc/${PF} \ |
191 |
- $(use_enable glut) \ |
192 |
- $(use_enable qt4 qt) \ |
193 |
- $(use_enable wxwidgets wx) \ |
194 |
- $(use_enable fltk) \ |
195 |
- $(use_enable gif) \ |
196 |
- $(use_enable jpeg) \ |
197 |
- $(use_enable hdf5 hdf5_18) \ |
198 |
- $(use_enable python) \ |
199 |
- $(use_enable octave) \ |
200 |
- $(use_enable gsl) \ |
201 |
+ local myeconfargs=( |
202 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" |
203 |
+ $(use_enable glut) |
204 |
+ $(use_enable qt4 qt) |
205 |
+ $(use_enable wxwidgets wx) |
206 |
+ $(use_enable fltk) |
207 |
+ $(use_enable gif) |
208 |
+ $(use_enable jpeg) |
209 |
+ $(use_enable hdf5 hdf5_18) |
210 |
+ $(use_enable python) |
211 |
+ $(use_enable octave) |
212 |
+ $(use_enable gsl) |
213 |
$(use_enable doc docs) |
214 |
+ ) |
215 |
+ autotools-utils_src_configure |
216 |
} |
217 |
|
218 |
src_compile() { |
219 |
# see bug #249627 |
220 |
local JOBS |
221 |
- use doc && JOBS=-j1 |
222 |
- emake ${JOBS} || die "emake failed" |
223 |
+ use doc && MAKEOPTS+=" -j1" |
224 |
+ |
225 |
+ autotools-utils_src_compile |
226 |
|
227 |
if use python; then |
228 |
python_copy_sources lang |
229 |
@@ -118,7 +128,7 @@ |
230 |
} |
231 |
|
232 |
src_install() { |
233 |
- emake DESTDIR="${D}" install || die "emake install failed" |
234 |
+ autotools-utils_src_install |
235 |
|
236 |
if use python; then |
237 |
installation() { |
238 |
@@ -127,7 +137,6 @@ |
239 |
python_execute_function -s --source-dir lang installation |
240 |
python_clean_installation_image |
241 |
fi |
242 |
- dodoc README AUTHORS || die "dodoc failed" |
243 |
} |
244 |
|
245 |
pkg_postinst() { |