[125251] trunk/dports/science
cal at macports.org
cal at macports.org
Thu Sep 11 11:58:25 PDT 2014
Revision: 125251
https://trac.macports.org/changeset/125251
Author: cal at macports.org
Date: 2014-09-11 11:58:24 -0700 (Thu, 11 Sep 2014)
Log Message:
-----------
new port: harminv, closes #44744
Added Paths:
-----------
trunk/dports/science/harminv/
trunk/dports/science/harminv/Portfile
Added: trunk/dports/science/harminv/Portfile
===================================================================
--- trunk/dports/science/harminv/Portfile (rev 0)
+++ trunk/dports/science/harminv/Portfile 2014-09-11 18:58:24 UTC (rev 125251)
@@ -0,0 +1,86 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+license GPL-2
+name harminv
+categories science
+version 1.3.1
+platforms darwin
+maintainers saabusa.com:Yogesh.Sharma
+description MIT Eletromagnetic Equation Propagation
+long_description solve the problem of harmonic inversion — given a discrete-time, finite-length signal that consists of a sum of finitely-many sinusoids (possibly exponentially decaying) \
+ in a given bandwidth, it determines the frequencies, decay constants, amplitudes, and phases of those sinusoids
+homepage http://ab-initio.mit.edu/harminv
+master_sites http://ab-initio.mit.edu/harminv
+checksums md5 d3f49f1c90856b3b2e8b77dc4a99c37a \
+ sha1 ef75161233df92393110b783d2945b5915c8291a \
+ rmd160 340de65da54b197f70adec43ecd2907a757d6d35
+depends_lib port:guile
+
+configure.args --mandir="${prefix}/share/man"
+
+set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9}
+set default_fortran_variant +gcc48
+set g95_conflicts {}
+
+foreach ver ${gcc_versions} {
+ set ver_no_dot [join [split ${ver} "."] ""]
+
+ set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}" conflicts g95}
+
+ foreach over ${gcc_versions} {
+ if {${ver} == ${over}} {
+ continue
+ }
+
+ set over_no_dot [join [split ${over} "."] ""]
+ append variant_line " conflicts gcc${over_no_dot}"
+ }
+ append variant_line { {}}
+
+ eval $variant_line
+
+ append g95_conflicts " conflicts gcc${ver_no_dot}"
+
+ if {[variant_isset gcc${ver_no_dot}]} {
+ if {${default_fortran_variant} != "+gcc${ver_no_dot}"} {
+ set default_fortran_variant ""
+ }
+ }
+}
+
+eval [concat {variant g95 description {build with g95}} $g95_conflicts {{}}]
+
+if {[variant_isset g95]} {
+ if {${default_fortran_variant} != "+g95"} {
+ set default_fortran_variant ""
+ }
+}
+
+if {${default_fortran_variant} != ""} {
+ default_variants-append "${default_fortran_variant}"
+}
+
+foreach ver ${gcc_versions} {
+ set ver_no_dot [join [split ${ver} "."] ""]
+
+ if {[variant_isset gcc${ver_no_dot}]} {
+ depends_lib-append path:lib/libgcc/libgcc_s.1.dylib: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}
+ }
+}
+
+if {[variant_isset g95]} {
+ depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
+ depends_build-append port:g95
+
+ configure.fc ${prefix}/bin/g95
+ configure.f77 ${prefix}/bin/g95
+ configure.f90 ${prefix}/bin/g95
+}
Property changes on: trunk/dports/science/harminv/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140911/39c3ac29/attachment.html>
More information about the macports-changes
mailing list