Ticket #27001: Portfile-R.diff
File Portfile-R.diff, 2.7 KB (added by kjell.konis@…, 14 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name R 6 version 2.11.1 7 revision 2 6 version 2.12.0 8 7 categories math science 9 8 maintainers epfl.ch:kjell.konis 10 9 platforms darwin … … 25 24 http://cran.hu.r-project.org/src/base/R-2/ \ 26 25 http://cran.r-project.org/src/base/R-2/ 27 26 28 checksums md5 7421108ade3e9223263394b9bbe277ce\29 sha1 0 b36780627f3cc5cea3f41e0b717ed7ee92ba086\30 rmd160 a5223a3f784ad0f808d893d82a4e0a130c9a9b3a27 checksums md5 aa003654d238d70bf5bc7433b8257aac \ 28 sha1 07b90a728e36585742603beccdee30b6864ef5af \ 29 rmd160 e10511bc360284d3876b147a0351b662d80d22a4 31 30 32 31 depends_lib port:gettext \ 33 32 port:icu \ … … 49 48 configure.args-append --with-recommended-packages 50 49 } 51 50 52 variant gcc42 conflicts gcc43 gcc44 description {Build with gcc42} {51 variant gcc42 conflicts gcc43 gcc44 gcc45 description {Build with gcc42} { 53 52 configure.compiler macports-gcc-4.2 54 53 depends_lib-append port:gcc42 55 54 } 56 55 57 variant gcc43 conflicts gcc42 gcc44 description {Build with gcc43} {56 variant gcc43 conflicts gcc42 gcc44 gcc45 description {Build with gcc43} { 58 57 configure.compiler macports-gcc-4.3 59 58 depends_lib-append port:gcc43 60 59 } 61 60 62 variant gcc44 conflicts gcc42 gcc43 description {Build with gcc44} {61 variant gcc44 conflicts gcc42 gcc43 gcc45 description {Build with gcc44} { 63 62 configure.compiler macports-gcc-4.4 64 63 depends_lib-append port:gcc44 65 64 } 66 65 66 variant gcc45 conflicts gcc42 gcc43 gcc44 description {Build with gcc45} { 67 configure.compiler macports-gcc-4.5 68 depends_lib-append port:gcc45 69 } 70 67 71 default_variants +recommended 68 72 69 if {![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44] } {73 if {![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45]} { 70 74 default_variants-append +gcc44 71 75 } 72 76 … … 104 108 reinplace "s|${v}=${destroot}|${v}=|" "${destroot}${prefix}/lib/pkgconfig/libR.pc" 105 109 } 106 110 107 reinplace "s|rlibdir=\$\{rhome\}/lib|rlibdir=\$\{rhome\}/lib/${build_arch}|" \108 "${destroot}${prefix}/lib/pkgconfig/libR.pc"109 reinplace "s|Cflags: -I\$\{rincludedir\}|Cflags: -I\$\{rincludedir\} -I\$\{rincludedir\}/${build_arch}|" \110 "${destroot}${prefix}/lib/pkgconfig/libR.pc"111 112 111 foreach dylib [ exec find ${destroot}${prefix}/lib/R/lib/${build_arch} -name "\*.dylib" ] { 113 112 regsub ":$" ${dylib} "" destroot_dylib_path 114 113 regsub ${destroot} ${destroot_dylib_path} "" dylib_path