Ticket #39365: Portfile-arpack.diff
File Portfile-arpack.diff, 3.0 KB (added by dstrubbe (David Strubbe), 11 years ago) |
---|
-
Portfile
old new 2 2 3 3 PortSystem 1.0 4 4 PortGroup muniversal 1.0 5 PortGroup active_variants 1.1 5 6 6 7 name arpack 7 8 version 3.1.2 … … 67 68 variant gcc43 description {build with gfortran-mp-4.3} conflicts gcc44 gcc45 gcc46 gcc47 g95 universal { 68 69 depends_build-append port:gcc43 69 70 configure.env-append F77=${prefix}/bin/gfortran-mp-4.3 71 if {[variant_isset mpich]} { require_active_variants mpich gcc43 } 72 if {[variant_isset openmpi]} { require_active_variants openmpi gcc43 } 70 73 } 71 74 72 75 variant gcc44 description {build with gfortran-mp-4.4} conflicts gcc43 gcc45 gcc46 gcc47 g95 { 73 76 depends_build-append port:gcc44 74 77 configure.env-append F77=${prefix}/bin/gfortran-mp-4.4 78 if {[variant_isset mpich]} { require_active_variants mpich gcc44 } 79 if {[variant_isset openmpi]} { require_active_variants openmpi gcc44 } 75 80 } 76 81 77 82 variant gcc45 description {build with gfortran-mp-4.5} conflicts gcc43 gcc44 gcc46 gcc47 g95 { 78 83 depends_build-append port:gcc45 79 84 configure.env-append F77=${prefix}/bin/gfortran-mp-4.5 85 if {[variant_isset mpich]} { require_active_variants mpich gcc45 } 86 if {[variant_isset openmpi]} { require_active_variants openmpi gcc45 } 80 87 } 81 88 82 89 variant gcc46 description {build with gfortran-mp-4.6} conflicts gcc43 gcc44 gcc45 gcc47 g95 { 83 90 depends_build-append port:gcc46 84 91 configure.env-append F77=${prefix}/bin/gfortran-mp-4.6 92 if {[variant_isset mpich]} { require_active_variants mpich gcc46 } 93 if {[variant_isset openmpi]} { require_active_variants openmpi gcc46 } 85 94 } 86 95 87 96 variant gcc47 description {build with gfortran-mp-4.7} conflicts gcc43 gcc44 gcc45 gcc46 g95 { 88 97 depends_build-append port:gcc47 89 98 configure.env-append F77=${prefix}/bin/gfortran-mp-4.7 99 if {[variant_isset mpich]} { require_active_variants mpich gcc47 } 100 if {[variant_isset openmpi]} { require_active_variants openmpi gcc47 } 90 101 } 91 102 variant g95 description {build with g95} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 universal { 92 103 depends_build-append port:g95 93 104 configure.env-append F77=${prefix}/bin/g95 105 if {[variant_isset mpich]} { require_active_variants mpich g95 } 106 if {[variant_isset openmpi]} { require_active_variants openmpi g95 } 94 107 } 95 108 96 109 if { ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset g95] } { … … 117 130 post-destroot { 118 131 delete ${destroot}${prefix}/bin/dnsimp 119 132 reinplace "s|/usr|${prefix}|g" ${destroot}${prefix}/lib/pkgconfig/arpack.pc 133 134 if {[variant_isset openmpi] || [variant_isset mpich]} { 135 delete ${destroot}${prefix}/bin/pcndrv1 136 delete ${destroot}${prefix}/bin/pdndrv1 137 delete ${destroot}${prefix}/bin/pdndrv3 138 delete ${destroot}${prefix}/bin/pdsdrv1 139 delete ${destroot}${prefix}/bin/psndrv3 140 delete ${destroot}${prefix}/bin/pssdrv1 141 delete ${destroot}${prefix}/bin/pzndrv1 142 } 120 143 } 121 144 122 145 livecheck.type regex