1 |
nerdboy 08/06/24 07:45:51 |
2 |
|
3 |
Modified: grass-6.2.1.ebuild grass-5.4.0.ebuild ChangeLog |
4 |
grass-6.0.1.ebuild grass-6.2.0-r1.ebuild |
5 |
grass-6.2.3.ebuild |
6 |
Added: grass-6.3.0.ebuild |
7 |
Log: |
8 |
added latest release with wxpython gui support, QA fixes, etc |
9 |
(Portage version: 2.1.5.5) |
10 |
|
11 |
Revision Changes Path |
12 |
1.12 sci-geosciences/grass/grass-6.2.1.ebuild |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.2.1.ebuild?rev=1.12&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.2.1.ebuild?rev=1.12&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.2.1.ebuild?r1=1.11&r2=1.12 |
17 |
|
18 |
Index: grass-6.2.1.ebuild |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.2.1.ebuild,v |
21 |
retrieving revision 1.11 |
22 |
retrieving revision 1.12 |
23 |
diff -u -r1.11 -r1.12 |
24 |
--- grass-6.2.1.ebuild 21 May 2008 19:01:32 -0000 1.11 |
25 |
+++ grass-6.2.1.ebuild 24 Jun 2008 07:45:50 -0000 1.12 |
26 |
@@ -1,8 +1,8 @@ |
27 |
# Copyright 1999-2008 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.2.1.ebuild,v 1.11 2008/05/21 19:01:32 dev-zero Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.2.1.ebuild,v 1.12 2008/06/24 07:45:50 nerdboy Exp $ |
31 |
|
32 |
-inherit eutils autotools |
33 |
+inherit eutils libtool |
34 |
|
35 |
DESCRIPTION="An open-source GIS with raster and vector functionality, as well as 3D vizualization." |
36 |
HOMEPAGE="http://grass.itc.it/" |
37 |
@@ -18,13 +18,9 @@ |
38 |
|
39 |
RESTRICT="strip" |
40 |
|
41 |
-RDEPEND=">=sys-devel/make-3.80 |
42 |
- >=sys-libs/zlib-1.1.4 |
43 |
- >=sys-devel/flex-2.5.4a |
44 |
- >=sys-devel/bison-1.35 |
45 |
+RDEPEND=">=sys-libs/zlib-1.1.4 |
46 |
>=sys-libs/ncurses-5.3 |
47 |
>=sys-libs/gdbm-1.8.0 |
48 |
- >=sys-devel/gcc-3.2.2 |
49 |
|| ( |
50 |
sys-apps/man |
51 |
sys-apps/man-db ) |
52 |
@@ -62,6 +58,10 @@ |
53 |
)" |
54 |
|
55 |
DEPEND="${RDEPEND} |
56 |
+ >=sys-devel/make-3.80 |
57 |
+ >=sys-devel/flex-2.5.4a |
58 |
+ >=sys-devel/bison-1.35 |
59 |
+ >=sys-devel/gcc-3.2.2 |
60 |
X? ( |
61 |
x11-proto/xproto |
62 |
x11-proto/xextproto |
63 |
|
64 |
|
65 |
|
66 |
1.15 sci-geosciences/grass/grass-5.4.0.ebuild |
67 |
|
68 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-5.4.0.ebuild?rev=1.15&view=markup |
69 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-5.4.0.ebuild?rev=1.15&content-type=text/plain |
70 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-5.4.0.ebuild?r1=1.14&r2=1.15 |
71 |
|
72 |
Index: grass-5.4.0.ebuild |
73 |
=================================================================== |
74 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-5.4.0.ebuild,v |
75 |
retrieving revision 1.14 |
76 |
retrieving revision 1.15 |
77 |
diff -u -r1.14 -r1.15 |
78 |
--- grass-5.4.0.ebuild 21 May 2008 19:01:32 -0000 1.14 |
79 |
+++ grass-5.4.0.ebuild 24 Jun 2008 07:45:51 -0000 1.15 |
80 |
@@ -1,6 +1,6 @@ |
81 |
# Copyright 1999-2008 Gentoo Foundation |
82 |
# Distributed under the terms of the GNU General Public License v2 |
83 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-5.4.0.ebuild,v 1.14 2008/05/21 19:01:32 dev-zero Exp $ |
84 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-5.4.0.ebuild,v 1.15 2008/06/24 07:45:51 nerdboy Exp $ |
85 |
|
86 |
inherit eutils toolchain-funcs |
87 |
|
88 |
@@ -15,13 +15,9 @@ |
89 |
KEYWORDS="amd64 sparc x86" |
90 |
IUSE="tk png jpeg tiff postgres odbc motif gdal mysql blas lapack X fftw truetype nls opengl" |
91 |
|
92 |
-RDEPEND=">=sys-devel/make-3.80 |
93 |
- >=sys-libs/zlib-1.1.4 |
94 |
- >=sys-devel/flex-2.5.4a |
95 |
- >=sys-devel/bison-1.35 |
96 |
+RDEPEND=">=sys-libs/zlib-1.1.4 |
97 |
>=sys-libs/ncurses-5.3 |
98 |
>=sys-libs/gdbm-1.8.0 |
99 |
- >=sys-devel/gcc-3.2.2 |
100 |
virtual/man |
101 |
>=sci-libs/proj-4.4.7 |
102 |
blas? ( virtual/blas ) |
103 |
@@ -51,6 +47,10 @@ |
104 |
)" |
105 |
|
106 |
DEPEND="${RDEPEND} |
107 |
+ >=sys-devel/make-3.80 |
108 |
+ >=sys-devel/flex-2.5.4a |
109 |
+ >=sys-devel/bison-1.35 |
110 |
+ >=sys-devel/gcc-3.2.2 |
111 |
X? ( |
112 |
x11-proto/xproto |
113 |
x11-proto/xextproto |
114 |
|
115 |
|
116 |
|
117 |
1.58 sci-geosciences/grass/ChangeLog |
118 |
|
119 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/ChangeLog?rev=1.58&view=markup |
120 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/ChangeLog?rev=1.58&content-type=text/plain |
121 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/ChangeLog?r1=1.57&r2=1.58 |
122 |
|
123 |
Index: ChangeLog |
124 |
=================================================================== |
125 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/grass/ChangeLog,v |
126 |
retrieving revision 1.57 |
127 |
retrieving revision 1.58 |
128 |
diff -u -r1.57 -r1.58 |
129 |
--- ChangeLog 21 May 2008 19:01:32 -0000 1.57 |
130 |
+++ ChangeLog 24 Jun 2008 07:45:51 -0000 1.58 |
131 |
@@ -1,6 +1,18 @@ |
132 |
# ChangeLog for sci-geosciences/grass |
133 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
134 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/ChangeLog,v 1.57 2008/05/21 19:01:32 dev-zero Exp $ |
135 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/ChangeLog,v 1.58 2008/06/24 07:45:51 nerdboy Exp $ |
136 |
+ |
137 |
+*grass-6.3.0 (24 Jun 2008) |
138 |
+ |
139 |
+ 24 Jun 2008; Steve Arnold <nerdboy@g.o> |
140 |
+ +files/grass-6.3.0-html-nonviz.patch, grass-5.4.0.ebuild, |
141 |
+ grass-6.0.1.ebuild, grass-6.2.0-r1.ebuild, grass-6.2.1.ebuild, |
142 |
+ grass-6.2.3.ebuild, +grass-6.3.0.ebuild: |
143 |
+ Added latest release with wxpython gui support and tested with gcc 4.3.1 |
144 |
+ (see bugs #223639 and #217917). Now includes multiple ffmpeg dirctories |
145 |
+ so sing out if you know of a better way... Also fixed more QA warnings |
146 |
+ in older versions. |
147 |
+ |
148 |
|
149 |
21 May 2008; Tiziano Müller <dev-zero@g.o> grass-5.4.0.ebuild, |
150 |
grass-6.0.1.ebuild, grass-6.2.0-r1.ebuild, grass-6.2.1.ebuild, |
151 |
@@ -24,7 +36,7 @@ |
152 |
04 May 2008; Steve Arnold <nerdboy@g.o> grass-6.2.3.ebuild: |
153 |
Updated for changed include path in latest ffmpeg. Still needs testing, |
154 |
but it builds and runs; so far I've only found avcodec included in the |
155 |
- source. |
156 |
+ source for Grass 6.2.3. |
157 |
|
158 |
*grass-6.2.3 (01 May 2008) |
159 |
|
160 |
|
161 |
|
162 |
|
163 |
1.18 sci-geosciences/grass/grass-6.0.1.ebuild |
164 |
|
165 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.0.1.ebuild?rev=1.18&view=markup |
166 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.0.1.ebuild?rev=1.18&content-type=text/plain |
167 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.0.1.ebuild?r1=1.17&r2=1.18 |
168 |
|
169 |
Index: grass-6.0.1.ebuild |
170 |
=================================================================== |
171 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.0.1.ebuild,v |
172 |
retrieving revision 1.17 |
173 |
retrieving revision 1.18 |
174 |
diff -u -r1.17 -r1.18 |
175 |
--- grass-6.0.1.ebuild 21 May 2008 19:01:32 -0000 1.17 |
176 |
+++ grass-6.0.1.ebuild 24 Jun 2008 07:45:51 -0000 1.18 |
177 |
@@ -1,6 +1,6 @@ |
178 |
# Copyright 1999-2008 Gentoo Foundation |
179 |
# Distributed under the terms of the GNU General Public License v2 |
180 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.0.1.ebuild,v 1.17 2008/05/21 19:01:32 dev-zero Exp $ |
181 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.0.1.ebuild,v 1.18 2008/06/24 07:45:51 nerdboy Exp $ |
182 |
|
183 |
inherit eutils |
184 |
|
185 |
@@ -20,13 +20,9 @@ |
186 |
|
187 |
RESTRICT="strip" |
188 |
|
189 |
-RDEPEND=">=sys-devel/make-3.80 |
190 |
- >=sys-libs/zlib-1.1.4 |
191 |
- >=sys-devel/flex-2.5.4a |
192 |
- >=sys-devel/bison-1.35 |
193 |
+RDEPEND=">=sys-libs/zlib-1.1.4 |
194 |
>=sys-libs/ncurses-5.3 |
195 |
>=sys-libs/gdbm-1.8.0 |
196 |
- >=sys-devel/gcc-3.2.2 |
197 |
virtual/man |
198 |
>=sci-libs/proj-4.4.7 |
199 |
sci-libs/gdal |
200 |
@@ -54,6 +50,10 @@ |
201 |
x11-libs/libXaw" |
202 |
|
203 |
DEPEND="${RDEPEND} |
204 |
+ >=sys-devel/make-3.80 |
205 |
+ >=sys-devel/flex-2.5.4a |
206 |
+ >=sys-devel/bison-1.35 |
207 |
+ >=sys-devel/gcc-3.2.2 |
208 |
x11-proto/xproto |
209 |
x11-proto/xextproto" |
210 |
|
211 |
|
212 |
|
213 |
|
214 |
1.12 sci-geosciences/grass/grass-6.2.0-r1.ebuild |
215 |
|
216 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.2.0-r1.ebuild?rev=1.12&view=markup |
217 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.2.0-r1.ebuild?rev=1.12&content-type=text/plain |
218 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.2.0-r1.ebuild?r1=1.11&r2=1.12 |
219 |
|
220 |
Index: grass-6.2.0-r1.ebuild |
221 |
=================================================================== |
222 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.2.0-r1.ebuild,v |
223 |
retrieving revision 1.11 |
224 |
retrieving revision 1.12 |
225 |
diff -u -r1.11 -r1.12 |
226 |
--- grass-6.2.0-r1.ebuild 21 May 2008 19:01:32 -0000 1.11 |
227 |
+++ grass-6.2.0-r1.ebuild 24 Jun 2008 07:45:51 -0000 1.12 |
228 |
@@ -1,8 +1,8 @@ |
229 |
# Copyright 1999-2008 Gentoo Foundation |
230 |
# Distributed under the terms of the GNU General Public License v2 |
231 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.2.0-r1.ebuild,v 1.11 2008/05/21 19:01:32 dev-zero Exp $ |
232 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.2.0-r1.ebuild,v 1.12 2008/06/24 07:45:51 nerdboy Exp $ |
233 |
|
234 |
-inherit eutils autotools |
235 |
+inherit eutils libtool |
236 |
|
237 |
DESCRIPTION="An open-source GIS with raster and vector functionality" |
238 |
HOMEPAGE="http://grass.itc.it/" |
239 |
@@ -18,13 +18,9 @@ |
240 |
|
241 |
RESTRICT="strip" |
242 |
|
243 |
-RDEPEND=">=sys-devel/make-3.80 |
244 |
- >=sys-libs/zlib-1.1.4 |
245 |
- >=sys-devel/flex-2.5.4a |
246 |
- >=sys-devel/bison-1.35 |
247 |
+RDEPEND=">=sys-libs/zlib-1.1.4 |
248 |
>=sys-libs/ncurses-5.3 |
249 |
>=sys-libs/gdbm-1.8.0 |
250 |
- >=sys-devel/gcc-3.2.2 |
251 |
|| ( |
252 |
sys-apps/man |
253 |
sys-apps/man-db ) |
254 |
@@ -60,6 +56,10 @@ |
255 |
x11-libs/libXaw" |
256 |
|
257 |
DEPEND="${RDEPEND} |
258 |
+ >=sys-devel/make-3.80 |
259 |
+ >=sys-devel/flex-2.5.4a |
260 |
+ >=sys-devel/bison-1.35 |
261 |
+ >=sys-devel/gcc-3.2.2 |
262 |
x11-proto/xproto |
263 |
x11-proto/xextproto" |
264 |
|
265 |
|
266 |
|
267 |
|
268 |
1.8 sci-geosciences/grass/grass-6.2.3.ebuild |
269 |
|
270 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.2.3.ebuild?rev=1.8&view=markup |
271 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.2.3.ebuild?rev=1.8&content-type=text/plain |
272 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.2.3.ebuild?r1=1.7&r2=1.8 |
273 |
|
274 |
Index: grass-6.2.3.ebuild |
275 |
=================================================================== |
276 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.2.3.ebuild,v |
277 |
retrieving revision 1.7 |
278 |
retrieving revision 1.8 |
279 |
diff -u -r1.7 -r1.8 |
280 |
--- grass-6.2.3.ebuild 21 May 2008 19:01:32 -0000 1.7 |
281 |
+++ grass-6.2.3.ebuild 24 Jun 2008 07:45:51 -0000 1.8 |
282 |
@@ -1,8 +1,8 @@ |
283 |
# Copyright 1999-2008 Gentoo Foundation |
284 |
# Distributed under the terms of the GNU General Public License v2 |
285 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.2.3.ebuild,v 1.7 2008/05/21 19:01:32 dev-zero Exp $ |
286 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.2.3.ebuild,v 1.8 2008/06/24 07:45:51 nerdboy Exp $ |
287 |
|
288 |
-inherit eutils autotools fdo-mime versionator |
289 |
+inherit eutils fdo-mime versionator |
290 |
|
291 |
MY_PV=$(get_version_component_range 1-2 ${PV}) |
292 |
MY_PVM=$(delete_all_version_separators ${MY_PV}) |
293 |
@@ -61,10 +61,8 @@ |
294 |
)" |
295 |
|
296 |
DEPEND="${RDEPEND} |
297 |
- >=sys-devel/make-3.80 |
298 |
>=sys-devel/flex-2.5.4a |
299 |
>=sys-devel/bison-1.35 |
300 |
- >=sys-devel/gcc-3.2.2 |
301 |
X? ( |
302 |
x11-proto/xproto |
303 |
x11-proto/xextproto |
304 |
|
305 |
|
306 |
|
307 |
1.1 sci-geosciences/grass/grass-6.3.0.ebuild |
308 |
|
309 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.3.0.ebuild?rev=1.1&view=markup |
310 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.3.0.ebuild?rev=1.1&content-type=text/plain |
311 |
|
312 |
Index: grass-6.3.0.ebuild |
313 |
=================================================================== |
314 |
# Copyright 1999-2008 Gentoo Foundation |
315 |
# Distributed under the terms of the GNU General Public License v2 |
316 |
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.3.0.ebuild,v 1.1 2008/06/24 07:45:51 nerdboy Exp $ |
317 |
|
318 |
inherit eutils distutils fdo-mime versionator wxwidgets |
319 |
|
320 |
MY_PV=$(get_version_component_range 1-2 ${PV}) |
321 |
MY_PVM=$(delete_all_version_separators ${MY_PV}) |
322 |
MY_PM=${PN}${MY_PVM} |
323 |
|
324 |
DESCRIPTION="An open-source GIS with raster and vector functionality, as well as 3D vizualization." |
325 |
HOMEPAGE="http://grass.itc.it/" |
326 |
SRC_URI="http://grass.itc.it/${MY_PM}/source/${P}.tar.gz" |
327 |
|
328 |
LICENSE="GPL-2" |
329 |
SLOT="0" |
330 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
331 |
|
332 |
IUSE="ffmpeg fftw glw gmath jpeg largefile mysql nls odbc opengl png \ |
333 |
postgres python readline sqlite tiff truetype wxwindows X" |
334 |
|
335 |
RESTRICT="strip" |
336 |
|
337 |
RDEPEND=">=sys-libs/zlib-1.1.4 |
338 |
>=sys-libs/ncurses-5.3 |
339 |
>=sys-libs/gdbm-1.8.0 |
340 |
|| ( |
341 |
sys-apps/man |
342 |
sys-apps/man-db ) |
343 |
sci-libs/gdal |
344 |
>=sci-libs/proj-4.4.7 |
345 |
ffmpeg? ( media-video/ffmpeg ) |
346 |
fftw? ( sci-libs/fftw ) |
347 |
gmath? ( virtual/blas |
348 |
virtual/lapack ) |
349 |
jpeg? ( media-libs/jpeg ) |
350 |
mysql? ( dev-db/mysql ) |
351 |
odbc? ( >=dev-db/unixODBC-2.0.6 ) |
352 |
opengl? ( ( virtual/opengl ) |
353 |
( x11-libs/openmotif ) |
354 |
glw? ( media-libs/mesa ) ) |
355 |
png? ( >=media-libs/libpng-1.2.2 ) |
356 |
postgres? ( >=dev-db/postgresql-7.3 ) |
357 |
python? ( dev-lang/python ) |
358 |
readline? ( sys-libs/readline ) |
359 |
sqlite? ( dev-db/sqlite ) |
360 |
tiff? ( >=media-libs/tiff-3.5.7 ) |
361 |
truetype? ( >=media-libs/freetype-2.0 ) |
362 |
wxwindows? ( |
363 |
>=dev-python/wxpython-2.8.1.1 |
364 |
>=dev-lang/python-2.4 |
365 |
) |
366 |
X? ( |
367 |
x11-libs/libXmu |
368 |
x11-libs/libXext |
369 |
x11-libs/libXp |
370 |
x11-libs/libX11 |
371 |
x11-libs/libXt |
372 |
x11-libs/libSM |
373 |
x11-libs/libICE |
374 |
x11-libs/libXpm |
375 |
x11-libs/libXaw |
376 |
>=dev-lang/tcl-8.4 |
377 |
>=dev-lang/tk-8.4 |
378 |
)" |
379 |
|
380 |
DEPEND="${RDEPEND} |
381 |
>=sys-devel/flex-2.5.4a |
382 |
>=sys-devel/bison-1.35 |
383 |
wxwindows? ( >=dev-lang/swig-1.3.31 ) |
384 |
X? ( |
385 |
x11-proto/xproto |
386 |
x11-proto/xextproto |
387 |
)" |
388 |
|
389 |
pkg_setup() { |
390 |
local myblas |
391 |
elog "" |
392 |
elog "This version enables the experimental wxpython interface, which" |
393 |
elog "you may want to try, since the legacy GUI seems a little wonky" |
394 |
elog "in this version; just enable the wxwindows USE flag and build." |
395 |
elog "" |
396 |
if use gmath; then |
397 |
for d in $(eselect lapack show); do myblas=${d}; done |
398 |
if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then |
399 |
ewarn "You need to set lapack to atlas or reference. Do:" |
400 |
ewarn " eselect lapack set <impl>" |
401 |
ewarn "where <impl> is atlas, threaded-atlas or reference" |
402 |
die "setup failed" |
403 |
fi |
404 |
for d in $(eselect blas show); do myblas=${d}; done |
405 |
if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then |
406 |
ewarn "You need to set blas to atlas or reference. Do:" |
407 |
ewarn " eselect blas set <impl>" |
408 |
ewarn "where <impl> is atlas, threaded-atlas or reference" |
409 |
die "setup failed" |
410 |
fi |
411 |
fi |
412 |
|
413 |
if use glw && ! use opengl; then |
414 |
ewarn "You set USE='glw -opengl'. GLw support needs OpenGL." |
415 |
ewarn "OpenGL support also requires X." |
416 |
die "Set opengl and X useflags." |
417 |
fi |
418 |
|
419 |
if use glw && ! built_with_use media-libs/mesa motif; then |
420 |
ewarn "GRASS GLw/OpenGL support needs mesa with motif headers." |
421 |
ewarn "Please rebuild mesa with motif support." |
422 |
die "Re-emerge mesa with motif." |
423 |
fi |
424 |
|
425 |
if use opengl && ! use X; then |
426 |
ewarn "GRASS OpenGL support needs X (will also pull in Tcl/Tk)." |
427 |
die "Please set the X useflag." |
428 |
fi |
429 |
} |
430 |
|
431 |
src_unpack() { |
432 |
unpack ${A} |
433 |
cd "${S}" |
434 |
|
435 |
epatch rpm/fedora/grass-readline.patch |
436 |
|
437 |
if use opengl; then |
438 |
epatch "${FILESDIR}"/${P}-html-nonviz.patch |
439 |
fi |
440 |
|
441 |
# patch missing math functions (yes, this is still needed) |
442 |
sed -i -e "s:\$(EXTRA_LIBS):\$(EXTRA_LIBS) \$(MATHLIB):g" include/Make/Shlib.make |
443 |
echo "MATHLIB=-lm" >> include/Make/Rules.make |
444 |
} |
445 |
|
446 |
src_compile() { |
447 |
local myconf |
448 |
use python || use wxindows && distutils_python_version |
449 |
|
450 |
myconf="--prefix=/usr --with-cxx --enable-shared \ |
451 |
--with-gdal=$(type -P gdal-config) --with-curses --with-proj \ |
452 |
--with-includes=/usr/include --with-libs=/usr/$(get_libdir) \ |
453 |
--with-proj-includes=/usr/include \ |
454 |
--with-proj-libs=/usr/$(get_libdir) \ |
455 |
--with-proj-share=/usr/share/proj" |
456 |
|
457 |
if use X; then |
458 |
if has_version ">=dev-lang/tcl-8.5"; then |
459 |
TCL_LIBDIR="/usr/$(get_libdir)/tcl8.5" |
460 |
else |
461 |
TCL_LIBDIR="/usr/$(get_libdir)/tcl8.4" |
462 |
fi |
463 |
myconf="${myconf} --with-tcltk --with-x \ |
464 |
--with-tcltk-includes=/usr/include \ |
465 |
--with-tcltk-libs=${TCL_LIBDIR}" |
466 |
if use wxwindows; then |
467 |
WX_GTK_VER=2.8 |
468 |
need-wxwidgets gtk2 |
469 |
LIBGDI="/usr/$(get_libdir)/python${PYVER}/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so" |
470 |
myconf="${myconf} --with-python --with-wxwidgets=${WX_CONFIG}" |
471 |
fi |
472 |
else |
473 |
myconf="${myconf} --without-tcltk --without-x" |
474 |
fi |
475 |
|
476 |
if use opengl; then |
477 |
myconf="${myconf} --with-opengl --with-opengl-libs=/usr/$(get_libdir)/opengl/xorg-x11/lib" |
478 |
if use glw; then |
479 |
myconf="${myconf} --with-glw" |
480 |
fi |
481 |
else |
482 |
myconf="${myconf} --without-opengl --without-glw" |
483 |
fi |
484 |
|
485 |
# Should handle either older or latest without intervention; |
486 |
# this won't work forever, but it should be okay for a while... |
487 |
if use ffmpeg; then |
488 |
myconf="${myconf} --with-ffmpeg \ |
489 |
--with-ffmpeg-libs=/usr/$(get_libdir)" |
490 |
if has_version ">=media-video/ffmpeg-0.4.9_p20080326" ; then |
491 |
# must pass multiple include dirs now; if you have a better |
492 |
# way to do this, please speak up and file a bug :) |
493 |
myconf="${myconf} --with-ffmpeg-includes=/usr/include/libav*" |
494 |
else |
495 |
myconf="${myconf} --with-ffmpeg-includes=/usr/include/ffmpeg" |
496 |
fi |
497 |
else |
498 |
myconf="${myconf} --without-ffmpeg" |
499 |
fi |
500 |
|
501 |
if use truetype; then |
502 |
myconf="${myconf} --with-freetype \ |
503 |
--with-freetype-includes=/usr/include/freetype2" |
504 |
fi |
505 |
|
506 |
if use mysql; then |
507 |
myconf="${myconf} --with-mysql --with-mysql-includes=/usr/include/mysql \ |
508 |
--with-mysql-libs=/usr/$(get_libdir)/mysql" |
509 |
else |
510 |
myconf="${myconf} --without-mysql" |
511 |
fi |
512 |
|
513 |
if use sqlite; then |
514 |
myconf="${myconf} --with-sqlite --with-sqlite-includes=/usr/include \ |
515 |
--with-sqlite-libs=/usr/$(get_libdir)" |
516 |
else |
517 |
myconf="${myconf} --without-sqlite" |
518 |
fi |
519 |
|
520 |
econf ${myconf} --with-libs=/usr/$(get_libdir) \ |
521 |
$(use_enable amd64 64bit) \ |
522 |
$(use_with fftw) \ |
523 |
$(use_with gmath blas) \ |
524 |
$(use_with gmath lapack) \ |
525 |
$(use_with jpeg) \ |
526 |
$(use_enable largefile) \ |
527 |
$(use_with opengl motif) \ |
528 |
$(use_with nls) \ |
529 |
$(use_with odbc) \ |
530 |
$(use_with png) \ |
531 |
$(use_with postgres) \ |
532 |
$(use_with python) \ |
533 |
$(use_with readline) \ |
534 |
$(use_with tiff) || die "configure failed!" |
535 |
|
536 |
if use wxwindows; then |
537 |
emake -j1 |
538 |
ln -sf "${LIBGDI}" dist.x86_64-pc-linux-gnu/lib/libgdi.so \ |
539 |
|| die "making libgdi link failed" |
540 |
cd gui/wxpython/vdigit |
541 |
make default -j1 || die "make vdigit failed!" |
542 |
else |
543 |
emake -j1 || die "make failed!" |
544 |
fi |
545 |
} |
546 |
|
547 |
src_install() { |
548 |
elog "Grass Home is ${MY_PM}" |
549 |
make install UNIX_BIN="${D}"usr/bin BINDIR="${D}"usr/bin \ |
550 |
PREFIX="${D}"usr INST_DIR="${D}"usr/${MY_PM} \ |
551 |
|| die "make install failed!" |
552 |
|
553 |
if use wxwindows; then |
554 |
ln -sf "${LIBGDI}" "${D}"usr/${MY_PM}/lib/libgdi.so \ |
555 |
|| die "failed to find wx library" |
556 |
fi |
557 |
|
558 |
# get rid of DESTDIR in script path |
559 |
sed -i -e "s@${D}@/@" "${D}"usr/bin/${MY_PM} |
560 |
|
561 |
# Grass Extension Manager conflicts with ruby gems |
562 |
mv "${D}"usr/bin/gem "${D}"usr/${MY_PM}/bin/ |
563 |
|
564 |
ebegin "Adding env.d and desktop entry for Grass6..." |
565 |
generate_files |
566 |
doenvd 99grass-6 |
567 |
if use X; then |
568 |
doicon "${FILESDIR}"/grass_icon.png |
569 |
domenu ${MY_PM}-grass.desktop |
570 |
fi |
571 |
eend ${?} |
572 |
} |
573 |
|
574 |
pkg_postinst() { |
575 |
use X && fdo-mime_desktop_database_update |
576 |
|
577 |
elog "Note this version re-enables support for threads in Tcl and Tk." |
578 |
elog "Enable the threads USE flag and rebuild to try it." |
579 |
} |
580 |
|
581 |
pkg_postrm() { |
582 |
use X && fdo-mime_desktop_database_update |
583 |
} |
584 |
|
585 |
generate_files() { |
586 |
local GUI="-gui" |
587 |
use wxwindows && GUI="-wxpython" |
588 |
|
589 |
cat <<-EOF > 99grass-6 |
590 |
GRASS_LD_LIBRARY_PATH="/usr/${MY_PM}/lib" |
591 |
LDPATH="/usr/${MY_PM}/lib" |
592 |
MANPATH="/usr/${MY_PM}/man" |
593 |
GRASS_HOME="/usr/${MY_PM}" |
594 |
EOF |
595 |
|
596 |
cat <<-EOF > ${MY_PM}-grass.desktop |
597 |
[Desktop Entry] |
598 |
Encoding=UTF-8 |
599 |
Version=1.0 |
600 |
Name=Grass ${PV} |
601 |
Type=Application |
602 |
Comment=GRASS Open Source GIS, derived from the original US Army Corps of Engineers project. |
603 |
Exec=${TERM} -T Grass -e /usr/bin/${MY_PM} ${GUI} |
604 |
Path= |
605 |
Icon=grass_icon.png |
606 |
Categories=Science;Education; |
607 |
Terminal=true |
608 |
EOF |
609 |
} |
610 |
|
611 |
|
612 |
|
613 |
-- |
614 |
gentoo-commits@l.g.o mailing list |