diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-libs/mc | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-libs/mc')
-rw-r--r-- | sci-libs/mc/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/mc/files/1.4-doc.patch | 20 | ||||
-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/files/mc-1.5-unbundle.patch | 58 | ||||
-rw-r--r-- | sci-libs/mc/mc-1.5.ebuild | 85 | ||||
-rw-r--r-- | sci-libs/mc/metadata.xml | 8 |
8 files changed, 222 insertions, 0 deletions
diff --git a/sci-libs/mc/Manifest b/sci-libs/mc/Manifest new file mode 100644 index 000000000000..651e242a254b --- /dev/null +++ b/sci-libs/mc/Manifest @@ -0,0 +1 @@ +DIST mc-1.5.tar.gz 18140539 SHA256 a149d833d41362916583dca7561248281a79c8a8167b5329a24d7f3f23df05e1 SHA512 6db79c677b1a326ea50c78a07b8cc088eb5e23e9d8821a3a3802017e9e8d4011307ba024d3354dc24cb31d822da2023a150787a137b7806f6344b0834e7f194b WHIRLPOOL a008371d978d86946b147aea2d45c7ae2a14c558a3c07b835a815e8e4e60602cae5b1133766c435dab8aeb3b2858ad796bfcd2f10f5347a5a8543c7fc68185f4 diff --git a/sci-libs/mc/files/1.4-doc.patch b/sci-libs/mc/files/1.4-doc.patch new file mode 100644 index 000000000000..f57777b8a419 --- /dev/null +++ b/sci-libs/mc/files/1.4-doc.patch @@ -0,0 +1,20 @@ +diff --git a/doc/doxygen/Makefile.am b/doc/doxygen/Makefile.am +index da96a19..afdf06d 100644 +--- a/doc/doxygen/Makefile.am ++++ b/doc/doxygen/Makefile.am +@@ -29,13 +29,11 @@ + ## Author: Michael Holst + ## ########################################################################### + +-docdir = @prefix@/doc/mc +- + doc_DATA = mc_doc + + mc_doc: + $(doxygen_path) $(top_srcdir)/doc/doxygen/mc.dox + + install-docDATA: +- mkdir -p $(docdir) +- cp -r ../api $(docdir)/ ++ mkdir -p $(DESTDIR)/@docdir@ ++ cp -r ../api $(DESTDIR)/@docdir@/ 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/files/mc-1.5-unbundle.patch b/sci-libs/mc/files/mc-1.5-unbundle.patch new file mode 100644 index 000000000000..5a9a97241980 --- /dev/null +++ b/sci-libs/mc/files/mc-1.5-unbundle.patch @@ -0,0 +1,58 @@ + configure.ac | 38 ++++++-------------------------------- + 1 files changed, 6 insertions(+), 32 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 6198ac0..4b1b169 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -191,44 +191,18 @@ dnl # ----------------------- + dnl # HANDLE THE BLAS LIBRARY + dnl # ----------------------- + blas_lib=""; +-AC_MSG_CHECKING([whether your environment defines FETK_BLAS_LIBRARY]) +-if test -n "${FETK_BLAS_LIBRARY}"; then +- AC_MSG_RESULT([yes]) +- blas_lib_path="-L${FETK_BLAS_LIBRARY} "; +-else +- AC_MSG_RESULT([no]) +- blas_lib_path="-L${FETK_LIBRARY} "; +-fi +-LDFLAGS_SAVE=${LDFLAGS}; +-LDFLAGS=${blas_lib_path}; +-blas_use=""; +-AC_CHECK_LIB(blas,dscal_, +- [blas_use="yes";blas_lib="${blas_lib_path}-lblas";AC_DEFINE(HAVE_BLAS)], +- [blas_use="";blas_lib=""], +- [${blas_lib_path}-lblas ${vf2c_lib}]) +-LDFLAGS=${LDFLAGS_SAVE}; ++blas_lib_path=""; ++PKG_CHECK_MODULES([BLAS], [blas]) ++blas_lib="${BLAS_LIBS}"; + AC_SUBST(blas_lib) + + dnl # ------------------------- + dnl # HANDLE THE LAPACK LIBRARY + dnl # ------------------------- + lapack_lib=""; +-AC_MSG_CHECKING([whether your environment defines FETK_LAPACK_LIBRARY]) +-if test -n "${FETK_LAPACK_LIBRARY}"; then +- AC_MSG_RESULT([yes]) +- lapack_lib_path="-L${FETK_LAPACK_LIBRARY} "; +-else +- AC_MSG_RESULT([no]) +- lapack_lib_path="-L${FETK_LIBRARY} "; +-fi +-LDFLAGS_SAVE=${LDFLAGS}; +-LDFLAGS=${lapack_lib_path}; +-lapack_use=""; +-AC_CHECK_LIB(lapack,dsysv_, +- [lapack_use="yes";lapack_lib="${lapack_lib_path}-llapack";AC_DEFINE(HAVE_LAPACK)], +- [lapack_use="";lapack_lib=""], +- [${lapack_lib_path}-llapack ${blas_lib} ${vf2c_lib}]) +-LDFLAGS=${LDFLAGS_SAVE}; ++lapack_lib_path=""; ++PKG_CHECK_MODULES([LAPACK], [lapack]) ++lapack_lib="${LAPACK_LIBS}" + AC_SUBST(lapack_lib) + + dnl # -------------------------- diff --git a/sci-libs/mc/mc-1.5.ebuild b/sci-libs/mc/mc-1.5.ebuild new file mode 100644 index 000000000000..7cae2d73054d --- /dev/null +++ b/sci-libs/mc/mc-1.5.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils fortran-2 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 static-libs" + +RDEPEND=" + dev-libs/maloc + media-libs/sg + sci-libs/amd + sci-libs/gamer + sci-libs/punc + sci-libs/superlu + sci-libs/umfpack + virtual/blas + virtual/lapack" +DEPEND=" + ${RDEPEND} + doc? ( + media-gfx/graphviz + app-doc/doxygen + )" + +S="${WORKDIR}"/${PN} + +PATCHES=( + "${FILESDIR}"/1.4-superlu.patch + "${FILESDIR}"/1.4-overflow.patch + "${FILESDIR}"/1.4-multilib.patch + "${FILESDIR}"/1.4-doc.patch + "${FILESDIR}"/${P}-unbundle.patch + ) + +src_prepare() { + 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 + autotools-utils_src_prepare +} + +src_configure() { + local fetk_include + local fetk_lib + local myeconfargs + + use doc || myeconfargs+=( --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}" + + myeconfargs+=( + --docdir="${EPREFIX}"/usr/share/doc/${PF} + $(use_enable debug vdebug) + --disable-triplet + --enable-shared + ) + autotools-utils_src_configure +} diff --git a/sci-libs/mc/metadata.xml b/sci-libs/mc/metadata.xml new file mode 100644 index 000000000000..5ef07a39e7e1 --- /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> |