commit:     e75fe5b590c251baf45963809a52f1d2432738eb
Author:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  1 23:01:10 2017 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Wed Feb  1 23:11:21 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e75fe5b5

dev-cpp/eigen: fix sandbox violation, use system fortran compiler, bug #607800

Apply the patch proposed by Guilherme Amadio <amadio <AT> 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 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dev-cpp/eigen/eigen-3.3.1.ebuild b/dev-cpp/eigen/eigen-3.3.1.ebuild
index fb5d8fe..7c58917 100644
--- a/dev-cpp/eigen/eigen-3.3.1.ebuild
+++ b/dev-cpp/eigen/eigen-3.3.1.ebuild
@@ -62,6 +62,10 @@ src_prepare() {
 
        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" \
                        || die "sed disable unused bundles failed"
@@ -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)"

Reply via email to