summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2011-04-16 07:45:32 +0000
committerJustin Lecher <jlec@gentoo.org>2011-04-16 07:45:32 +0000
commitd3befa270e135c1749bf95ea1d351fcaef7c8104 (patch)
tree2ba869fb9b465ca327d0199fadcf716ac3fce7cb /sci-libs/mc
parentVersion Bump (diff)
downloadgentoo-2-d3befa270e135c1749bf95ea1d351fcaef7c8104.tar.gz
gentoo-2-d3befa270e135c1749bf95ea1d351fcaef7c8104.tar.bz2
gentoo-2-d3befa270e135c1749bf95ea1d351fcaef7c8104.zip
Version Bump
(Portage version: 2.2.0_alpha30/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/mc')
-rw-r--r--sci-libs/mc/ChangeLog9
-rw-r--r--sci-libs/mc/mc-1.5.ebuild80
2 files changed, 87 insertions, 2 deletions
diff --git a/sci-libs/mc/ChangeLog b/sci-libs/mc/ChangeLog
index 4e00d54a13b4..c1c7a46be5cb 100644
--- a/sci-libs/mc/ChangeLog
+++ b/sci-libs/mc/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-libs/mc
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/mc/ChangeLog,v 1.2 2010/11/02 09:15:35 jlec Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/mc/ChangeLog,v 1.3 2011/04/16 07:45:32 jlec Exp $
+
+*mc-1.5 (16 Apr 2011)
+
+ 16 Apr 2011; Justin Lecher <jlec@gentoo.org> +mc-1.5.ebuild:
+ Version Bump
02 Nov 2010; Justin Lecher <jlec@gentoo.org> +files/1.4-doc.patch,
mc-1.4.ebuild:
diff --git a/sci-libs/mc/mc-1.5.ebuild b/sci-libs/mc/mc-1.5.ebuild
new file mode 100644
index 000000000000..f0c3c3012748
--- /dev/null
+++ b/sci-libs/mc/mc-1.5.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/mc/mc-1.5.ebuild,v 1.1 2011/04/16 07:45:32 jlec Exp $
+
+EAPI="2"
+
+inherit autotools eutils multilib
+
+DESCRIPTION="2D/3D AFEM code for nonlinear geometric PDE"
+HOMEPAGE="http://fetk.org/codes/mc/index.html"
+SRC_URI="http://www.fetk.org/codes/download/${P}.tar.gz"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+LICENSE="GPL-2"
+IUSE="debug doc"
+
+RDEPEND="
+ dev-libs/maloc
+ media-libs/sg
+ sci-libs/amd
+ sci-libs/gamer
+ sci-libs/punc
+ sci-libs/superlu
+ sci-libs/umfpack"
+DEPEND="
+ ${RDEPEND}
+ doc? (
+ media-gfx/graphviz
+ app-doc/doxygen )"
+
+S="${WORKDIR}"/${PN}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/1.4-superlu.patch \
+ "${FILESDIR}"/1.4-overflow.patch \
+ "${FILESDIR}"/1.4-multilib.patch \
+ "${FILESDIR}"/1.4-doc.patch
+ sed \
+ -e 's:AMD_order:amd_order:g' \
+ -e 's:UMFPACK_numeric:umfpack_di_numeric:g' \
+ -e 's:buildg_:matvec_:g' \
+ -i configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ local fetk_include
+ local fetk_lib
+ local myconf
+
+ use doc || myconf="${myconf} --with-doxygen= --with-dot="
+
+ fetk_include="${EPREFIX}"/usr/include
+ fetk_lib="${EPREFIX}"/usr/$(get_libdir)
+ export FETK_INCLUDE="${fetk_include}"
+ export FETK_LIBRARY="${fetk_lib}"
+ export FETK_MPI_LIBRARY="${fetk_lib}"
+ export FETK_VF2C_LIBRARY="${fetk_lib}"
+ export FETK_BLAS_LIBRARY="${fetk_lib}"
+ export FETK_LAPACK_LIBRARY="${fetk_lib}"
+ export FETK_AMD_LIBRARY="${fetk_lib}"
+ export FETK_UMFPACK_LIBRARY="${fetk_lib}"
+ export FETK_SUPERLU_LIBRARY="${fetk_lib}"
+ export FETK_ARPACK_LIBRARY="${fetk_lib}"
+ export FETK_CGCODE_LIBRARY="${fetk_lib}"
+ export FETK_PMG_LIBRARY="${fetk_lib}"
+
+ econf \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \
+ $(use_enable debug vdebug) \
+ --disable-triplet \
+ --enable-shared \
+ ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+}