* [gentoo-commits] proj/sci:master commit in: sci-misc/elmer-meshgen2d/, sci-misc/elmer-front/files/, sci-misc/elmer-post/, ...
@ 2013-12-03 14:53 Justin Lecher
0 siblings, 0 replies; only message in thread
From: Justin Lecher @ 2013-12-03 14:53 UTC (permalink / raw
To: gentoo-commits
commit: 8933ae04575f3bc41a535502523c0c7d01cc87ac
Author: Christophe Paccolat <chr.paccolat <AT> mycable <DOT> ch>
AuthorDate: Mon Dec 3 13:18:53 2012 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Dec 3 07:25:05 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=8933ae04
sci-misc/elmer-meta: New ebuilds for Elmer FEM packages
---
sci-libs/elmer-eio/elmer-eio-5.4.1-r1.ebuild | 50 +++++++
sci-libs/elmer-eio/elmer-eio-9999.ebuild | 47 +++++++
.../elmer-hutiter/elmer-hutiter-5.4.1-r1.ebuild | 53 +++++++
sci-libs/elmer-hutiter/elmer-hutiter-9999.ebuild | 48 +++++++
sci-libs/matc/matc-5.4.1-r1.ebuild | 56 ++++++++
sci-libs/matc/matc-9999.ebuild | 58 ++++++++
.../elmer-elmergrid-5.4.1-r1.ebuild | 51 +++++++
.../elmer-elmergrid/elmer-elmergrid-9999.ebuild | 48 +++++++
sci-misc/elmer-fem/elmer-fem-5.4.1-r1.ebuild | 65 +++++++++
sci-misc/elmer-fem/elmer-fem-9999.ebuild | 65 +++++++++
.../files/elmer-fem-Makefile-install.patch | 13 ++
sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild | 56 ++++++++
sci-misc/elmer-front/elmer-front-9999.ebuild | 54 ++++++++
.../files/elmer-front-Makefile-install.patch | 18 +++
sci-misc/elmer-gui/elmer-gui-9999.ebuild | 153 +++++++++++++++++++++
.../elmer-gui/files/elmer-gui-netgen-fixes.patch | 11 ++
sci-misc/elmer-gui/metadata.xml | 18 +++
.../elmer-meshgen2d-5.4.1-r1.ebuild | 49 +++++++
.../elmer-meshgen2d/elmer-meshgen2d-9999.ebuild | 46 +++++++
sci-misc/elmer-meta/elmer-meta-5.4.1-r1.ebuild | 23 ++++
sci-misc/elmer-meta/elmer-meta-9999.ebuild | 23 ++++
sci-misc/elmer-post/elmer-post-5.4.1-r1.ebuild | 56 ++++++++
sci-misc/elmer-post/elmer-post-9999.ebuild | 58 ++++++++
23 files changed, 1119 insertions(+)
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
new file mode 100644
index 0000000..7bcefdf
--- /dev/null
+++ b/sci-libs/elmer-eio/elmer-eio-5.4.1-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmer input output library"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug"
+
+DEPEND="sys-libs/glibc"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PV}/eio"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # configure must be executable
+ chmod +x configure
+ eautoreconf
+}
+
+src_compile() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ econf $myconf || die "econf failed"
+ emake || die "emake failed"
+}
+
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+}
diff --git a/sci-libs/elmer-eio/elmer-eio-9999.ebuild b/sci-libs/elmer-eio/elmer-eio-9999.ebuild
new file mode 100644
index 0000000..db54478
--- /dev/null
+++ b/sci-libs/elmer-eio/elmer-eio-9999.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils subversion
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmer input output library"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
+SRC_URI=""
+RESTRICT="mirror"
+ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
+ESVN_PROJECT="${MY_PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug"
+
+DEPEND="sys-libs/glibc"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PV}/eio"
+
+src_prepare() {
+ #unpack ${A}
+ cd "${S}"
+ # configure must be executable
+ #chmod +x configure
+ eautoreconf
+}
+
+src_configure() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ econf $myconf || die "econf failed"
+}
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
new file mode 100644
index 0000000..c9be1bc
--- /dev/null
+++ b/sci-libs/elmer-hutiter/elmer-hutiter-5.4.1-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, hutiter library"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
+RESTRICT="mirror"
+ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/"
+ESVN_PROJECT="${MY_PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug"
+DEPEND="sys-libs/glibc
+ virtual/blas"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PV}/hutiter"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # configure must be executable
+ chmod +x configure
+ eautoreconf
+}
+
+src_compile() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ myconf="$myconf --with-blas"
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ econf $myconf || die "econf failed"
+ emake || die "emake failed"
+}
+
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+}
diff --git a/sci-libs/elmer-hutiter/elmer-hutiter-9999.ebuild b/sci-libs/elmer-hutiter/elmer-hutiter-9999.ebuild
new file mode 100644
index 0000000..d0f90b9
--- /dev/null
+++ b/sci-libs/elmer-hutiter/elmer-hutiter-9999.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils subversion
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, hutiter library"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
+SRC_URI=""
+RESTRICT="mirror"
+ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
+ESVN_PROJECT="${MY_PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug"
+DEPEND="sys-libs/glibc
+ virtual/blas"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PV}/hutiter"
+
+src_prepare() {
+ #unpack ${A}
+ cd "${S}"
+ # configure must be executable
+ #chmod +x configure
+ eautoreconf
+}
+
+src_configure() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ myconf="$myconf --with-blas"
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ econf $myconf || die "econf failed"
+}
diff --git a/sci-libs/matc/matc-5.4.1-r1.ebuild b/sci-libs/matc/matc-5.4.1-r1.ebuild
new file mode 100644
index 0000000..1af24ac
--- /dev/null
+++ b/sci-libs/matc/matc-5.4.1-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, math C lib"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz
+doc? ( http://www.nic.funet.fi/pub/sci/physics/elmer/doc/MATCManual.pdf )"
+RESTRICT="mirror"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc debug"
+DEPEND="sys-libs/ncurses
+ sys-libs/readline
+ sys-libs/glibc"
+
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PV}/matc"
+
+src_unpack() {
+ #unpack ${ELMER_ROOT}/${PV}.tar.gz
+ unpack ${PV}.tar.gz
+ cd "${S}"
+ # we have to make configure executable. SVN snapshot...
+ chmod +x configure
+ eautoreconf
+}
+
+src_compile() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ econf $myconf || die "econf failed"
+ emake || die "emake failed"
+}
+
+
+src_install() {
+ insinto /usr/share/doc/${PF}
+ use doc && doins ${DISTDIR}/MATCManual.pdf
+ emake DESTDIR="${D}" install || die "emake install failed"
+}
diff --git a/sci-libs/matc/matc-9999.ebuild b/sci-libs/matc/matc-9999.ebuild
new file mode 100644
index 0000000..4868fb1
--- /dev/null
+++ b/sci-libs/matc/matc-9999.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils subversion
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, math C lib"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz
+#doc? ( http://www.nic.funet.fi/pub/sci/physics/elmer/doc/MATCManual.pdf )"
+SRC_URI="doc? ( http://www.nic.funet.fi/pub/sci/physics/elmer/doc/MATCManual.pdf )"
+RESTRICT="mirror"
+ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
+ESVN_PROJECT="${MY_PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc debug"
+DEPEND="sys-libs/ncurses
+ sys-libs/readline
+ sys-libs/glibc"
+
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PV}/matc"
+
+src_prepare() {
+ #unpack ${ELMER_ROOT}/${PV}.tar.gz
+ #unpack ${PV}.tar.gz
+ cd "${S}"
+ # we have to make configure executable. SVN snapshot...
+ #chmod +x configure
+ eautoreconf
+}
+
+src_configure() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ econf $myconf || die "econf failed"
+}
+
+
+src_install() {
+ insinto /usr/share/doc/${PF}
+ use doc && doins ${DISTDIR}/MATCManual.pdf
+ emake DESTDIR="${D}" install || die "emake install failed"
+}
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
new file mode 100644
index 0000000..1e1bd6f
--- /dev/null
+++ b/sci-misc/elmer-elmergrid/elmer-elmergrid-5.4.1-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmergrid"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug"
+DEPEND="sci-libs/matc
+ sys-libs/glibc"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PV}/elmergrid"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # configure must be executable
+ chmod +x configure
+ eautoreconf
+}
+
+src_compile() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ myconf="$myconf --with-matc"
+ econf $myconf || die "econf failed"
+ emake || die "emake failed"
+}
+
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+}
diff --git a/sci-misc/elmer-elmergrid/elmer-elmergrid-9999.ebuild b/sci-misc/elmer-elmergrid/elmer-elmergrid-9999.ebuild
new file mode 100644
index 0000000..67549e9
--- /dev/null
+++ b/sci-misc/elmer-elmergrid/elmer-elmergrid-9999.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils subversion
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmergrid"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
+SRC_URI=""
+RESTRICT="mirror"
+ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
+ESVN_PROJECT="${MY_PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug"
+DEPEND="sci-libs/matc
+ sys-libs/glibc"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PV}/elmergrid"
+
+src_prepare() {
+ #unpack ${A}
+ cd "${S}"
+ # configure must be executable
+ #chmod +x configure
+ eautoreconf
+}
+
+src_configure() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ myconf="$myconf --with-matc"
+ econf $myconf || die "econf failed"
+}
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
new file mode 100644
index 0000000..ce60dcc
--- /dev/null
+++ b/sci-misc/elmer-fem/elmer-fem-5.4.1-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, main fem"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="mpi debug"
+DEPEND="sys-libs/glibc
+ virtual/blas
+ virtual/lapack
+ sci-libs/arpack
+ sci-libs/matc
+ sci-libs/elmer-hutiter
+ sci-libs/elmer-eio
+ mpi? ( sys-cluster/mpich2 )"
+RDEPEND="${DEPEND}"
+# Note this seems to only configure correctly with the elmer version of umfpack
+# But this doesn't stop it from compiling / working without it
+
+S="${WORKDIR}/${PV}/fem"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # configure must be executable
+ chmod +x configure
+ epatch ${FILESDIR}/elmer-fem-Makefile-install.patch
+ eautoreconf
+}
+
+src_compile() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ myconf="$myconf --with-blas --with-lapack --with-arpack --with-huti"
+ myconf="$myconf --with-eiof --with-matc"
+ #TODO parpack support is not picked up from the arpack package
+ #TODO --with-hypre --with-umfpack
+
+ use mpi && myconf="$myconf --with-mpi --with-mpi-dir=/usr"
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ econf $myconf || die "econf failed"
+ emake || die "emake failed"
+}
+
+
+src_install() {
+ emake ELMER_SOLVER_DATADIR="${D}/usr/share/elmersolver" DESTDIR="${D}" install || die "emake install failed"
+}
diff --git a/sci-misc/elmer-fem/elmer-fem-9999.ebuild b/sci-misc/elmer-fem/elmer-fem-9999.ebuild
new file mode 100644
index 0000000..9d97083
--- /dev/null
+++ b/sci-misc/elmer-fem/elmer-fem-9999.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils subversion
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, main fem"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
+SRC_URI=""
+RESTRICT="mirror"
+ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
+ESVN_PROJECT="${MY_PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="mpi debug"
+DEPEND="sys-libs/glibc
+ virtual/blas
+ virtual/lapack
+ sci-libs/arpack
+ sci-libs/matc
+ sci-libs/elmer-hutiter
+ sci-libs/elmer-eio
+ mpi? ( sys-cluster/mpich2 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PV}/fem"
+
+src_prepare() {
+ #unpack ${A}
+ cd "${S}"
+ # configure must be executable
+ #chmod +x configure
+ epatch ${FILESDIR}/elmer-fem-Makefile-install.patch
+ eautoreconf
+}
+
+src_configure() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ myconf="$myconf --with-blas --with-lapack --with-arpack --with-huti"
+ myconf="$myconf --with-eiof --with-matc"
+ #TODO parpack support is not picked up from the arpack package
+ #TODO --with-hypre --with-umfpack
+
+ use mpi && myconf="$myconf --with-mpi --with-mpi-dir=/usr"
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ econf $myconf || die "econf failed"
+}
+
+
+src_install() {
+ emake ELMER_SOLVER_DATADIR="/usr/share/elmersolver" DESTDIR=${D} install || die "emake install failed"
+}
diff --git a/sci-misc/elmer-fem/files/elmer-fem-Makefile-install.patch b/sci-misc/elmer-fem/files/elmer-fem-Makefile-install.patch
new file mode 100644
index 0000000..d0de4fe
--- /dev/null
+++ b/sci-misc/elmer-fem/files/elmer-fem-Makefile-install.patch
@@ -0,0 +1,13 @@
+--- fem/src/Makefile.am.old 2012-11-12 14:50:05.435767716 +0100
++++ fem/src/Makefile.am 2012-11-12 14:51:29.271802187 +0100
+@@ -154,8 +154,9 @@
+
+
+ install-exec-local:
+- @echo "Installing stuff to ${prefix}/bin"
++ @echo "Installing stuff to ${DESTDIR}${prefix}/bin"
+ $(MKDIR) $(DESTDIR)$(prefix)/bin
++ $(MKDIR) $(DESTDIR)$(prefix)/lib
+ $(CP) ElmerSolver$(EXEEXT) $(DESTDIR)$(prefix)/bin
+ $(CP) ViewFactors$(EXEEXT) $(DESTDIR)$(prefix)/bin
+ $(CP) GebhardtFactors$(EXEEXT) $(DESTDIR)$(prefix)/bin
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
new file mode 100644
index 0000000..b2b98f7
--- /dev/null
+++ b/sci-misc/elmer-front/elmer-front-5.4.1-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmer frontend"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="X debug"
+DEPEND="=dev-lang/tcl-8.4*
+ =dev-lang/tk-8.4*
+ sci-libs/matc
+ sci-libs/elmer-eio
+ virtual/opengl"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PV}/front"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # configure must be executable
+ chmod +x configure
+ epatch ${FILESDIR}/elmer-front-Makefile-install.patch
+ eautoreconf
+}
+
+src_compile() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ myconf="${myconf} --with-eioc --with-matc --with-tcltk"
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ econf $myconf \
+ $(use_with X x) \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+}
diff --git a/sci-misc/elmer-front/elmer-front-9999.ebuild b/sci-misc/elmer-front/elmer-front-9999.ebuild
new file mode 100644
index 0000000..0548410
--- /dev/null
+++ b/sci-misc/elmer-front/elmer-front-9999.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils subversion
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmer frontend"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
+SRC_URI=""
+RESTRICT="mirror"
+ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
+ESVN_PROJECT="${MY_PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="X debug"
+DEPEND="dev-lang/tcl
+ dev-lang/tk
+ sci-libs/matc
+ sci-libs/elmer-eio
+ virtual/opengl"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PV}/front"
+
+src_prepare() {
+ #unpack ${A}
+ cd "${S}"
+ # configure must be executable
+ #chmod +x configure
+ epatch ${FILESDIR}/elmer-front-Makefile-install.patch
+ eautoreconf
+}
+
+src_configure() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ myconf="${myconf} --with-eioc --with-matc --with-tcltk"
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ econf $myconf \
+ $(use_with X x) \
+ || die "econf failed"
+}
diff --git a/sci-misc/elmer-front/files/elmer-front-Makefile-install.patch b/sci-misc/elmer-front/files/elmer-front-Makefile-install.patch
new file mode 100644
index 0000000..6ecbe6f
--- /dev/null
+++ b/sci-misc/elmer-front/files/elmer-front-Makefile-install.patch
@@ -0,0 +1,18 @@
+--- front/src/Makefile.am.old 2012-11-12 13:25:34.331046988 +0100
++++ front/src/Makefile.am 2012-11-12 13:27:36.055100527 +0100
+@@ -85,13 +85,13 @@
+ endif
+
+ install-data-local:
+- @echo "Installing tcl scripts to ${prefix}/share/elmerfront/tcl"
++ @echo "Installing tcl scripts to ${DESTDIR}${prefix}/share/elmerfront/tcl"
+
+ mkdir -p "$(DESTDIR)${prefix}/share/elmerfront/tcl"
+ cp -r ./tcl/* "$(DESTDIR)${prefix}/share/elmerfront/tcl"
+ rm -rf `find $(DESTDIR)$(prefix)/share/elmerfront/tcl -name .svn`
+
+- @echo "Installing *.edf *.rgb to ${prefix}/share/elmerfront/lib"
++ @echo "Installing *.edf *.rgb to ${DESTDIR}${prefix}/share/elmerfront/lib"
+ mkdir -p "$(DESTDIR)${prefix}/share/elmerfront/lib"
+ cp -r ./lib/* "$(DESTDIR)${prefix}/share/elmerfront/lib"
+ rm -rf `find $(DESTDIR)$(prefix)/share/elmerfront/lib -name .svn`
diff --git a/sci-misc/elmer-gui/elmer-gui-9999.ebuild b/sci-misc/elmer-gui/elmer-gui-9999.ebuild
new file mode 100644
index 0000000..2d006c9
--- /dev/null
+++ b/sci-misc/elmer-gui/elmer-gui-9999.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils qt4-r2 subversion python versionator
+
+ELMER_ROOT="elmerfem"
+MY_PN=ElmerGUI
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, New Elmer pre-processor"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
+SRC_URI=""
+RESTRICT="mirror"
+ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
+ESVN_PROJECT="${MY_PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug bundled_netgen matc opencascade python qwt vtk"
+
+REQUIRED_USE="opencascade? ( vtk )"
+
+DEPEND="=sci-libs/elmer-eio-${PV}
+ !bundled_netgen? ( sci-mathematics/netgen )
+ virtual/glu
+ || ( =sci-misc/elmer-post-${PV}
+ >=sci-libs/vtk-5.0.0[qt4,python?]
+ )
+ matc? ( =sci-libs/matc-${PV} )
+ vtk? ( >=sci-libs/vtk-5.0.0[qt4,python?] )
+ opencascade? ( >=sci-libs/opencascade-6.3 )
+ python? ( <=dev-python/pythonqt-1.1 )
+ x11-libs/qwt:5
+ || ( >=x11-libs/qt-core-4.3:4
+ ( x11-libs/qt-core:5
+ x11-libs/qt-xml:5
+ )
+ )
+ >=x11-libs/qt-opengl-4.3
+ >=x11-libs/qt-script-4.3"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # Do not build bundled matc and PythonQt
+ sed -i \
+ -e 's/matc//' \
+ -e 's/PythonQt//' \
+ ${MY_PN}.pro || die
+
+ # Ideally we would avoid buildling thirdparty code
+ # and use a separate package but this currently fails
+ # to build. ElmerGui provides its own patched version of
+ # NetGen. Currently considering backporting them to
+ # sci-mathematics/netgen
+ if use !bundled_netgen; then
+ sed -i 's/netgen//' ${MY_PN}.pro || die
+ sed -i \
+ -e "s:INCLUDEPATH += ../netgen/libsrc/interface:INCLUDEPATH += ${EPREFIX}/usr/include:g" \
+ -e "s:LIBPATH += ../netgen/ngcore:LIBPATH += ${EPREFIX}/usr/$(get_libdir):g" \
+ -e "s:LIBS += -lng:LIBS += -lnglib:g" \
+ Application/Application.pro || die
+
+ eerror "${PN} currently fails to build against sci-mathematics/netgen."
+ fi
+
+ # Fix install path
+ sed -i \
+ -e 's|unix: ELMER_HOME = /usr/local|unix: ELMER_HOME = /usr|g' \
+ ${MY_PN}.pri || die
+
+ if use amd64; then
+ sed -i 's/32/64/' ${MY_PN}.pri || die
+ fi
+
+ if use !qwt; then
+ # QWT is activated by default, disable
+ sed -i 's/DEFINES += EG_QWT//' ${MY_PN}.pri || die
+ else
+ # Detect x11-libs/qwt version and fix paths
+ local QWT_VER=`echo $(best_version "x11-libs/qwt") | sed 's:x11-libs/qwt-::'`
+ local QWT_MAJOR=$(get_major_version ${QWT_VER})
+ local QWT_MAJOR=5
+
+ if [[ ${QWT_MAJOR} -lt 6 ]]; then
+ local QWT_LIBS=-lqwt
+ else
+ local QWT_LIBS=-lqwt${QWT_MAJOR}
+ fi
+
+ local QWT_INCLUDEPATH=${EPREFIX}/usr/include/qwt${QWT_MAJOR}
+ local QWT_LIBPATH=${EPREFIX}/usr/$(get_libdir)
+
+ sed -i \
+ -e "s:QWT_INCLUDEPATH.*:QWT_INCLUDEPATH = ${QWT_INCLUDEPATH}:g" \
+ -e "s:QWT_LIBPATH.*:QWT_LIBPATH = ${QWT_LIBPATH}:g" \
+ -e "s:QWT_LIBS.*:QWT_LIBS = ${QWT_LIBS}:g" \
+ ${MY_PN}.pri || die
+ fi
+
+ if use !vtk; then
+ # VTK is activated by default, disable
+ sed -i 's/DEFINES += EG_VTK//' ${MY_PN}.pri || die
+ else
+ # Fix paths
+ local VTK_VER=`echo ${VTK_DIR} | cut -d/ -f4`
+ sed -i \
+ -e "s:VTK_INCLUDEPATH.*:VTK_INCLUDEPATH = ${EPREFIX}/usr/include/${VTK_VER}:g" \
+ -e "s:VTK_LIBPATH.*:VTK_LIBPATH = ${VTK_DIR}:g" \
+ ${MY_PN}.pri || die
+ fi
+
+ if use !matc; then
+ sed -i 's/DEFINES += EG_MATC//' ${MY_PN}.pri || die
+ else
+ sed -i "s:LIBPATH += ../matc/lib:LIBPATH += ${EPREFIX}/usr/$(get_libdir):g" Application/Application.pro || die
+ fi
+
+ if use !opencascade; then
+ # Opencascade is activated by default, disable
+ sed -i 's/DEFINES += EG_OCC//' ${MY_PN}.pri || die
+ else
+ # Fix paths, depend on portage version of opencascade
+ sed -i \
+ -e "s:OCC_INCLUDEPATH.*:OCC_INCLUDEPATH = ${CASROOT}/inc:g" \
+ -e "s:OCC_LIBPATH.*:OCC_LIBPATH = ${CASROOT}/$(get_libdir):g" \
+ ${MY_PN}.pri || die
+ fi
+
+ if use python; then
+ # Fix paths
+ sed -i \
+ -e 's/DEFINES -= EG_PYTHON/DEFINES += EG_PYTHON/g' \
+ -e "s:PY_INCLUDEPATH.*:PY_INCLUDEPATH = $(python_get_includedir):g" \
+ -e "s:PY_LIBPATH.*:PY_LIBPATH = $(python_get_libdir):g" \
+ -e "s:PY_LIBS.*:PY_LIBS = $(python_get_library -l):g" \
+ ${MY_PN}.pri || die
+
+ # Fix paths and invert Python(Qt) linking order to work with --Wl,--as-needed
+ sed -i \
+ -e "s:INCLUDEPATH += $${PY_INCLUDEPATH} ../PythonQt/src:${EPREFIX}/usr/include/PythonQt:g" \
+ -e "s:LIBPATH += $${PY_LIBPATH} ../PythonQt/lib:${EPREFIX}/usr/$(get_libdir):g" \
+ -e "s:LIBS += $${PY_LIBS} -lPythonQt:LIBS += -lPythonQt $${PY_LIBS}:" \
+ Application/Application.pro || die
+ fi
+}
+
+src_configure() {
+ eqmake4 "${S}" ./${MY_PN}.pro
+}
diff --git a/sci-misc/elmer-gui/files/elmer-gui-netgen-fixes.patch b/sci-misc/elmer-gui/files/elmer-gui-netgen-fixes.patch
new file mode 100644
index 0000000..0918c8e
--- /dev/null
+++ b/sci-misc/elmer-gui/files/elmer-gui-netgen-fixes.patch
@@ -0,0 +1,11 @@
+--- /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
++++ /var/tmp/portage/sci-misc/elmer-gui-9999/work/elmer-gui-9999/Application/src/mainwindow.cpp 2012-11-15 17:16:52.226288133 +0100
+@@ -4778,7 +4778,7 @@
+
+ mp.maxh = meshControl->nglibMaxH.toDouble();
+ mp.fineness = meshControl->nglibFineness.toDouble();
+- mp.secondorder = 0;
++ mp.second_order = 0;
+ mp.meshsize_filename = backgroundmesh;
+
+ if(ngDim == 3) {
diff --git a/sci-misc/elmer-gui/metadata.xml b/sci-misc/elmer-gui/metadata.xml
new file mode 100644
index 0000000..0a4f88a
--- /dev/null
+++ b/sci-misc/elmer-gui/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <bugs-to>mailto:chr.paccolat@mycable.ch</bugs-to>
+ <changelog></changelog>
+ <doc>http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3</doc>
+ </upstream>
+ <maintainer><email>chr.paccolat@mycable.ch</email></maintainer>
+ <use>
+ <flag name="matc">Add support to evaluate mathematical expression in input files / postprocessor </flag>
+ <flag name="opencascade">Use OpenCASCADE to import CAD files</flag>
+ <flag name="python">Add support for python scripting in the pre-processor</flag>
+ <flag name="qwt">Pull-in QWT to enable the convergence monitor</flag>
+ <flag name="vtk">Add support for the VTK post-processor backend (visualization)</flag>
+ </use>
+</pkgmetadata>
+
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
new file mode 100644
index 0000000..66f7210
--- /dev/null
+++ b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-5.4.1-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, meshgen2d"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug"
+DEPEND="sys-libs/glibc"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PV}/meshgen2d"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # configure must be executable
+ chmod +x configure
+ eautoreconf
+}
+
+src_compile() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ econf $myconf || die "econf failed"
+ emake || die "emake failed"
+}
+
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+}
diff --git a/sci-misc/elmer-meshgen2d/elmer-meshgen2d-9999.ebuild b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-9999.ebuild
new file mode 100644
index 0000000..fafab98
--- /dev/null
+++ b/sci-misc/elmer-meshgen2d/elmer-meshgen2d-9999.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils subversion
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, meshgen2d"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
+SRC_URI=""
+RESTRICT="mirror"
+ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
+ESVN_PROJECT="${MY_PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug"
+DEPEND="sys-libs/glibc"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PV}/meshgen2d"
+
+src_prepare() {
+ #unpack ${A}
+ cd "${S}"
+ # configure must be executable
+ #chmod +x configure
+ eautoreconf
+}
+
+src_configure() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ econf $myconf || die "econf failed"
+}
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
new file mode 100644
index 0000000..d2142ca
--- /dev/null
+++ b/sci-misc/elmer-meta/elmer-meta-5.4.1-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND="=sci-libs/matc-5.4.1*
+ =sci-misc/elmer-elmergrid-5.4.1*
+ =sci-misc/elmer-meshgen2d-5.4.1*
+ =sci-libs/elmer-eio-5.4.1*
+ =sci-libs/elmer-hutiter-5.4.1*
+ =sci-misc/elmer-fem-5.4.1*
+ =sci-misc/elmer-post-5.4.1*
+ =sci-misc/elmer-front-5.4.1*"
+
+pkg_postinst() {
+ einfo "Elmer ebuilds may need further development. Please inform any problems or improvements in http://bugs.gentoo.org/show_bug.cgi?id=221013"
+}
diff --git a/sci-misc/elmer-meta/elmer-meta-9999.ebuild b/sci-misc/elmer-meta/elmer-meta-9999.ebuild
new file mode 100644
index 0000000..4ef5f65
--- /dev/null
+++ b/sci-misc/elmer-meta/elmer-meta-9999.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND="=sci-libs/matc-9999*
+ =sci-misc/elmer-elmergrid-9999*
+ =sci-misc/elmer-meshgen2d-9999*
+ =sci-libs/elmer-eio-9999*
+ =sci-libs/elmer-hutiter-9999*
+ =sci-misc/elmer-fem-9999*
+ =sci-misc/elmer-post-9999*
+ =sci-misc/elmer-gui-9999*"
+
+pkg_postinst() {
+ einfo "Elmer ebuilds may need further development. Please inform any problems or improvements in http://bugs.gentoo.org/show_bug.cgi?id=221013"
+}
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
new file mode 100644
index 0000000..459f6ce
--- /dev/null
+++ b/sci-misc/elmer-post/elmer-post-5.4.1-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils flag-o-matic
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmerpost"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="opengl X debug"
+DEPEND="=dev-lang/tcl-8.4*
+ =dev-lang/tk-8.4*
+ opengl? ( virtual/opengl
+ media-libs/ftgl )
+ sci-libs/matc"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PV}/post"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # configure must be executable
+ chmod +x configure
+ eautoreconf
+}
+
+src_compile() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ myconf="${myconf} --with-matc"
+ use opengl && append-cppflags -I/usr/include/FTGL
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ econf $myconf \
+ $(use_with X x) \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake ELMER_POST_DATADIR="${D}/usr/share/elmerpost" DESTDIR="${D}" install || die "emake install failed"
+}
diff --git a/sci-misc/elmer-post/elmer-post-9999.ebuild b/sci-misc/elmer-post/elmer-post-9999.ebuild
new file mode 100644
index 0000000..5ad6804
--- /dev/null
+++ b/sci-misc/elmer-post/elmer-post-9999.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit autotools eutils flag-o-matic subversion
+
+ELMER_ROOT="elmerfem"
+MY_PN=${PN/elmer-/}
+
+DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, elmerpost"
+HOMEPAGE="http://www.csc.fi/english/pages/elmer"
+#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
+SRC_URI=""
+RESTRICT="mirror"
+ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
+ESVN_PROJECT="${MY_PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="opengl X debug"
+DEPEND="dev-lang/tcl
+ dev-lang/tk
+ opengl? ( virtual/opengl
+ media-libs/ftgl )
+ sci-libs/matc"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PV}/post"
+
+src_prepare() {
+ #unpack ${A}
+ cd "${S}"
+ # configure must be executable
+ #chmod +x configure
+ eautoreconf
+}
+
+src_configure() {
+ cd "${S}"
+ local myconf
+ export FC="gfortran"
+ export F77="gfortran"
+ myconf="${myconf} --with-matc"
+ use opengl && append-cppflags -I/usr/include/FTGL
+ use debug &&
+ myconf="${myconf} --with-debug" ||
+ myconf="${myconf} --without-debug"
+ econf $myconf \
+ $(use_with X x) \
+ || die "econf failed"
+}
+
+src_install() {
+ emake ELMER_POST_DATADIR="/usr/share/${MY_PN}" DESTDIR="${D}" install || die "emake install failed"
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-03 14:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-03 14:53 [gentoo-commits] proj/sci:master commit in: sci-misc/elmer-meshgen2d/, sci-misc/elmer-front/files/, sci-misc/elmer-post/, Justin Lecher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox