summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2011-12-17 13:45:03 +0000
committerJustin Lecher <jlec@gentoo.org>2011-12-17 13:45:03 +0000
commitded7a5bb4de2922b6569b3040db0cb97da6629e6 (patch)
treefb005e02d4d6cb23cd7aff845f4bef9c53cf1473 /sci-biology/mrbayes
parenttests depend on encode and zlib, use eapi4 use constraints for this, fixes bu... (diff)
downloadgentoo-2-ded7a5bb4de2922b6569b3040db0cb97da6629e6.tar.gz
gentoo-2-ded7a5bb4de2922b6569b3040db0cb97da6629e6.tar.bz2
gentoo-2-ded7a5bb4de2922b6569b3040db0cb97da6629e6.zip
Use mpicc with USE=mpi, #394961
(Portage version: 2.2.0_alpha81/cvs/Linux x86_64)
Diffstat (limited to 'sci-biology/mrbayes')
-rw-r--r--sci-biology/mrbayes/ChangeLog5
-rw-r--r--sci-biology/mrbayes/mrbayes-3.1.2-r1.ebuild14
2 files changed, 15 insertions, 4 deletions
diff --git a/sci-biology/mrbayes/ChangeLog b/sci-biology/mrbayes/ChangeLog
index 80cc55335ceb..51428b53b363 100644
--- a/sci-biology/mrbayes/ChangeLog
+++ b/sci-biology/mrbayes/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sci-biology/mrbayes
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/mrbayes/ChangeLog,v 1.22 2011/12/16 13:08:49 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/mrbayes/ChangeLog,v 1.23 2011/12/17 13:45:03 jlec Exp $
+
+ 17 Dec 2011; Justin Lecher <jlec@gentoo.org> mrbayes-3.1.2-r1.ebuild:
+ Use mpicc with USE=mpi, #394961
16 Dec 2011; Justin Lecher <jlec@gentoo.org> mrbayes-3.1.2-r1.ebuild:
Add missing dep on sys-libs/ncurses, keyworded for ~amd64-linux
diff --git a/sci-biology/mrbayes/mrbayes-3.1.2-r1.ebuild b/sci-biology/mrbayes/mrbayes-3.1.2-r1.ebuild
index 73fa7d189d80..4833e501a9f6 100644
--- a/sci-biology/mrbayes/mrbayes-3.1.2-r1.ebuild
+++ b/sci-biology/mrbayes/mrbayes-3.1.2-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/mrbayes/mrbayes-3.1.2-r1.ebuild,v 1.2 2011/12/16 13:08:49 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/mrbayes/mrbayes-3.1.2-r1.ebuild,v 1.3 2011/12/17 13:45:03 jlec Exp $
EAPI=4
@@ -23,17 +23,25 @@ RDEPEND="${DEPEND}"
src_prepare() {
use readline && epatch "${FILESDIR}"/mb_readline_312.patch
+ sed -e 's:-ggdb::g' -i Makefile || die
}
src_compile() {
- local myconf
+ local myconf mycc
+
+ if use mpi; then
+ mycc=mpicc
+ else
+ mycc=$(tc-getCC)
+ fi
+
use mpi && myconf="MPI=yes"
use readline || myconf="${myconf} USEREADLINE=no"
use debug && myconf="${myconf} DEBUG=yes"
emake \
OPTFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
- CC=$(tc-getCC) \
+ CC=${mycc} \
${myconf}
}