1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="C++ template library for linear algebra"
10 HOMEPAGE="http://eigen.tuxfamily.org/"
11 SRC_URI="https://bitbucket.org/eigen/eigen/get/${PV}.tar.bz2 -> ${P}.tar.bz2"
14 KEYWORDS="alpha amd64 ~arm ~hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
16 IUSE="debug doc examples"
23 DEPEND="${COMMON_DEPEND}
24 doc? ( app-doc/doxygen )"
25 RDEPEND="${COMMON_DEPEND}
30 # bugs 426236, 455460, 467288
39 # benchmarks (BTL) brings up damn load of external deps including fortran
41 # library hangs up complete compilation proccess, test later
45 -DEIGEN_BUILD_PKGCONFIG=ON
46 $(cmake-utils_use examples EIGEN_BUILD_DEMOS)
48 cmake-utils_src_configure
52 cmake-utils_src_compile
54 cd "${CMAKE_BUILD_DIR}"
60 cmake-utils_src_install
62 cd "${CMAKE_BUILD_DIR}"/doc
66 cd "${CMAKE_BUILD_DIR}"/demos
67 dobin mandelbrot/mandelbrot opengl/quaternion_demo
73 -DEIGEN_BUILD_TESTS=ON
74 -DEIGEN_TEST_NO_FORTRAN=ON
76 cmake-utils_src_configure
77 cmake-utils_src_compile