dev-cpp/eigen: fix sandbox violation, use system fortran compiler, bug #607800
authorMatthias Maier <tamiko@gentoo.org>
Wed, 1 Feb 2017 23:01:10 +0000 (17:01 -0600)
committerMatthias Maier <tamiko@gentoo.org>
Wed, 1 Feb 2017 23:11:21 +0000 (17:11 -0600)
Apply the patch proposed by Guilherme Amadio <amadio@gentoo.org> to fix
test configuration and compiler setup.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-cpp/eigen/eigen-3.3.1.ebuild

index fb5d8fe1c2f324e04788060256c0914e43b7013a..7c58917c989c6bdd9789ca18886c9bff9a45cb50 100644 (file)
@@ -61,6 +61,10 @@ src_prepare() {
                || die "sed disable unused bundles failed"
 
        if ! use test; then
+               sed -i CMakeLists.txt \
+                       -e "/add_subdirectory(test/d" \
+                       || die "sed disable tests failed"
+
                sed -i CMakeLists.txt \
                        -e "/add_subdirectory(blas/d" \
                        -e "/add_subdirectory(lapack/d" \
@@ -81,7 +85,6 @@ src_compile() {
 
 src_test() {
        local mycmakeargs=(
-               -DEIGEN_BUILD_TESTS=ON
                -DEIGEN_TEST_ALTIVEC="$(usex altivec)"
                -DEIGEN_TEST_CXX11="$(usex c++11)"
                -DEIGEN_TEST_CUDA="$(usex cuda)"