public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sebastien Fabbro" <bicatali@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/mumps/
Date: Tue, 13 Mar 2012 00:56:49 +0000 (UTC)	[thread overview]
Message-ID: <1331600165.efcff6df1ff30ec13bb235b246e517412f3ee159.bicatali@gentoo> (raw)

commit:     efcff6df1ff30ec13bb235b246e517412f3ee159
Author:     Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Tue Mar 13 00:56:05 2012 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Tue Mar 13 00:56:05 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=efcff6df

sci-libs/mumps: Fixed for sequential (non mpi) libraries

(Portage version: 2.1.10.44/git/Linux x86_64, unsigned Manifest commit)

---
 sci-libs/mumps/ChangeLog           |    4 ++++
 sci-libs/mumps/metadata.xml        |    5 +++++
 sci-libs/mumps/mumps-4.10.0.ebuild |   18 ++++++++++++++----
 3 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/sci-libs/mumps/ChangeLog b/sci-libs/mumps/ChangeLog
index d8f6c12..93973ef 100644
--- a/sci-libs/mumps/ChangeLog
+++ b/sci-libs/mumps/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  13 Mar 2012; Sébastien Fabbro <bicatali@gentoo.org> mumps-4.10.0.ebuild,
+  metadata.xml:
+  Fixed for sequential (non mpi) libraries
+
   12 Mar 2012; Sébastien Fabbro <bicatali@gentoo.org> mumps-4.10.0.ebuild:
   Only allow earlier parmetis versions
 

diff --git a/sci-libs/mumps/metadata.xml b/sci-libs/mumps/metadata.xml
index e9804fe..3c712bd 100644
--- a/sci-libs/mumps/metadata.xml
+++ b/sci-libs/mumps/metadata.xml
@@ -10,4 +10,9 @@
   interfaces, and can interface with ordering tools such 
   as Scotch or Metis.
 </longdescription>
+<use>
+  <flag name="metis">Enable ordering with METIS
+  (<pkg>sci-libs/metis</pkg>, <pkg>sci-libs/parmetis</pkg>)</flag>
+  <flag name="scotch">Enable ordering with <pkg>sci-libs/scotch</pkg></flag>
+</use>
 </pkgmetadata>

diff --git a/sci-libs/mumps/mumps-4.10.0.ebuild b/sci-libs/mumps/mumps-4.10.0.ebuild
index e1c5015..dc6a62d 100644
--- a/sci-libs/mumps/mumps-4.10.0.ebuild
+++ b/sci-libs/mumps/mumps-4.10.0.ebuild
@@ -3,7 +3,7 @@
 # $Header: $
 
 EAPI=4
-inherit eutils toolchain-funcs flag-o-matic versionator
+inherit eutils toolchain-funcs flag-o-matic versionator fortran-2
 
 MYP=MUMPS_${PV}
 
@@ -17,11 +17,13 @@ KEYWORDS="~amd64 ~x86"
 IUSE="doc examples metis mpi +scotch static-libs"
 
 RDEPEND="virtual/blas
-   sci-libs/parmetis[mpi?]
-   scotch? ( sci-libs/scotch[mpi?] )
-   mpi? ( virtual/scalapack )"
+	metis? ( || ( sci-libs/metis <sci-libs/parmetis-4 )
+		mpi? ( <sci-libs/parmetis-4 ) )
+	scotch? ( sci-libs/scotch[mpi=] )
+	mpi? ( virtual/scalapack )"
 
 DEPEND="${RDEPEND}
+	virtual/fortran
 	dev-util/pkgconfig"
 
 S="${WORKDIR}/${MYP}"
@@ -51,6 +53,8 @@ src_prepare() {
 		-e "s:^\(OPTC\s*=\).*:\1${CFLAGS} \$(PIC):" \
 		-e "s:^\(OPTL\s*=\).*:\1${LDFLAGS}:" \
 		Make.inc/Makefile.inc.generic > Makefile.inc || die
+	# fixed a missing copy of libseq to libdir
+
 }
 
 src_configure() {
@@ -95,6 +99,12 @@ src_configure() {
 			Makefile.inc || die
 		export LINK=mpif90
 		LIBADD="${LIBADD} $(pkg-config --libs scalapack)"
+	else
+		sed -i \
+			-e 's:-Llibseq:-L$(topdir)/libseq:' \
+			-e 's:PAR):SEQ):g' \
+			-e 's:^LIBSEQNEEDED =:LIBSEQNEEDED = libseqneeded:g' \
+			Makefile.inc || die
 	fi
 	sed -i -e "s:^\s*\(ORDERINGSF\s*=\).*:\1 ${ord}:" Makefile.inc || die
 }



             reply	other threads:[~2012-03-13  0:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-13  0:56 Sebastien Fabbro [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-05-12 19:25 [gentoo-commits] proj/sci:master commit in: sci-libs/mumps/ Sebastien Fabbro
2013-06-18  9:07 Justin Lecher
2012-12-11 20:11 Sebastien Fabbro
2012-07-15 20:19 Sebastien Fabbro
2012-07-15 20:19 Sebastien Fabbro
2012-07-13  4:45 Sebastien Fabbro
2012-07-12 20:43 Sebastien Fabbro
2012-07-12 20:43 Sebastien Fabbro
2012-03-13  0:56 Sebastien Fabbro
2012-03-12 16:35 Sebastien Fabbro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1331600165.efcff6df1ff30ec13bb235b246e517412f3ee159.bicatali@gentoo \
    --to=bicatali@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox