Ticket #42970: Portfile-wannier90.diff

File Portfile-wannier90.diff, 893 bytes (added by mf2k (Frank Schima), 11 years ago)
  • Portfile

    old new  
    22# $Id: Portfile 109743 2013-08-19 19:34:15Z jeremyhu@macports.org $
    33
    44PortSystem          1.0
     5PortGroup           compilers 1.0
    56
    67name                wannier90
    78version             1.2
     
    4344    xinstall ${worksrcpath}/libwannier.a ${destroot}${prefix}/lib/
    4445}
    4546
    46 variant gcc46 conflicts gcc47 description {Build with GCC 4.6} {
    47     configure.compiler  macports-gcc-4.6
    48 }
    49 
    50 variant gcc47 conflicts gcc46 description {Build with GCC 4.7} {
    51     configure.compiler  macports-gcc-4.7
    52 }
     47compilers.choose    fc f77 f90
     48compilers.setup     require_fortran
    5349
    54 if {![variant_isset gcc46]} {
    55     default_variants    +gcc47
     50if {![fortran_variant_isset]} {
     51    default_variants-append +gcc48
    5652}
    5753
    5854variant threads description {Build with threaded ATLAS} {}