[89625] trunk/dports/math/slepc/Portfile

Ryan Schmidt ryandesign at macports.org
Sat Feb 4 14:59:55 PST 2012


On Feb 4, 2012, at 11:16, mmoll at macports.org wrote:

> Revision: 89625
>          http://trac.macports.org/changeset/89625
> Author:   mmoll at macports.org
> Date:     2012-02-04 09:16:39 -0800 (Sat, 04 Feb 2012)
> Log Message:
> -----------
> math/slepc: check more fortran compilers
> 
> Modified Paths:
> --------------
>    trunk/dports/math/slepc/Portfile
> 
> Modified: trunk/dports/math/slepc/Portfile
> ===================================================================
> --- trunk/dports/math/slepc/Portfile	2012-02-04 16:30:24 UTC (rev 89624)
> +++ trunk/dports/math/slepc/Portfile	2012-02-04 17:16:39 UTC (rev 89625)
> @@ -46,24 +46,32 @@
> variant arpack description {compile with ARPACK support} {
>     pre-fetch {
>         if {![file exists ${prefix}/lib/libparpack.a]} {
> -            return -code error "Please install the mpi variant of arpack first."
> +            return -code error "Please install the openmpi variant of arpack first."
>         }
>     }
>     # This is a rather fragile way to figure out where the fortran library can be
>     # found that is needed to link against libparpack.a:
> -    if {[file exists ${prefix}/lib/gcc44]} {
> -        set fortrandir ${prefix}/lib/gcc44
> +    if {[file exists ${prefix}/lib/gcc46]} {
> +        set fortrandir ${prefix}/lib/gcc46
>     } else {
> -        if {[file exists ${prefix}/lib/gcc43]} {
> -            set fortrandir ${prefix}/lib/gcc43
> +        if {[file exists ${prefix}/lib/gcc45]} {
> +            set fortrandir ${prefix}/lib/gcc45
>         } else {
> -            if {[file exists ${prefix}/lib/gcc42]} {
> -                set fortrandir ${prefix}/lib/gcc42
> +            if {[file exists ${prefix}/lib/gcc44]} {
> +                set fortrandir ${prefix}/lib/gcc44
>             } else {
> -                if {[file exists ${prefix}/lib/g95]} {
> -                    set fortrandir ${prefix}/lib/gcc95
> +                if {[file exists ${prefix}/lib/gcc43]} {
> +                    set fortrandir ${prefix}/lib/gcc43
>                 } else {
> -                    return -code error "Please install a fortran compiler by installing one of the following ports: gcc42, gcc43, gcc44, or g95."
> +                    if {[file exists ${prefix}/lib/gcc42]} {
> +                        set fortrandir ${prefix}/lib/gcc42
> +                    } else {
> +                        if {[file exists ${prefix}/lib/g95]} {
> +                            set fortrandir ${prefix}/lib/gcc95

Should this be "g95" instead of "gcc95"?


> +                        } else {
> +                            return -code error "Please install a fortran compiler by installing one of the following ports: gcc42, gcc43, gcc44, gcc45, gcc46, or g95."
> +                        }
> +                    }






More information about the macports-dev mailing list