diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-11-01 14:52:26 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-11-01 14:52:26 +0000 |
commit | 7b0890ba52b67cb4a9b51148fc5b675251393a2b (patch) | |
tree | 4cd663babf41fa9f061048a784e9c9f8bf240889 /sci-libs | |
parent | Drop python changes, it's unneeded since gnome-doc-utils has been fixed. (diff) | |
download | gentoo-2-7b0890ba52b67cb4a9b51148fc5b675251393a2b.tar.gz gentoo-2-7b0890ba52b67cb4a9b51148fc5b675251393a2b.tar.bz2 gentoo-2-7b0890ba52b67cb4a9b51148fc5b675251393a2b.zip |
New addition
(Portage version: 2.2.0_alpha3/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/mc/ChangeLog | 11 | ||||
-rw-r--r-- | sci-libs/mc/files/1.4-multilib.patch | 16 | ||||
-rw-r--r-- | sci-libs/mc/files/1.4-overflow.patch | 13 | ||||
-rw-r--r-- | sci-libs/mc/files/1.4-superlu.patch | 21 | ||||
-rw-r--r-- | sci-libs/mc/mc-1.4.ebuild | 70 | ||||
-rw-r--r-- | sci-libs/mc/metadata.xml | 8 |
6 files changed, 139 insertions, 0 deletions
diff --git a/sci-libs/mc/ChangeLog b/sci-libs/mc/ChangeLog new file mode 100644 index 000000000000..b3a112bd35f6 --- /dev/null +++ b/sci-libs/mc/ChangeLog @@ -0,0 +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.1 2010/11/01 14:52:26 jlec Exp $ + +*mc-1.4 (01 Nov 2010) + + 01 Nov 2010; Justin Lecher <jlec@gentoo.org> +files/1.4-multilib.patch, + +mc-1.4.ebuild, +files/1.4-overflow.patch, +files/1.4-superlu.patch, + +metadata.xml: + New addition + diff --git a/sci-libs/mc/files/1.4-multilib.patch b/sci-libs/mc/files/1.4-multilib.patch new file mode 100644 index 000000000000..427cb94f2c8b --- /dev/null +++ b/sci-libs/mc/files/1.4-multilib.patch @@ -0,0 +1,16 @@ +diff --git a/src/aaa_lib/Makefile.am b/src/aaa_lib/Makefile.am +index d5b8d47..132824b 100644 +--- a/src/aaa_lib/Makefile.am ++++ b/src/aaa_lib/Makefile.am +@@ -47,10 +47,9 @@ NAM_LIBS = ../nam/libnam.la + DYN_LIBS = ../dyn/libdyn.la + PDE_LIBS = ../pde/libpde.la + +-libdir = ${prefix}/lib + lib_LTLIBRARIES = libmc.la + + libmc_la_SOURCES = +-libmc_la_LIBADD = ${BASE_LIBS} ${BAM_LIBS} ${WHB_LIBS} ${APRX_LIBS} ${GEM_LIBS} ${MCSH_LIBS} ${NAM_LIBS} ${DYN_LIBS} ${PDE_LIBS} ++libmc_la_LIBADD = ${BASE_LIBS} ${BAM_LIBS} ${WHB_LIBS} ${APRX_LIBS} ${GEM_LIBS} ${MCSH_LIBS} ${NAM_LIBS} ${DYN_LIBS} ${PDE_LIBS} -lmaloc -lpunc -lumfpack -lamd -lsuperlu + libmc_la_LDFLAGS = -version-info ${FETK_VERSION} + diff --git a/sci-libs/mc/files/1.4-overflow.patch b/sci-libs/mc/files/1.4-overflow.patch new file mode 100644 index 000000000000..78610b0f2210 --- /dev/null +++ b/sci-libs/mc/files/1.4-overflow.patch @@ -0,0 +1,13 @@ +diff --git a/src/gem/gemdisp.c b/src/gem/gemdisp.c +index 01f277f..96d5851 100644 +--- a/src/gem/gemdisp.c ++++ b/src/gem/gemdisp.c +@@ -1631,7 +1631,7 @@ VPUBLIC void Gem_writeDX(Gem *thee, Vio *sock, + VPUBLIC void Gem_writeTEC(Gem *thee, Vio *sock, + int fldKey, double *defX[MAXV]) + { +- char str1[10], str2[10]; ++ char str1[16], str2[16]; + int i, j, vec, dim, dimII, dimVV, numVV, numSS; + VV *vx; + SS *sm; diff --git a/sci-libs/mc/files/1.4-superlu.patch b/sci-libs/mc/files/1.4-superlu.patch new file mode 100644 index 000000000000..cc3ce0a24740 --- /dev/null +++ b/sci-libs/mc/files/1.4-superlu.patch @@ -0,0 +1,21 @@ +diff --git a/src/bam/zslu.c b/src/bam/zslu.c +index 973b911..d82c7fd 100644 +--- a/src/bam/zslu.c ++++ b/src/bam/zslu.c +@@ -401,6 +401,7 @@ VPUBLIC int Zslu_factor(Zslu *thee) + SCformat *Lstore; + SuperMatrix *BB; + superlu_options_t *oopts; ++ SuperLUStat_t stat; + + VASSERT( thee != VNULL ); + +@@ -444,7 +445,7 @@ VPUBLIC int Zslu_factor(Zslu *thee) + Lstore->nnz + Ustore->nnz - thee->n); + printf("L\\U MB %.3f\ttotal MB needed %.3f\texpansions %d\n", + mem_usage.for_lu/1e6, mem_usage.total_needed/1e6, +- mem_usage.expansions); ++ stat.expansions); + fflush(stdout); + + } else if ( info > 0 && thee->lwork == -1 ) { diff --git a/sci-libs/mc/mc-1.4.ebuild b/sci-libs/mc/mc-1.4.ebuild new file mode 100644 index 000000000000..4c264229535b --- /dev/null +++ b/sci-libs/mc/mc-1.4.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/mc/mc-1.4.ebuild,v 1.1 2010/11/01 14:52:26 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" + +RDEPEND=" + dev-libs/maloc + media-libs/sg + sci-libs/amd + sci-libs/gamer + sci-libs/punc + sci-libs/superlu + sci-libs/umfpack" +DEPEND="${RDEPEND}" + +S="${WORKDIR}"/${PN} + +src_prepare() { + epatch \ + "${FILESDIR}"/${PV}-superlu.patch \ + "${FILESDIR}"/${PV}-overflow.patch \ + "${FILESDIR}"/${PV}-multilib.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 + + 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 \ + $(use_enable debug vdebug) \ + --disable-triplet \ + --enable-shared +} + +src_install() { + emake DESTDIR="${D}" install || die +} diff --git a/sci-libs/mc/metadata.xml b/sci-libs/mc/metadata.xml new file mode 100644 index 000000000000..c6856dc7f2cf --- /dev/null +++ b/sci-libs/mc/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<maintainer> + <email>jlec@gentoo.org</email> +</maintainer> +</pkgmetadata> |