From 301e0e85336116cb0bb3059b3dd5bdc724dd2181 Mon Sep 17 00:00:00 2001 From: jsbronder Date: Fri, 2 May 2008 01:50:17 +0000 Subject: Don't spit out errors if people aren't using empi git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@1034 32389bae-6d03-0410-99cf-db05cde120eb --- eclass/mpi.eclass | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/eclass/mpi.eclass b/eclass/mpi.eclass index f8bc13935..99528c1b8 100644 --- a/eclass/mpi.eclass +++ b/eclass/mpi.eclass @@ -121,20 +121,13 @@ is_imp_build() { [[ ${MPI_ALL_IMPS} == *${PN}* ]]; } is_empi_build() { [[ ${CATEGORY} == mpi-* ]]; } is_empi_imp_build() { is_imp_build && is_empi_build; } -is_imp() { - local i - for i in $(eselect mpi list -p); do - [[ ${1} == ${i} ]] && return 0 - done - return 1 -} get_imp() { [[ ${CATEGORY} == mpi-* ]] && echo "${CATEGORY}" } get_mpi_dir() { - if is_empi_imp_build || is_imp ${CATEGORY}; then + if is_empi_build; then echo "/usr/$(get_libdir)/mpi/${MPI_IMP}" fi } -- cgit v1.2.3-65-gdbad