--- hypre-2.9.0b.ebuild 2014-04-19 01:26:47.910331901 +0200 +++ hypre-2.9.0b.ebuild 2014-04-19 01:30:27.407587807 +0200 @@ -17,6 +17,8 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="blas doc examples fortran lapack mpi" +REQUIRED_USE="mpi? ( fortran lapack )" + RDEPEND=" sci-libs/superlu blas? ( virtual/blas ) @@ -47,10 +49,13 @@ } src_configure() { + if use mpi; then + CC=mpicc CXX=mpicxx + fi + local myeconfargs+=( --enable-shared --without-superlu - --without-strict-checking $(use_enable fortran) $(use_with mpi MPI) )