[110118] trunk/dports/python/py-obspy/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Mon Aug 26 09:23:21 PDT 2013
Revision: 110118
https://trac.macports.org/changeset/110118
Author: jeremyhu at macports.org
Date: 2013-08-26 09:23:20 -0700 (Mon, 26 Aug 2013)
Log Message:
-----------
py-obspy: Use fortran recipe
Modified Paths:
--------------
trunk/dports/python/py-obspy/Portfile
Modified: trunk/dports/python/py-obspy/Portfile
===================================================================
--- trunk/dports/python/py-obspy/Portfile 2013-08-26 16:20:00 UTC (rev 110117)
+++ trunk/dports/python/py-obspy/Portfile 2013-08-26 16:23:20 UTC (rev 110118)
@@ -6,6 +6,7 @@
name py-obspy
version 0.8.4
+revision 1
categories-append science
platforms darwin
maintainers bo.ingv.it:Peter.Danecek openmaintainer
@@ -46,27 +47,44 @@
patchfiles patch-setup.py.diff
- variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 description {Compile with gcc 4.3} {
- configure.compiler macports-gcc-4.3
- }
+ set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9}
+ set default_fortran_variant +gcc48
- variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 description {Compile with gcc 4.4} {
- configure.compiler macports-gcc-4.4
- }
+ foreach ver ${gcc_versions} {
+ set ver_no_dot [join [split ${ver} "."] ""]
- variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 description {Compile with gcc 4.5} {
- configure.compiler macports-gcc-4.5
- }
+ variant gcc${ver_no_dot} description {build with gfortran from gcc${ver_no_dot}} {}
- variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 description {Compile with gcc 4.6} {
- configure.compiler macports-gcc-4.6
+ foreach over ${gcc_versions} {
+ if {${ver} == ${over}} {
+ continue
+ }
+
+ set over_no_dot [join [split ${over} "."] ""]
+ variant gcc${ver_no_dot} conflicts gcc${over_no_dot} {}
+ }
+
+ if {[variant_isset gcc${ver_no_dot}]} {
+ if {${default_fortran_variant} != "+gcc${ver_no_dot}"} {
+ set default_fortran_variant ""
+ }
+ }
}
- variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 description {Compile with gcc 4.7} {
- configure.compiler macports-gcc-4.7
+ if {${default_fortran_variant} != ""} {
+ default_variants-append "${default_fortran_variant}"
}
- if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47]} {
- default_variants +gcc47
+ foreach ver ${gcc_versions} {
+ set ver_no_dot [join [split ${ver} "."] ""]
+
+ if {[variant_isset gcc${ver_no_dot}]} {
+ depends_lib-append port:libgcc
+ depends_build-append port:gcc${ver_no_dot}
+
+ configure.fc ${prefix}/bin/gfortran-mp-${ver}
+ configure.f77 ${prefix}/bin/gfortran-mp-${ver}
+ configure.f90 ${prefix}/bin/gfortran-mp-${ver}
+ }
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130826/37a3c1cd/attachment.html>
More information about the macports-changes
mailing list