Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-misc/elmer-meshgen2d/, sci-misc/elmer-front/files/, sci-misc/elmer-post/, ...
Date: Tue, 03 Dec 2013 14:53:07
Message-Id: 1386055505.8933ae04575f3bc41a535502523c0c7d01cc87ac.jlec@gentoo
1 commit: 8933ae04575f3bc41a535502523c0c7d01cc87ac
2 Author: Christophe Paccolat <chr.paccolat <AT> mycable <DOT> ch>
3 AuthorDate: Mon Dec 3 13:18:53 2012 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 3 07:25:05 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=8933ae04
7
8 sci-misc/elmer-meta: New ebuilds for Elmer FEM packages
9
10 ---
11 sci-libs/elmer-eio/elmer-eio-5.4.1-r1.ebuild | 50 +++++++
12 sci-libs/elmer-eio/elmer-eio-9999.ebuild | 47 +++++++
13 .../elmer-hutiter/elmer-hutiter-5.4.1-r1.ebuild | 53 +++++++
14 sci-libs/elmer-hutiter/elmer-hutiter-9999.ebuild | 48 +++++++
15 sci-libs/matc/matc-5.4.1-r1.ebuild | 56 ++++++++
16 sci-libs/matc/matc-9999.ebuild | 58 ++++++++
17 .../elmer-elmergrid-5.4.1-r1.ebuild | 51 +++++++
18 .../elmer-elmergrid/elmer-elmergrid-9999.ebuild | 48 +++++++
19 sci-misc/elmer-fem/elmer-fem-5.4.1-r1.ebuild | 65 +++++++++
20 sci-misc/elmer-fem/elmer-fem-9999.ebuild | 65 +++++++++
21 .../files/elmer-fem-Makefile-install.patch | 13 ++
22 sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild | 56 ++++++++
23 sci-misc/elmer-front/elmer-front-9999.ebuild | 54 ++++++++
24 .../files/elmer-front-Makefile-install.patch | 18 +++
25 sci-misc/elmer-gui/elmer-gui-9999.ebuild | 153 +++++++++++++++++++++
26 .../elmer-gui/files/elmer-gui-netgen-fixes.patch | 11 ++
27 sci-misc/elmer-gui/metadata.xml | 18 +++
28 .../elmer-meshgen2d-5.4.1-r1.ebuild | 49 +++++++
29 .../elmer-meshgen2d/elmer-meshgen2d-9999.ebuild | 46 +++++++
30 sci-misc/elmer-meta/elmer-meta-5.4.1-r1.ebuild | 23 ++++
31 sci-misc/elmer-meta/elmer-meta-9999.ebuild | 23 ++++
32 sci-misc/elmer-post/elmer-post-5.4.1-r1.ebuild | 56 ++++++++
33 sci-misc/elmer-post/elmer-post-9999.ebuild | 58 ++++++++
34 23 files changed, 1119 insertions(+)
35
36 diff --git a/sci-libs/elmer-eio/elmer-eio-5.4.1-r1.ebuild b/sci-libs/elmer-eio/elmer-eio-5.4.1-r1.ebuild
37 new file mode 100644
38 index 0000000..7bcefdf
39 --- /dev/null
40 +++ b/sci-libs/elmer-eio/elmer-eio-5.4.1-r1.ebuild
41 @@ -0,0 +1,50 @@
42 +# Copyright 1999-2007 Gentoo Foundation
43 +# Distributed under the terms of the GNU General Public License v2
44 +# $Header: $
45 +
46 +EAPI="4"
47 +
48 +inherit autotools eutils
49 +
50 +ELMER_ROOT="elmerfem"
51 +MY_PN=${PN/elmer-/}
52 +
53 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmer input output library"
54 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
55 +SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
56 +RESTRICT="mirror"
57 +
58 +LICENSE="GPL-2"
59 +SLOT="0"
60 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
61 +IUSE="debug"
62 +
63 +DEPEND="sys-libs/glibc"
64 +RDEPEND="${DEPEND}"
65 +
66 +S="${WORKDIR}/${PV}/eio"
67 +
68 +src_unpack() {
69 + unpack ${A}
70 + cd "${S}"
71 + # configure must be executable
72 + chmod +x configure
73 + eautoreconf
74 +}
75 +
76 +src_compile() {
77 + cd "${S}"
78 + local myconf
79 + export FC="gfortran"
80 + export F77="gfortran"
81 + use debug &&
82 + myconf="${myconf} --with-debug" ||
83 + myconf="${myconf} --without-debug"
84 + econf $myconf || die "econf failed"
85 + emake || die "emake failed"
86 +}
87 +
88 +
89 +src_install() {
90 + emake DESTDIR="${D}" install || die "emake install failed"
91 +}
92
93 diff --git a/sci-libs/elmer-eio/elmer-eio-9999.ebuild b/sci-libs/elmer-eio/elmer-eio-9999.ebuild
94 new file mode 100644
95 index 0000000..db54478
96 --- /dev/null
97 +++ b/sci-libs/elmer-eio/elmer-eio-9999.ebuild
98 @@ -0,0 +1,47 @@
99 +# Copyright 1999-2007 Gentoo Foundation
100 +# Distributed under the terms of the GNU General Public License v2
101 +# $Header: $
102 +
103 +EAPI="4"
104 +
105 +inherit autotools eutils subversion
106 +
107 +ELMER_ROOT="elmerfem"
108 +MY_PN=${PN/elmer-/}
109 +
110 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmer input output library"
111 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
112 +#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
113 +SRC_URI=""
114 +RESTRICT="mirror"
115 +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
116 +ESVN_PROJECT="${MY_PN}"
117 +
118 +LICENSE="GPL-2"
119 +SLOT="0"
120 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
121 +IUSE="debug"
122 +
123 +DEPEND="sys-libs/glibc"
124 +RDEPEND="${DEPEND}"
125 +
126 +S="${WORKDIR}/${PV}/eio"
127 +
128 +src_prepare() {
129 + #unpack ${A}
130 + cd "${S}"
131 + # configure must be executable
132 + #chmod +x configure
133 + eautoreconf
134 +}
135 +
136 +src_configure() {
137 + cd "${S}"
138 + local myconf
139 + export FC="gfortran"
140 + export F77="gfortran"
141 + use debug &&
142 + myconf="${myconf} --with-debug" ||
143 + myconf="${myconf} --without-debug"
144 + econf $myconf || die "econf failed"
145 +}
146
147 diff --git a/sci-libs/elmer-hutiter/elmer-hutiter-5.4.1-r1.ebuild b/sci-libs/elmer-hutiter/elmer-hutiter-5.4.1-r1.ebuild
148 new file mode 100644
149 index 0000000..c9be1bc
150 --- /dev/null
151 +++ b/sci-libs/elmer-hutiter/elmer-hutiter-5.4.1-r1.ebuild
152 @@ -0,0 +1,53 @@
153 +# Copyright 1999-2007 Gentoo Foundation
154 +# Distributed under the terms of the GNU General Public License v2
155 +# $Header: $
156 +
157 +EAPI="4"
158 +
159 +inherit autotools eutils
160 +
161 +ELMER_ROOT="elmerfem"
162 +MY_PN=${PN/elmer-/}
163 +
164 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, hutiter library"
165 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
166 +SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
167 +RESTRICT="mirror"
168 +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/"
169 +ESVN_PROJECT="${MY_PN}"
170 +
171 +LICENSE="GPL-2"
172 +SLOT="0"
173 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
174 +IUSE="debug"
175 +DEPEND="sys-libs/glibc
176 + virtual/blas"
177 +RDEPEND="${DEPEND}"
178 +
179 +S="${WORKDIR}/${PV}/hutiter"
180 +
181 +src_unpack() {
182 + unpack ${A}
183 + cd "${S}"
184 + # configure must be executable
185 + chmod +x configure
186 + eautoreconf
187 +}
188 +
189 +src_compile() {
190 + cd "${S}"
191 + local myconf
192 + export FC="gfortran"
193 + export F77="gfortran"
194 + myconf="$myconf --with-blas"
195 + use debug &&
196 + myconf="${myconf} --with-debug" ||
197 + myconf="${myconf} --without-debug"
198 + econf $myconf || die "econf failed"
199 + emake || die "emake failed"
200 +}
201 +
202 +
203 +src_install() {
204 + emake DESTDIR="${D}" install || die "emake install failed"
205 +}
206
207 diff --git a/sci-libs/elmer-hutiter/elmer-hutiter-9999.ebuild b/sci-libs/elmer-hutiter/elmer-hutiter-9999.ebuild
208 new file mode 100644
209 index 0000000..d0f90b9
210 --- /dev/null
211 +++ b/sci-libs/elmer-hutiter/elmer-hutiter-9999.ebuild
212 @@ -0,0 +1,48 @@
213 +# Copyright 1999-2007 Gentoo Foundation
214 +# Distributed under the terms of the GNU General Public License v2
215 +# $Header: $
216 +
217 +EAPI="4"
218 +
219 +inherit autotools eutils subversion
220 +
221 +ELMER_ROOT="elmerfem"
222 +MY_PN=${PN/elmer-/}
223 +
224 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, hutiter library"
225 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
226 +#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
227 +SRC_URI=""
228 +RESTRICT="mirror"
229 +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
230 +ESVN_PROJECT="${MY_PN}"
231 +
232 +LICENSE="GPL-2"
233 +SLOT="0"
234 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
235 +IUSE="debug"
236 +DEPEND="sys-libs/glibc
237 + virtual/blas"
238 +RDEPEND="${DEPEND}"
239 +
240 +S="${WORKDIR}/${PV}/hutiter"
241 +
242 +src_prepare() {
243 + #unpack ${A}
244 + cd "${S}"
245 + # configure must be executable
246 + #chmod +x configure
247 + eautoreconf
248 +}
249 +
250 +src_configure() {
251 + cd "${S}"
252 + local myconf
253 + export FC="gfortran"
254 + export F77="gfortran"
255 + myconf="$myconf --with-blas"
256 + use debug &&
257 + myconf="${myconf} --with-debug" ||
258 + myconf="${myconf} --without-debug"
259 + econf $myconf || die "econf failed"
260 +}
261
262 diff --git a/sci-libs/matc/matc-5.4.1-r1.ebuild b/sci-libs/matc/matc-5.4.1-r1.ebuild
263 new file mode 100644
264 index 0000000..1af24ac
265 --- /dev/null
266 +++ b/sci-libs/matc/matc-5.4.1-r1.ebuild
267 @@ -0,0 +1,56 @@
268 +# Copyright 1999-2007 Gentoo Foundation
269 +# Distributed under the terms of the GNU General Public License v2
270 +# $Header: $
271 +
272 +EAPI="4"
273 +
274 +inherit autotools eutils
275 +
276 +ELMER_ROOT="elmerfem"
277 +MY_PN=${PN/elmer-/}
278 +
279 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, math C lib"
280 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
281 +SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz
282 +doc? ( http://www.nic.funet.fi/pub/sci/physics/elmer/doc/MATCManual.pdf )"
283 +RESTRICT="mirror"
284 +
285 +LICENSE="GPL-2"
286 +SLOT="0"
287 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
288 +IUSE="doc debug"
289 +DEPEND="sys-libs/ncurses
290 + sys-libs/readline
291 + sys-libs/glibc"
292 +
293 +RDEPEND="${DEPEND}"
294 +
295 +S="${WORKDIR}/${PV}/matc"
296 +
297 +src_unpack() {
298 + #unpack ${ELMER_ROOT}/${PV}.tar.gz
299 + unpack ${PV}.tar.gz
300 + cd "${S}"
301 + # we have to make configure executable. SVN snapshot...
302 + chmod +x configure
303 + eautoreconf
304 +}
305 +
306 +src_compile() {
307 + cd "${S}"
308 + local myconf
309 + export FC="gfortran"
310 + export F77="gfortran"
311 + use debug &&
312 + myconf="${myconf} --with-debug" ||
313 + myconf="${myconf} --without-debug"
314 + econf $myconf || die "econf failed"
315 + emake || die "emake failed"
316 +}
317 +
318 +
319 +src_install() {
320 + insinto /usr/share/doc/${PF}
321 + use doc && doins ${DISTDIR}/MATCManual.pdf
322 + emake DESTDIR="${D}" install || die "emake install failed"
323 +}
324
325 diff --git a/sci-libs/matc/matc-9999.ebuild b/sci-libs/matc/matc-9999.ebuild
326 new file mode 100644
327 index 0000000..4868fb1
328 --- /dev/null
329 +++ b/sci-libs/matc/matc-9999.ebuild
330 @@ -0,0 +1,58 @@
331 +# Copyright 1999-2007 Gentoo Foundation
332 +# Distributed under the terms of the GNU General Public License v2
333 +# $Header: $
334 +
335 +EAPI="4"
336 +
337 +inherit autotools eutils subversion
338 +
339 +ELMER_ROOT="elmerfem"
340 +MY_PN=${PN/elmer-/}
341 +
342 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, math C lib"
343 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
344 +#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz
345 +#doc? ( http://www.nic.funet.fi/pub/sci/physics/elmer/doc/MATCManual.pdf )"
346 +SRC_URI="doc? ( http://www.nic.funet.fi/pub/sci/physics/elmer/doc/MATCManual.pdf )"
347 +RESTRICT="mirror"
348 +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
349 +ESVN_PROJECT="${MY_PN}"
350 +
351 +LICENSE="GPL-2"
352 +SLOT="0"
353 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
354 +IUSE="doc debug"
355 +DEPEND="sys-libs/ncurses
356 + sys-libs/readline
357 + sys-libs/glibc"
358 +
359 +RDEPEND="${DEPEND}"
360 +
361 +S="${WORKDIR}/${PV}/matc"
362 +
363 +src_prepare() {
364 + #unpack ${ELMER_ROOT}/${PV}.tar.gz
365 + #unpack ${PV}.tar.gz
366 + cd "${S}"
367 + # we have to make configure executable. SVN snapshot...
368 + #chmod +x configure
369 + eautoreconf
370 +}
371 +
372 +src_configure() {
373 + cd "${S}"
374 + local myconf
375 + export FC="gfortran"
376 + export F77="gfortran"
377 + use debug &&
378 + myconf="${myconf} --with-debug" ||
379 + myconf="${myconf} --without-debug"
380 + econf $myconf || die "econf failed"
381 +}
382 +
383 +
384 +src_install() {
385 + insinto /usr/share/doc/${PF}
386 + use doc && doins ${DISTDIR}/MATCManual.pdf
387 + emake DESTDIR="${D}" install || die "emake install failed"
388 +}
389
390 diff --git a/sci-misc/elmer-elmergrid/elmer-elmergrid-5.4.1-r1.ebuild b/sci-misc/elmer-elmergrid/elmer-elmergrid-5.4.1-r1.ebuild
391 new file mode 100644
392 index 0000000..1e1bd6f
393 --- /dev/null
394 +++ b/sci-misc/elmer-elmergrid/elmer-elmergrid-5.4.1-r1.ebuild
395 @@ -0,0 +1,51 @@
396 +# Copyright 1999-2007 Gentoo Foundation
397 +# Distributed under the terms of the GNU General Public License v2
398 +# $Header: $
399 +
400 +EAPI="4"
401 +
402 +inherit autotools eutils
403 +
404 +ELMER_ROOT="elmerfem"
405 +MY_PN=${PN/elmer-/}
406 +
407 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmergrid"
408 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
409 +SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
410 +RESTRICT="mirror"
411 +
412 +LICENSE="GPL-2"
413 +SLOT="0"
414 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
415 +IUSE="debug"
416 +DEPEND="sci-libs/matc
417 + sys-libs/glibc"
418 +RDEPEND="${DEPEND}"
419 +
420 +S="${WORKDIR}/${PV}/elmergrid"
421 +
422 +src_unpack() {
423 + unpack ${A}
424 + cd "${S}"
425 + # configure must be executable
426 + chmod +x configure
427 + eautoreconf
428 +}
429 +
430 +src_compile() {
431 + cd "${S}"
432 + local myconf
433 + export FC="gfortran"
434 + export F77="gfortran"
435 + use debug &&
436 + myconf="${myconf} --with-debug" ||
437 + myconf="${myconf} --without-debug"
438 + myconf="$myconf --with-matc"
439 + econf $myconf || die "econf failed"
440 + emake || die "emake failed"
441 +}
442 +
443 +
444 +src_install() {
445 + emake DESTDIR="${D}" install || die "emake install failed"
446 +}
447
448 diff --git a/sci-misc/elmer-elmergrid/elmer-elmergrid-9999.ebuild b/sci-misc/elmer-elmergrid/elmer-elmergrid-9999.ebuild
449 new file mode 100644
450 index 0000000..67549e9
451 --- /dev/null
452 +++ b/sci-misc/elmer-elmergrid/elmer-elmergrid-9999.ebuild
453 @@ -0,0 +1,48 @@
454 +# Copyright 1999-2007 Gentoo Foundation
455 +# Distributed under the terms of the GNU General Public License v2
456 +# $Header: $
457 +
458 +EAPI="4"
459 +
460 +inherit autotools eutils subversion
461 +
462 +ELMER_ROOT="elmerfem"
463 +MY_PN=${PN/elmer-/}
464 +
465 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmergrid"
466 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
467 +#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
468 +SRC_URI=""
469 +RESTRICT="mirror"
470 +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
471 +ESVN_PROJECT="${MY_PN}"
472 +
473 +LICENSE="GPL-2"
474 +SLOT="0"
475 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
476 +IUSE="debug"
477 +DEPEND="sci-libs/matc
478 + sys-libs/glibc"
479 +RDEPEND="${DEPEND}"
480 +
481 +S="${WORKDIR}/${PV}/elmergrid"
482 +
483 +src_prepare() {
484 + #unpack ${A}
485 + cd "${S}"
486 + # configure must be executable
487 + #chmod +x configure
488 + eautoreconf
489 +}
490 +
491 +src_configure() {
492 + cd "${S}"
493 + local myconf
494 + export FC="gfortran"
495 + export F77="gfortran"
496 + use debug &&
497 + myconf="${myconf} --with-debug" ||
498 + myconf="${myconf} --without-debug"
499 + myconf="$myconf --with-matc"
500 + econf $myconf || die "econf failed"
501 +}
502
503 diff --git a/sci-misc/elmer-fem/elmer-fem-5.4.1-r1.ebuild b/sci-misc/elmer-fem/elmer-fem-5.4.1-r1.ebuild
504 new file mode 100644
505 index 0000000..ce60dcc
506 --- /dev/null
507 +++ b/sci-misc/elmer-fem/elmer-fem-5.4.1-r1.ebuild
508 @@ -0,0 +1,65 @@
509 +# Copyright 1999-2007 Gentoo Foundation
510 +# Distributed under the terms of the GNU General Public License v2
511 +# $Header: $
512 +
513 +EAPI="4"
514 +
515 +inherit autotools eutils
516 +
517 +ELMER_ROOT="elmerfem"
518 +MY_PN=${PN/elmer-/}
519 +
520 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, main fem"
521 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
522 +SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
523 +RESTRICT="mirror"
524 +
525 +LICENSE="GPL-2"
526 +SLOT="0"
527 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
528 +IUSE="mpi debug"
529 +DEPEND="sys-libs/glibc
530 + virtual/blas
531 + virtual/lapack
532 + sci-libs/arpack
533 + sci-libs/matc
534 + sci-libs/elmer-hutiter
535 + sci-libs/elmer-eio
536 + mpi? ( sys-cluster/mpich2 )"
537 +RDEPEND="${DEPEND}"
538 +# Note this seems to only configure correctly with the elmer version of umfpack
539 +# But this doesn't stop it from compiling / working without it
540 +
541 +S="${WORKDIR}/${PV}/fem"
542 +
543 +src_unpack() {
544 + unpack ${A}
545 + cd "${S}"
546 + # configure must be executable
547 + chmod +x configure
548 + epatch ${FILESDIR}/elmer-fem-Makefile-install.patch
549 + eautoreconf
550 +}
551 +
552 +src_compile() {
553 + cd "${S}"
554 + local myconf
555 + export FC="gfortran"
556 + export F77="gfortran"
557 + myconf="$myconf --with-blas --with-lapack --with-arpack --with-huti"
558 + myconf="$myconf --with-eiof --with-matc"
559 + #TODO parpack support is not picked up from the arpack package
560 + #TODO --with-hypre --with-umfpack
561 +
562 + use mpi && myconf="$myconf --with-mpi --with-mpi-dir=/usr"
563 + use debug &&
564 + myconf="${myconf} --with-debug" ||
565 + myconf="${myconf} --without-debug"
566 + econf $myconf || die "econf failed"
567 + emake || die "emake failed"
568 +}
569 +
570 +
571 +src_install() {
572 + emake ELMER_SOLVER_DATADIR="${D}/usr/share/elmersolver" DESTDIR="${D}" install || die "emake install failed"
573 +}
574
575 diff --git a/sci-misc/elmer-fem/elmer-fem-9999.ebuild b/sci-misc/elmer-fem/elmer-fem-9999.ebuild
576 new file mode 100644
577 index 0000000..9d97083
578 --- /dev/null
579 +++ b/sci-misc/elmer-fem/elmer-fem-9999.ebuild
580 @@ -0,0 +1,65 @@
581 +# Copyright 1999-2007 Gentoo Foundation
582 +# Distributed under the terms of the GNU General Public License v2
583 +# $Header: $
584 +
585 +EAPI="4"
586 +
587 +inherit autotools eutils subversion
588 +
589 +ELMER_ROOT="elmerfem"
590 +MY_PN=${PN/elmer-/}
591 +
592 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, main fem"
593 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
594 +#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
595 +SRC_URI=""
596 +RESTRICT="mirror"
597 +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
598 +ESVN_PROJECT="${MY_PN}"
599 +
600 +LICENSE="GPL-2"
601 +SLOT="0"
602 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
603 +IUSE="mpi debug"
604 +DEPEND="sys-libs/glibc
605 + virtual/blas
606 + virtual/lapack
607 + sci-libs/arpack
608 + sci-libs/matc
609 + sci-libs/elmer-hutiter
610 + sci-libs/elmer-eio
611 + mpi? ( sys-cluster/mpich2 )"
612 +RDEPEND="${DEPEND}"
613 +
614 +S="${WORKDIR}/${PV}/fem"
615 +
616 +src_prepare() {
617 + #unpack ${A}
618 + cd "${S}"
619 + # configure must be executable
620 + #chmod +x configure
621 + epatch ${FILESDIR}/elmer-fem-Makefile-install.patch
622 + eautoreconf
623 +}
624 +
625 +src_configure() {
626 + cd "${S}"
627 + local myconf
628 + export FC="gfortran"
629 + export F77="gfortran"
630 + myconf="$myconf --with-blas --with-lapack --with-arpack --with-huti"
631 + myconf="$myconf --with-eiof --with-matc"
632 + #TODO parpack support is not picked up from the arpack package
633 + #TODO --with-hypre --with-umfpack
634 +
635 + use mpi && myconf="$myconf --with-mpi --with-mpi-dir=/usr"
636 + use debug &&
637 + myconf="${myconf} --with-debug" ||
638 + myconf="${myconf} --without-debug"
639 + econf $myconf || die "econf failed"
640 +}
641 +
642 +
643 +src_install() {
644 + emake ELMER_SOLVER_DATADIR="/usr/share/elmersolver" DESTDIR=${D} install || die "emake install failed"
645 +}
646
647 diff --git a/sci-misc/elmer-fem/files/elmer-fem-Makefile-install.patch b/sci-misc/elmer-fem/files/elmer-fem-Makefile-install.patch
648 new file mode 100644
649 index 0000000..d0de4fe
650 --- /dev/null
651 +++ b/sci-misc/elmer-fem/files/elmer-fem-Makefile-install.patch
652 @@ -0,0 +1,13 @@
653 +--- fem/src/Makefile.am.old 2012-11-12 14:50:05.435767716 +0100
654 ++++ fem/src/Makefile.am 2012-11-12 14:51:29.271802187 +0100
655 +@@ -154,8 +154,9 @@
656 +
657 +
658 + install-exec-local:
659 +- @echo "Installing stuff to ${prefix}/bin"
660 ++ @echo "Installing stuff to ${DESTDIR}${prefix}/bin"
661 + $(MKDIR) $(DESTDIR)$(prefix)/bin
662 ++ $(MKDIR) $(DESTDIR)$(prefix)/lib
663 + $(CP) ElmerSolver$(EXEEXT) $(DESTDIR)$(prefix)/bin
664 + $(CP) ViewFactors$(EXEEXT) $(DESTDIR)$(prefix)/bin
665 + $(CP) GebhardtFactors$(EXEEXT) $(DESTDIR)$(prefix)/bin
666
667 diff --git a/sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild b/sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild
668 new file mode 100644
669 index 0000000..b2b98f7
670 --- /dev/null
671 +++ b/sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild
672 @@ -0,0 +1,56 @@
673 +# Copyright 1999-2007 Gentoo Foundation
674 +# Distributed under the terms of the GNU General Public License v2
675 +# $Header: $
676 +
677 +EAPI="4"
678 +
679 +inherit autotools eutils
680 +
681 +ELMER_ROOT="elmerfem"
682 +MY_PN=${PN/elmer-/}
683 +
684 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmer frontend"
685 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
686 +SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
687 +RESTRICT="mirror"
688 +
689 +LICENSE="GPL-2"
690 +SLOT="0"
691 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
692 +IUSE="X debug"
693 +DEPEND="=dev-lang/tcl-8.4*
694 + =dev-lang/tk-8.4*
695 + sci-libs/matc
696 + sci-libs/elmer-eio
697 + virtual/opengl"
698 +RDEPEND="${DEPEND}"
699 +
700 +S="${WORKDIR}/${PV}/front"
701 +
702 +src_unpack() {
703 + unpack ${A}
704 + cd "${S}"
705 + # configure must be executable
706 + chmod +x configure
707 + epatch ${FILESDIR}/elmer-front-Makefile-install.patch
708 + eautoreconf
709 +}
710 +
711 +src_compile() {
712 + cd "${S}"
713 + local myconf
714 + export FC="gfortran"
715 + export F77="gfortran"
716 + myconf="${myconf} --with-eioc --with-matc --with-tcltk"
717 + use debug &&
718 + myconf="${myconf} --with-debug" ||
719 + myconf="${myconf} --without-debug"
720 + econf $myconf \
721 + $(use_with X x) \
722 + || die "econf failed"
723 + emake || die "emake failed"
724 +}
725 +
726 +src_install() {
727 + emake DESTDIR="${D}" install || die "emake install failed"
728 +}
729
730 diff --git a/sci-misc/elmer-front/elmer-front-9999.ebuild b/sci-misc/elmer-front/elmer-front-9999.ebuild
731 new file mode 100644
732 index 0000000..0548410
733 --- /dev/null
734 +++ b/sci-misc/elmer-front/elmer-front-9999.ebuild
735 @@ -0,0 +1,54 @@
736 +# Copyright 1999-2007 Gentoo Foundation
737 +# Distributed under the terms of the GNU General Public License v2
738 +# $Header: $
739 +
740 +EAPI="4"
741 +
742 +inherit autotools eutils subversion
743 +
744 +ELMER_ROOT="elmerfem"
745 +MY_PN=${PN/elmer-/}
746 +
747 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmer frontend"
748 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
749 +#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
750 +SRC_URI=""
751 +RESTRICT="mirror"
752 +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
753 +ESVN_PROJECT="${MY_PN}"
754 +
755 +LICENSE="GPL-2"
756 +SLOT="0"
757 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
758 +IUSE="X debug"
759 +DEPEND="dev-lang/tcl
760 + dev-lang/tk
761 + sci-libs/matc
762 + sci-libs/elmer-eio
763 + virtual/opengl"
764 +RDEPEND="${DEPEND}"
765 +
766 +S="${WORKDIR}/${PV}/front"
767 +
768 +src_prepare() {
769 + #unpack ${A}
770 + cd "${S}"
771 + # configure must be executable
772 + #chmod +x configure
773 + epatch ${FILESDIR}/elmer-front-Makefile-install.patch
774 + eautoreconf
775 +}
776 +
777 +src_configure() {
778 + cd "${S}"
779 + local myconf
780 + export FC="gfortran"
781 + export F77="gfortran"
782 + myconf="${myconf} --with-eioc --with-matc --with-tcltk"
783 + use debug &&
784 + myconf="${myconf} --with-debug" ||
785 + myconf="${myconf} --without-debug"
786 + econf $myconf \
787 + $(use_with X x) \
788 + || die "econf failed"
789 +}
790
791 diff --git a/sci-misc/elmer-front/files/elmer-front-Makefile-install.patch b/sci-misc/elmer-front/files/elmer-front-Makefile-install.patch
792 new file mode 100644
793 index 0000000..6ecbe6f
794 --- /dev/null
795 +++ b/sci-misc/elmer-front/files/elmer-front-Makefile-install.patch
796 @@ -0,0 +1,18 @@
797 +--- front/src/Makefile.am.old 2012-11-12 13:25:34.331046988 +0100
798 ++++ front/src/Makefile.am 2012-11-12 13:27:36.055100527 +0100
799 +@@ -85,13 +85,13 @@
800 + endif
801 +
802 + install-data-local:
803 +- @echo "Installing tcl scripts to ${prefix}/share/elmerfront/tcl"
804 ++ @echo "Installing tcl scripts to ${DESTDIR}${prefix}/share/elmerfront/tcl"
805 +
806 + mkdir -p "$(DESTDIR)${prefix}/share/elmerfront/tcl"
807 + cp -r ./tcl/* "$(DESTDIR)${prefix}/share/elmerfront/tcl"
808 + rm -rf `find $(DESTDIR)$(prefix)/share/elmerfront/tcl -name .svn`
809 +
810 +- @echo "Installing *.edf *.rgb to ${prefix}/share/elmerfront/lib"
811 ++ @echo "Installing *.edf *.rgb to ${DESTDIR}${prefix}/share/elmerfront/lib"
812 + mkdir -p "$(DESTDIR)${prefix}/share/elmerfront/lib"
813 + cp -r ./lib/* "$(DESTDIR)${prefix}/share/elmerfront/lib"
814 + rm -rf `find $(DESTDIR)$(prefix)/share/elmerfront/lib -name .svn`
815
816 diff --git a/sci-misc/elmer-gui/elmer-gui-9999.ebuild b/sci-misc/elmer-gui/elmer-gui-9999.ebuild
817 new file mode 100644
818 index 0000000..2d006c9
819 --- /dev/null
820 +++ b/sci-misc/elmer-gui/elmer-gui-9999.ebuild
821 @@ -0,0 +1,153 @@
822 +# Copyright 1999-2007 Gentoo Foundation
823 +# Distributed under the terms of the GNU General Public License v2
824 +# $Header: $
825 +
826 +EAPI="4"
827 +
828 +inherit autotools eutils qt4-r2 subversion python versionator
829 +
830 +ELMER_ROOT="elmerfem"
831 +MY_PN=ElmerGUI
832 +
833 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, New Elmer pre-processor"
834 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
835 +#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
836 +SRC_URI=""
837 +RESTRICT="mirror"
838 +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
839 +ESVN_PROJECT="${MY_PN}"
840 +
841 +LICENSE="GPL-2"
842 +SLOT="0"
843 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
844 +IUSE="debug bundled_netgen matc opencascade python qwt vtk"
845 +
846 +REQUIRED_USE="opencascade? ( vtk )"
847 +
848 +DEPEND="=sci-libs/elmer-eio-${PV}
849 + !bundled_netgen? ( sci-mathematics/netgen )
850 + virtual/glu
851 + || ( =sci-misc/elmer-post-${PV}
852 + >=sci-libs/vtk-5.0.0[qt4,python?]
853 + )
854 + matc? ( =sci-libs/matc-${PV} )
855 + vtk? ( >=sci-libs/vtk-5.0.0[qt4,python?] )
856 + opencascade? ( >=sci-libs/opencascade-6.3 )
857 + python? ( <=dev-python/pythonqt-1.1 )
858 + x11-libs/qwt:5
859 + || ( >=x11-libs/qt-core-4.3:4
860 + ( x11-libs/qt-core:5
861 + x11-libs/qt-xml:5
862 + )
863 + )
864 + >=x11-libs/qt-opengl-4.3
865 + >=x11-libs/qt-script-4.3"
866 +RDEPEND="${DEPEND}"
867 +
868 +src_prepare() {
869 + # Do not build bundled matc and PythonQt
870 + sed -i \
871 + -e 's/matc//' \
872 + -e 's/PythonQt//' \
873 + ${MY_PN}.pro || die
874 +
875 + # Ideally we would avoid buildling thirdparty code
876 + # and use a separate package but this currently fails
877 + # to build. ElmerGui provides its own patched version of
878 + # NetGen. Currently considering backporting them to
879 + # sci-mathematics/netgen
880 + if use !bundled_netgen; then
881 + sed -i 's/netgen//' ${MY_PN}.pro || die
882 + sed -i \
883 + -e "s:INCLUDEPATH += ../netgen/libsrc/interface:INCLUDEPATH += ${EPREFIX}/usr/include:g" \
884 + -e "s:LIBPATH += ../netgen/ngcore:LIBPATH += ${EPREFIX}/usr/$(get_libdir):g" \
885 + -e "s:LIBS += -lng:LIBS += -lnglib:g" \
886 + Application/Application.pro || die
887 +
888 + eerror "${PN} currently fails to build against sci-mathematics/netgen."
889 + fi
890 +
891 + # Fix install path
892 + sed -i \
893 + -e 's|unix: ELMER_HOME = /usr/local|unix: ELMER_HOME = /usr|g' \
894 + ${MY_PN}.pri || die
895 +
896 + if use amd64; then
897 + sed -i 's/32/64/' ${MY_PN}.pri || die
898 + fi
899 +
900 + if use !qwt; then
901 + # QWT is activated by default, disable
902 + sed -i 's/DEFINES += EG_QWT//' ${MY_PN}.pri || die
903 + else
904 + # Detect x11-libs/qwt version and fix paths
905 + local QWT_VER=`echo $(best_version "x11-libs/qwt") | sed 's:x11-libs/qwt-::'`
906 + local QWT_MAJOR=$(get_major_version ${QWT_VER})
907 + local QWT_MAJOR=5
908 +
909 + if [[ ${QWT_MAJOR} -lt 6 ]]; then
910 + local QWT_LIBS=-lqwt
911 + else
912 + local QWT_LIBS=-lqwt${QWT_MAJOR}
913 + fi
914 +
915 + local QWT_INCLUDEPATH=${EPREFIX}/usr/include/qwt${QWT_MAJOR}
916 + local QWT_LIBPATH=${EPREFIX}/usr/$(get_libdir)
917 +
918 + sed -i \
919 + -e "s:QWT_INCLUDEPATH.*:QWT_INCLUDEPATH = ${QWT_INCLUDEPATH}:g" \
920 + -e "s:QWT_LIBPATH.*:QWT_LIBPATH = ${QWT_LIBPATH}:g" \
921 + -e "s:QWT_LIBS.*:QWT_LIBS = ${QWT_LIBS}:g" \
922 + ${MY_PN}.pri || die
923 + fi
924 +
925 + if use !vtk; then
926 + # VTK is activated by default, disable
927 + sed -i 's/DEFINES += EG_VTK//' ${MY_PN}.pri || die
928 + else
929 + # Fix paths
930 + local VTK_VER=`echo ${VTK_DIR} | cut -d/ -f4`
931 + sed -i \
932 + -e "s:VTK_INCLUDEPATH.*:VTK_INCLUDEPATH = ${EPREFIX}/usr/include/${VTK_VER}:g" \
933 + -e "s:VTK_LIBPATH.*:VTK_LIBPATH = ${VTK_DIR}:g" \
934 + ${MY_PN}.pri || die
935 + fi
936 +
937 + if use !matc; then
938 + sed -i 's/DEFINES += EG_MATC//' ${MY_PN}.pri || die
939 + else
940 + sed -i "s:LIBPATH += ../matc/lib:LIBPATH += ${EPREFIX}/usr/$(get_libdir):g" Application/Application.pro || die
941 + fi
942 +
943 + if use !opencascade; then
944 + # Opencascade is activated by default, disable
945 + sed -i 's/DEFINES += EG_OCC//' ${MY_PN}.pri || die
946 + else
947 + # Fix paths, depend on portage version of opencascade
948 + sed -i \
949 + -e "s:OCC_INCLUDEPATH.*:OCC_INCLUDEPATH = ${CASROOT}/inc:g" \
950 + -e "s:OCC_LIBPATH.*:OCC_LIBPATH = ${CASROOT}/$(get_libdir):g" \
951 + ${MY_PN}.pri || die
952 + fi
953 +
954 + if use python; then
955 + # Fix paths
956 + sed -i \
957 + -e 's/DEFINES -= EG_PYTHON/DEFINES += EG_PYTHON/g' \
958 + -e "s:PY_INCLUDEPATH.*:PY_INCLUDEPATH = $(python_get_includedir):g" \
959 + -e "s:PY_LIBPATH.*:PY_LIBPATH = $(python_get_libdir):g" \
960 + -e "s:PY_LIBS.*:PY_LIBS = $(python_get_library -l):g" \
961 + ${MY_PN}.pri || die
962 +
963 + # Fix paths and invert Python(Qt) linking order to work with --Wl,--as-needed
964 + sed -i \
965 + -e "s:INCLUDEPATH += $${PY_INCLUDEPATH} ../PythonQt/src:${EPREFIX}/usr/include/PythonQt:g" \
966 + -e "s:LIBPATH += $${PY_LIBPATH} ../PythonQt/lib:${EPREFIX}/usr/$(get_libdir):g" \
967 + -e "s:LIBS += $${PY_LIBS} -lPythonQt:LIBS += -lPythonQt $${PY_LIBS}:" \
968 + Application/Application.pro || die
969 + fi
970 +}
971 +
972 +src_configure() {
973 + eqmake4 "${S}" ./${MY_PN}.pro
974 +}
975
976 diff --git a/sci-misc/elmer-gui/files/elmer-gui-netgen-fixes.patch b/sci-misc/elmer-gui/files/elmer-gui-netgen-fixes.patch
977 new file mode 100644
978 index 0000000..0918c8e
979 --- /dev/null
980 +++ b/sci-misc/elmer-gui/files/elmer-gui-netgen-fixes.patch
981 @@ -0,0 +1,11 @@
982 +--- /var/tmp/portage/sci-misc/elmer-gui-9999/work/elmer-gui-9999/Application/src/mainwindow.cpp.auto-diff-temp 2012-11-15 17:16:40.602279216 +0100
983 ++++ /var/tmp/portage/sci-misc/elmer-gui-9999/work/elmer-gui-9999/Application/src/mainwindow.cpp 2012-11-15 17:16:52.226288133 +0100
984 +@@ -4778,7 +4778,7 @@
985 +
986 + mp.maxh = meshControl->nglibMaxH.toDouble();
987 + mp.fineness = meshControl->nglibFineness.toDouble();
988 +- mp.secondorder = 0;
989 ++ mp.second_order = 0;
990 + mp.meshsize_filename = backgroundmesh;
991 +
992 + if(ngDim == 3) {
993
994 diff --git a/sci-misc/elmer-gui/metadata.xml b/sci-misc/elmer-gui/metadata.xml
995 new file mode 100644
996 index 0000000..0a4f88a
997 --- /dev/null
998 +++ b/sci-misc/elmer-gui/metadata.xml
999 @@ -0,0 +1,18 @@
1000 +<?xml version="1.0" encoding="UTF-8"?>
1001 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
1002 +<pkgmetadata>
1003 + <upstream>
1004 + <bugs-to>mailto:chr.paccolat@×××××××.ch</bugs-to>
1005 + <changelog></changelog>
1006 + <doc>http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3</doc>
1007 + </upstream>
1008 + <maintainer><email>chr.paccolat@×××××××.ch</email></maintainer>
1009 + <use>
1010 + <flag name="matc">Add support to evaluate mathematical expression in input files / postprocessor </flag>
1011 + <flag name="opencascade">Use OpenCASCADE to import CAD files</flag>
1012 + <flag name="python">Add support for python scripting in the pre-processor</flag>
1013 + <flag name="qwt">Pull-in QWT to enable the convergence monitor</flag>
1014 + <flag name="vtk">Add support for the VTK post-processor backend (visualization)</flag>
1015 + </use>
1016 +</pkgmetadata>
1017 +
1018
1019 diff --git a/sci-misc/elmer-meshgen2d/elmer-meshgen2d-5.4.1-r1.ebuild b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-5.4.1-r1.ebuild
1020 new file mode 100644
1021 index 0000000..66f7210
1022 --- /dev/null
1023 +++ b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-5.4.1-r1.ebuild
1024 @@ -0,0 +1,49 @@
1025 +# Copyright 1999-2007 Gentoo Foundation
1026 +# Distributed under the terms of the GNU General Public License v2
1027 +# $Header: $
1028 +
1029 +EAPI="4"
1030 +
1031 +inherit autotools eutils
1032 +
1033 +ELMER_ROOT="elmerfem"
1034 +MY_PN=${PN/elmer-/}
1035 +
1036 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, meshgen2d"
1037 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
1038 +SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
1039 +RESTRICT="mirror"
1040 +
1041 +LICENSE="GPL-2"
1042 +SLOT="0"
1043 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
1044 +IUSE="debug"
1045 +DEPEND="sys-libs/glibc"
1046 +RDEPEND="${DEPEND}"
1047 +
1048 +S="${WORKDIR}/${PV}/meshgen2d"
1049 +
1050 +src_unpack() {
1051 + unpack ${A}
1052 + cd "${S}"
1053 + # configure must be executable
1054 + chmod +x configure
1055 + eautoreconf
1056 +}
1057 +
1058 +src_compile() {
1059 + cd "${S}"
1060 + local myconf
1061 + export FC="gfortran"
1062 + export F77="gfortran"
1063 + use debug &&
1064 + myconf="${myconf} --with-debug" ||
1065 + myconf="${myconf} --without-debug"
1066 + econf $myconf || die "econf failed"
1067 + emake || die "emake failed"
1068 +}
1069 +
1070 +
1071 +src_install() {
1072 + emake DESTDIR="${D}" install || die "emake install failed"
1073 +}
1074
1075 diff --git a/sci-misc/elmer-meshgen2d/elmer-meshgen2d-9999.ebuild b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-9999.ebuild
1076 new file mode 100644
1077 index 0000000..fafab98
1078 --- /dev/null
1079 +++ b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-9999.ebuild
1080 @@ -0,0 +1,46 @@
1081 +# Copyright 1999-2007 Gentoo Foundation
1082 +# Distributed under the terms of the GNU General Public License v2
1083 +# $Header: $
1084 +
1085 +EAPI="4"
1086 +
1087 +inherit autotools eutils subversion
1088 +
1089 +ELMER_ROOT="elmerfem"
1090 +MY_PN=${PN/elmer-/}
1091 +
1092 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, meshgen2d"
1093 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
1094 +#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
1095 +SRC_URI=""
1096 +RESTRICT="mirror"
1097 +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
1098 +ESVN_PROJECT="${MY_PN}"
1099 +
1100 +LICENSE="GPL-2"
1101 +SLOT="0"
1102 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
1103 +IUSE="debug"
1104 +DEPEND="sys-libs/glibc"
1105 +RDEPEND="${DEPEND}"
1106 +
1107 +S="${WORKDIR}/${PV}/meshgen2d"
1108 +
1109 +src_prepare() {
1110 + #unpack ${A}
1111 + cd "${S}"
1112 + # configure must be executable
1113 + #chmod +x configure
1114 + eautoreconf
1115 +}
1116 +
1117 +src_configure() {
1118 + cd "${S}"
1119 + local myconf
1120 + export FC="gfortran"
1121 + export F77="gfortran"
1122 + use debug &&
1123 + myconf="${myconf} --with-debug" ||
1124 + myconf="${myconf} --without-debug"
1125 + econf $myconf || die "econf failed"
1126 +}
1127
1128 diff --git a/sci-misc/elmer-meta/elmer-meta-5.4.1-r1.ebuild b/sci-misc/elmer-meta/elmer-meta-5.4.1-r1.ebuild
1129 new file mode 100644
1130 index 0000000..d2142ca
1131 --- /dev/null
1132 +++ b/sci-misc/elmer-meta/elmer-meta-5.4.1-r1.ebuild
1133 @@ -0,0 +1,23 @@
1134 +# Copyright 1999-2008 Gentoo Foundation
1135 +# Distributed under the terms of the GNU General Public License v2
1136 +
1137 +inherit eutils
1138 +
1139 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools"
1140 +
1141 +LICENSE="GPL-2"
1142 +SLOT="0"
1143 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
1144 +
1145 +DEPEND="=sci-libs/matc-5.4.1*
1146 + =sci-misc/elmer-elmergrid-5.4.1*
1147 + =sci-misc/elmer-meshgen2d-5.4.1*
1148 + =sci-libs/elmer-eio-5.4.1*
1149 + =sci-libs/elmer-hutiter-5.4.1*
1150 + =sci-misc/elmer-fem-5.4.1*
1151 + =sci-misc/elmer-post-5.4.1*
1152 + =sci-misc/elmer-front-5.4.1*"
1153 +
1154 +pkg_postinst() {
1155 + einfo "Elmer ebuilds may need further development. Please inform any problems or improvements in http://bugs.gentoo.org/show_bug.cgi?id=221013"
1156 +}
1157
1158 diff --git a/sci-misc/elmer-meta/elmer-meta-9999.ebuild b/sci-misc/elmer-meta/elmer-meta-9999.ebuild
1159 new file mode 100644
1160 index 0000000..4ef5f65
1161 --- /dev/null
1162 +++ b/sci-misc/elmer-meta/elmer-meta-9999.ebuild
1163 @@ -0,0 +1,23 @@
1164 +# Copyright 1999-2008 Gentoo Foundation
1165 +# Distributed under the terms of the GNU General Public License v2
1166 +
1167 +inherit eutils
1168 +
1169 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools"
1170 +
1171 +LICENSE="GPL-2"
1172 +SLOT="0"
1173 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
1174 +
1175 +DEPEND="=sci-libs/matc-9999*
1176 + =sci-misc/elmer-elmergrid-9999*
1177 + =sci-misc/elmer-meshgen2d-9999*
1178 + =sci-libs/elmer-eio-9999*
1179 + =sci-libs/elmer-hutiter-9999*
1180 + =sci-misc/elmer-fem-9999*
1181 + =sci-misc/elmer-post-9999*
1182 + =sci-misc/elmer-gui-9999*"
1183 +
1184 +pkg_postinst() {
1185 + einfo "Elmer ebuilds may need further development. Please inform any problems or improvements in http://bugs.gentoo.org/show_bug.cgi?id=221013"
1186 +}
1187
1188 diff --git a/sci-misc/elmer-post/elmer-post-5.4.1-r1.ebuild b/sci-misc/elmer-post/elmer-post-5.4.1-r1.ebuild
1189 new file mode 100644
1190 index 0000000..459f6ce
1191 --- /dev/null
1192 +++ b/sci-misc/elmer-post/elmer-post-5.4.1-r1.ebuild
1193 @@ -0,0 +1,56 @@
1194 +# Copyright 1999-2007 Gentoo Foundation
1195 +# Distributed under the terms of the GNU General Public License v2
1196 +# $Header: $
1197 +
1198 +EAPI="4"
1199 +
1200 +inherit autotools eutils flag-o-matic
1201 +
1202 +ELMER_ROOT="elmerfem"
1203 +MY_PN=${PN/elmer-/}
1204 +
1205 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmerpost"
1206 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
1207 +SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
1208 +RESTRICT="mirror"
1209 +
1210 +LICENSE="GPL-2"
1211 +SLOT="0"
1212 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
1213 +IUSE="opengl X debug"
1214 +DEPEND="=dev-lang/tcl-8.4*
1215 + =dev-lang/tk-8.4*
1216 + opengl? ( virtual/opengl
1217 + media-libs/ftgl )
1218 + sci-libs/matc"
1219 +RDEPEND="${DEPEND}"
1220 +
1221 +S="${WORKDIR}/${PV}/post"
1222 +
1223 +src_unpack() {
1224 + unpack ${A}
1225 + cd "${S}"
1226 + # configure must be executable
1227 + chmod +x configure
1228 + eautoreconf
1229 +}
1230 +
1231 +src_compile() {
1232 + cd "${S}"
1233 + local myconf
1234 + export FC="gfortran"
1235 + export F77="gfortran"
1236 + myconf="${myconf} --with-matc"
1237 + use opengl && append-cppflags -I/usr/include/FTGL
1238 + use debug &&
1239 + myconf="${myconf} --with-debug" ||
1240 + myconf="${myconf} --without-debug"
1241 + econf $myconf \
1242 + $(use_with X x) \
1243 + || die "econf failed"
1244 + emake || die "emake failed"
1245 +}
1246 +
1247 +src_install() {
1248 + emake ELMER_POST_DATADIR="${D}/usr/share/elmerpost" DESTDIR="${D}" install || die "emake install failed"
1249 +}
1250
1251 diff --git a/sci-misc/elmer-post/elmer-post-9999.ebuild b/sci-misc/elmer-post/elmer-post-9999.ebuild
1252 new file mode 100644
1253 index 0000000..5ad6804
1254 --- /dev/null
1255 +++ b/sci-misc/elmer-post/elmer-post-9999.ebuild
1256 @@ -0,0 +1,58 @@
1257 +# Copyright 1999-2007 Gentoo Foundation
1258 +# Distributed under the terms of the GNU General Public License v2
1259 +# $Header: $
1260 +
1261 +EAPI="4"
1262 +
1263 +inherit autotools eutils flag-o-matic subversion
1264 +
1265 +ELMER_ROOT="elmerfem"
1266 +MY_PN=${PN/elmer-/}
1267 +
1268 +DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmerpost"
1269 +HOMEPAGE="http://www.csc.fi/english/pages/elmer"
1270 +#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
1271 +SRC_URI=""
1272 +RESTRICT="mirror"
1273 +ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
1274 +ESVN_PROJECT="${MY_PN}"
1275 +
1276 +LICENSE="GPL-2"
1277 +SLOT="0"
1278 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
1279 +IUSE="opengl X debug"
1280 +DEPEND="dev-lang/tcl
1281 + dev-lang/tk
1282 + opengl? ( virtual/opengl
1283 + media-libs/ftgl )
1284 + sci-libs/matc"
1285 +RDEPEND="${DEPEND}"
1286 +
1287 +S="${WORKDIR}/${PV}/post"
1288 +
1289 +src_prepare() {
1290 + #unpack ${A}
1291 + cd "${S}"
1292 + # configure must be executable
1293 + #chmod +x configure
1294 + eautoreconf
1295 +}
1296 +
1297 +src_configure() {
1298 + cd "${S}"
1299 + local myconf
1300 + export FC="gfortran"
1301 + export F77="gfortran"
1302 + myconf="${myconf} --with-matc"
1303 + use opengl && append-cppflags -I/usr/include/FTGL
1304 + use debug &&
1305 + myconf="${myconf} --with-debug" ||
1306 + myconf="${myconf} --without-debug"
1307 + econf $myconf \
1308 + $(use_with X x) \
1309 + || die "econf failed"
1310 +}
1311 +
1312 +src_install() {
1313 + emake ELMER_POST_DATADIR="/usr/share/${MY_PN}" DESTDIR="${D}" install || die "emake install failed"
1314 +}