[143299] trunk/dports/science/xrmc/Portfile

dstrubbe at macports.org dstrubbe at macports.org
Sat Dec 12 09:23:57 PST 2015


Revision: 143299
          https://trac.macports.org/changeset/143299
Author:   dstrubbe at macports.org
Date:     2015-12-09 15:40:41 -0800 (Wed, 09 Dec 2015)
Log Message:
-----------
xrmc: Use compilers portgroup instead of just offering gcc variants written by hand. Add test phase. Many available C++ compilers fail the tests though, so they are excluded as variants.

Modified Paths:
--------------
    trunk/dports/science/xrmc/Portfile

Modified: trunk/dports/science/xrmc/Portfile
===================================================================
--- trunk/dports/science/xrmc/Portfile	2015-12-09 23:36:07 UTC (rev 143298)
+++ trunk/dports/science/xrmc/Portfile	2015-12-09 23:40:41 UTC (rev 143299)
@@ -3,6 +3,7 @@
 
 PortSystem          1.0
 PortGroup           github 1.0
+PortGroup           compilers 1.0
 
 github.setup        golosio xrmc 6.5.0
 categories          science
@@ -10,7 +11,8 @@
 maintainers         nomaintainer
 license             GPL-3+
 
-description         A Monte Carlo program for the accurate simulation of X-ray imaging and spectroscopy experiments in heterogeneous samples
+description         A Monte Carlo program for the accurate simulation of X-ray imaging and \
+                    spectroscopy experiments in heterogeneous samples
 
 long_description    XRMC is a Monte Carlo program for the accurate simulation \
                     of X-ray imaging and spectroscopy experiments in heterogeneous \
@@ -18,7 +20,7 @@
                     suitable for the detailed simulation of complex experiments \
                     on generic samples. Variance reduction techniques are used \
                     to reduce the computational time considerably compared to \
-                    general purpose Monte Carlo programs. The program is written in \
+                    general-purpose Monte Carlo programs. The program is written in \
                     C++ and has been tested on Linux, Mac OS X and MS Windows platforms.
 
 homepage            ${github.homepage}/wiki
@@ -33,32 +35,18 @@
 
 configure.args      --disable-xmi-msim
 
-use_parallel_build  yes
+test.run            yes
+test.target         check
+# FIXME: 'check' rather than 'test' should be default always...
 
-variant gcc46 conflicts gcc47 gcc48 gcc49 description {Compile with gcc 4.6} {
-    configure.compiler macports-gcc-4.6
-    depends_lib-append port:gcc46
-}
+# gcc6,gcc5,gcc49,clang38,clang37,clang36,clang34 fail test cylind_shell. llvm,dragonegg33,dragonegg34 are ok. So, be careful with variants!
+# It is good to offer them since the default clang on Yosemite works but default on other OSX versions might not.
+compilers.choose    cc cxx
+compilers.setup     -gcc49 -gcc5 -gcc6 -clang
 
-variant gcc47 conflicts gcc46 gcc48 gcc49 description {Compile with gcc 4.7} {
-    configure.compiler macports-gcc-4.7
-    depends_lib-append port:gcc47
-}
-
-variant gcc48 conflicts gcc46 gcc47 gcc49 description {Compile with gcc 4.8} {
-    configure.compiler macports-gcc-4.8
-    depends_lib-append port:gcc48
-}
-
-variant gcc49 conflicts gcc46 gcc47 gcc48 description {Compile with gcc 4.9} {
-    configure.compiler macports-gcc-4.9
-    depends_lib-append port:gcc49
-}
-
-if {![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset gcc48] && ![variant_isset gcc49]} {
-    default_variants +gcc49
-}
-
 livecheck.type      regex
 livecheck.url       [lindex ${master_sites} 0]
 livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
+
+# FIXME: somehow the main Makefile.am contains these inappropriate lines:
+# DISTCHECK_CONFIGURE_FLAGS = CXX=g++-mp-4.9 CC=gcc-mp-4.9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/5d97455b/attachment-0001.html>


More information about the macports-changes mailing list