[143300] trunk/dports/science/xraylib/Portfile
dstrubbe at macports.org
dstrubbe at macports.org
Sat Dec 12 09:24:12 PST 2015
Revision: 143300
https://trac.macports.org/changeset/143300
Author: dstrubbe at macports.org
Date: 2015-12-09 15:54:05 -0800 (Wed, 09 Dec 2015)
Log Message:
-----------
xraylib: Use compilers portgroup for Fortran. Add test phase.
Modified Paths:
--------------
trunk/dports/science/xraylib/Portfile
Modified: trunk/dports/science/xraylib/Portfile
===================================================================
--- trunk/dports/science/xraylib/Portfile 2015-12-09 23:40:41 UTC (rev 143299)
+++ trunk/dports/science/xraylib/Portfile 2015-12-09 23:54:05 UTC (rev 143300)
@@ -4,6 +4,7 @@
PortSystem 1.0
PortGroup github 1.0
PortGroup perl5 1.0
+PortGroup compilers 1.0
name xraylib
version 3.1.0
@@ -32,6 +33,9 @@
patchfiles yosemite-libtool.patch
+compilers.choose fc
+compilers.setup
+
configure.args --disable-idl \
--disable-fortran2003 \
--disable-perl \
@@ -122,49 +126,13 @@
depends_lib-append port:lua
}
-variant gcc44 description {Build with gfortran from GCC 4.4} conflicts gcc45 gcc46 gcc47 gcc48 gcc49 {
+if {[fortran_variant_isset]} {
configure.args-replace --disable-fortran2003 --enable-fortran2003
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc44
- configure.fc ${prefix}/bin/gfortran-mp-4.4
}
-variant gcc45 description {Build with gfortran from GCC 4.5} conflicts gcc44 gcc46 gcc47 gcc48 gcc49 {
- configure.args-replace --disable-fortran2003 --enable-fortran2003
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc45
- configure.fc ${prefix}/bin/gfortran-mp-4.5
-}
-
-variant gcc46 description {Build with gfortran from GCC 4.6} conflicts gcc44 gcc45 gcc47 gcc48 gcc49 {
- configure.args-replace --disable-fortran2003 --enable-fortran2003
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc46
- configure.fc ${prefix}/bin/gfortran-mp-4.6
-}
-
-variant gcc47 description {Build with gfortran from GCC 4.7} conflicts gcc44 gcc45 gcc46 gcc48 gcc49 {
- configure.args-replace --disable-fortran2003 --enable-fortran2003
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc47
- configure.fc ${prefix}/bin/gfortran-mp-4.7
-}
-
-variant gcc48 description {Build with gfortran from GCC 4.8} conflicts gcc44 gcc45 gcc46 gcc47 gcc49 {
- configure.args-replace --disable-fortran2003 --enable-fortran2003
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc48
- configure.fc ${prefix}/bin/gfortran-mp-4.8
-}
-
-variant gcc49 description {Build with gfortran from GCC 4.9} conflicts gcc44 gcc45 gcc46 gcc47 gcc48 {
- configure.args-replace --disable-fortran2003 --enable-fortran2003
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc49
- configure.fc ${prefix}/bin/gfortran-mp-4.9
-}
-
if {![variant_isset python26] && ![variant_isset python27] && ![variant_isset python33] && ![variant_isset python34]} {
default_variants +python27
}
+test.run yes
+test.cmd check
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/298178b0/attachment.html>
More information about the macports-changes
mailing list