commit: 514b1eb6c3e5cc0aea9972299107615324e900fb
Author: Chris Kerr <debdepba <AT> dasganma <DOT> tk>
AuthorDate: Thu Jan 29 18:20:40 2015 +0000
Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
CommitDate: Thu Jan 29 18:20:40 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=514b1eb6
Test that CASROOT has been set; suggestion by @junghans
---
sci-visualization/mantid/mantid-3.3.0.ebuild | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sci-visualization/mantid/mantid-3.3.0.ebuild
b/sci-visualization/mantid/mantid-3.3.0.ebuild
index 16c3662..4e756e6 100644
--- a/sci-visualization/mantid/mantid-3.3.0.ebuild
+++ b/sci-visualization/mantid/mantid-3.3.0.ebuild
@@ -75,8 +75,12 @@ src_configure() {
$(cmake-utils_use paraview MAKE_VATES)
$(cmake-utils_use_use pch PRECOMPILED_HEADERS)
$(cmake-utils_use_build test TESTING)
- -DCMAKE_PREFIX_PATH="${CASROOT}"
)
+ if use opencascade
+ then
+ [[ -z ${CASROOT} ]] && die "CASROOT environment variable not
defined, that usually means you need to use 'eselect opencascade'."
+ mycmakeargs+=( -DCMAKE_PREFIX_PATH="${CASROOT}" )
+ fi
cmake-utils_src_configure
}