LICENSE="sparse? ( BSD ) !sparse? ( LGPL-2.1 ) cxsparse? ( BSD )"
SLOT="0/1"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="cxsparse c++11 doc examples gflags lapack openmp +schur sparse test"
+IUSE="cxsparse doc examples gflags lapack openmp +schur sparse test"
REQUIRED_USE="test? ( gflags ) sparse? ( lapack ) abi_x86_32? ( !sparse !lapack )"
-DBUILD_BENCHMARKS=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTING=$(usex test)
- -DCXX11=$(usex c++11)
-DBUILD_DOCUMENTATION=$(usex doc)
- -DCERES_DOCS_INSTALL_DIR="${EPREFIX}"/usr/share/doc/${PF}
-DGFLAGS=$(usex gflags)
-DLAPACK=$(usex lapack)
-DOPENMP=$(usex openmp)
-DCXSPARSE=$(usex cxsparse)
-DSUITESPARSE=$(usex sparse)
)
+ use doc && mycmakeargs+=(
+ -DCERES_DOCS_INSTALL_DIR="${EPREFIX}"/usr/share/doc/${PF}
+ )
use sparse || use cxsparse || mycmakeargs+=( -DEIGENSPARSE=ON )
cmake-multilib_src_configure
}