diff options
author | jsbronder <jsbronder@32389bae-6d03-0410-99cf-db05cde120eb> | 2008-05-02 01:50:17 +0000 |
---|---|---|
committer | jsbronder <jsbronder@32389bae-6d03-0410-99cf-db05cde120eb> | 2008-05-02 01:50:17 +0000 |
commit | 301e0e85336116cb0bb3059b3dd5bdc724dd2181 (patch) | |
tree | 2189923066bf7d97f82e626005ab1918379559ae /eclass/mpi.eclass | |
parent | udav-0.3.2: Universal Data Array Visualization (diff) | |
download | sci-301e0e85336116cb0bb3059b3dd5bdc724dd2181.tar.gz sci-301e0e85336116cb0bb3059b3dd5bdc724dd2181.tar.bz2 sci-301e0e85336116cb0bb3059b3dd5bdc724dd2181.zip |
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
Diffstat (limited to 'eclass/mpi.eclass')
-rw-r--r-- | eclass/mpi.eclass | 9 |
1 files changed, 1 insertions, 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 } |