aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Paccolat <chr.paccolat@mycable.ch>2012-12-03 14:18:53 +0100
committerJustin Lecher <jlec@gentoo.org>2013-12-03 08:25:05 +0100
commit8933ae04575f3bc41a535502523c0c7d01cc87ac (patch)
tree08315f3937354b0adb92df286d6c3b993a29a451 /sci-misc/elmer-fem
parentMerge branch 'master' into zhou13-master (diff)
downloadsci-8933ae04575f3bc41a535502523c0c7d01cc87ac.tar.gz
sci-8933ae04575f3bc41a535502523c0c7d01cc87ac.tar.bz2
sci-8933ae04575f3bc41a535502523c0c7d01cc87ac.zip
sci-misc/elmer-meta: New ebuilds for Elmer FEM packages
Diffstat (limited to 'sci-misc/elmer-fem')
-rw-r--r--sci-misc/elmer-fem/Manifest1
-rw-r--r--sci-misc/elmer-fem/elmer-fem-5.4.1-r1.ebuild65
-rw-r--r--sci-misc/elmer-fem/elmer-fem-9999.ebuild65
-rw-r--r--sci-misc/elmer-fem/files/elmer-fem-Makefile-install.patch13
4 files changed, 144 insertions, 0 deletions
diff --git a/sci-misc/elmer-fem/Manifest b/sci-misc/elmer-fem/Manifest
new file mode 100644
index 000000000..1097f1092
--- /dev/null
+++ b/sci-misc/elmer-fem/Manifest
@@ -0,0 +1 @@
+DIST elmer-fem-5.4.1.tar.gz 8436861 SHA256 bc7e6537f97e3c1ee5c32466978dc39b21cbd48638763a5c18717bfca2f8547b SHA512 edf97d00c9de9fe34dd595738eeaa676b299032bf25cfa4cf5c0de76e9254fdaa81dc534daef7b4168f19ff226dc55d742a8c3e40b0edbf04704634df919d25c WHIRLPOOL 84af0e107666bcfc4a7048f3320ef621b59918b3e3c6e35f831edaf78b2d7131a18f0d0ff9925707dc68e6e5b987213718af51331ed829c1f3109e22e1e92cb5
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 000000000..ce60dcc86
--- /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 000000000..9d970831f
--- /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 000000000..d0de4fe8b
--- /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