Ticket #40602: R-Portfile.diff
File R-Portfile.diff, 3.7 KB (added by kjellpk (Kjell Konis), 11 years ago) |
---|
-
Portfile
old new 1 # -*- 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 1 2 # $Id: Portfile 110575 2013-09-02 12:01:43Z cal@macports.org $ 2 3 3 4 PortSystem 1.0 … … 5 6 6 7 set major 3 7 8 set minor 0 8 set point 19 set point 2 9 10 10 11 name R 11 12 version ${major}.${minor}.${point} 12 revision 313 13 categories math science 14 14 maintainers me.com:kjell.konis 15 15 license {GPL-2 GPL-3} … … 32 32 http://cran.hu.r-project.org/src/base/R-3/ \ 33 33 http://cran.r-project.org/src/base/R-3/ 34 34 35 checksums rmd160 09910626891c2962b5c05d204b14d59444da0c3b\36 sha256 af90488af3141103b211dc81b6f17d1f0faf4f17684c579a32dfeb25d0d8713435 checksums rmd160 8e91603754c965b402bb201c4e5f5a2043262537 \ 36 sha256 956e05ad60447955049285420b5a48e0526aa4db676fd9eadb4bcfb7ccdc024b 37 37 38 38 depends_build port:pkgconfig 39 39 … … 75 75 --with-lapack="-framework vecLib" 76 76 } 77 77 78 variant atlas conflicts accelerate builtin_lapack description {build using the BLAS in the atlas port} { 79 configure.args-append --with-blas="-L/MacPorts/lib -lptf77blas -latlas" 80 #See A.3.2 in R Installation and Administration for why atlas LAPACK not used 81 } 82 78 83 variant builtin_lapack conflicts accelerate description {build using reference BLAS and Lapack} { 79 84 configure.args-append --without-blas --without-lapack 80 85 } 81 86 82 variant cairo requires x11 description { Include cairo support in R's x11 graphics device} {87 variant cairo requires x11 description {include cairo support in R's x11 graphics device} { 83 88 depends_lib-append path:lib/pkgconfig/cairo.pc:cairo \ 84 89 path:lib/pkgconfig/pango.pc:pango \ 85 90 path:lib/pkgconfig/glib-2.0.pc:glib2 \ … … 140 145 } 141 146 } 142 147 143 variant recommended description { Install recommended R packages} {148 variant recommended description {install recommended R packages} { 144 149 configure.args-delete --without-recommended-packages 145 150 configure.args-append --with-recommended-packages 146 151 } 147 152 148 variant tcltk requires x11 description { Usetcltk} {153 variant tcltk requires x11 description {enable use of tcltk} { 149 154 depends_lib-append port:tcl \ 150 155 port:tk \ 151 156 port:xorg-libXScrnSaver \ … … 157 162 --with-tk-config=${prefix}/lib/tkConfig.sh 158 163 } 159 164 160 variant x11 description { 165 variant tests description {include tests of R installation} { 166 destroot.target-append install-tests 167 } 168 169 variant x11 description {enable use of x11} { 161 170 depends_lib-append port:xorg-libsm \ 162 171 port:xorg-libice \ 163 172 port:xorg-libX11 \ … … 180 189 default_variants-append +cairo 181 190 } 182 191 183 if {![variant_isset accelerate] && ![variant_isset builtin_lapack]} {192 if {![variant_isset accelerate] && ![variant_isset atlas] && ![variant_isset builtin_lapack]} { 184 193 default_variants-append +accelerate 185 194 } 186 195 196 test.run yes 197 test.target check 198 187 199 destroot.destdir prefix=${destroot}${frameworks_dir} 188 200 189 201 post-destroot { … … 235 247 livecheck.type regex 236 248 livecheck.url [lindex ${master_sites} 0] 237 249 livecheck.regex >${name}-(\[0-9.\]+)${extract.suffix}< 250 251 252