[149292] trunk/dports/science/paraview/Portfile
dstrubbe at macports.org
dstrubbe at macports.org
Thu Jun 9 11:51:12 PDT 2016
Revision: 149292
https://trac.macports.org/changeset/149292
Author: dstrubbe at macports.org
Date: 2016-06-09 11:51:12 -0700 (Thu, 09 Jun 2016)
Log Message:
-----------
paraview: Blacklist some compilers that do not pass configure. Create +testing variant to avoid unnecessary downloading of test data and compiling of test executables when not running the test.
Modified Paths:
--------------
trunk/dports/science/paraview/Portfile
Modified: trunk/dports/science/paraview/Portfile
===================================================================
--- trunk/dports/science/paraview/Portfile 2016-06-09 18:40:27 UTC (rev 149291)
+++ trunk/dports/science/paraview/Portfile 2016-06-09 18:51:12 UTC (rev 149292)
@@ -61,7 +61,7 @@
# ${destroot} needs to be part of MACOSX_APP_INSTALL_PREFIX; see further
# comments below, JJS 12/21/15
configure.args-append \
- -DBUILD_TESTING:BOOL=ON \
+ -DBUILD_TESTING:BOOL=OFF \
-DMACOSX_APP_INSTALL_PREFIX=${destroot}${applications_dir} \
-DBUILD_SHARED_LIBS:BOOL=ON
@@ -82,8 +82,9 @@
# DPARAVIEW_DO_UNIX_STYLE_INSTALLS:BOOL=ON
#configure.cxxflags-append -DUSE_INTERP_ERRORLINE
+# Some cmake tests will fail with "error: unrecognized option '-arch'" from gcc 4.6 and earlier. Same with dragonegg based on it.
compilers.choose fc
-mpi.setup default
+mpi.setup default -dragonegg -gcc44 -gcc45 -gcc46
# no compilers.choose cc cxx because:
# gcc6,7 C compiler fails with:
@@ -138,3 +139,13 @@
livecheck.regex ParaView (\[0-9.\]+)
test.run yes
+pre-test {
+ if {![variant_isset testing]} {
+ ui_error "You must build with +testing variant to be able to run the tests."
+ return -code error "Build with +testing for test phase."
+ }
+}
+
+variant testing description {Build executables and download data to be able to run tests.} {
+ configure.args-replace -DBUILD_TESTING:BOOL=OFF -DBUILD_TESTING:BOOL=ON
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160609/c25896e6/attachment.html>
More information about the macports-changes
mailing list