Ticket #32400: root-V2.diff

File root-V2.diff, 5.8 KB (added by cjones051073 (Chris Jones), 12 years ago)
  • science/root/Portfile

    old new  
    44PortSystem          1.0
    55
    66name                root
    7 version             5.30.03
     7version             5.32.00
    88revision            0
    99categories          science
    1010maintainers         gmail.com:mattiafrancescomoro hep.phy.cam.ac.uk:jonesc
    1111license             LGPL-2.1+
    12 description         Root cern data analysis framework
     12description         ROOT is a data analysis framework from CERN
    1313long_description    The ROOT system provides a set of frameworks with all \
    1414                    the functionality needed to handle and analyze large amounts \
    1515                    of data in a very efficient way
     
    1919master_sites        http://root.cern.ch/download/ \
    2020                    ftp://root.cern.ch/root/
    2121
    22 checksums           sha1    d2cd2855905a7f2f63366e0fc38f15a49881b792 \
    23                     rmd160  b85ad6f248d94755aa9ce6a872ea6ce4d90d8373
     22checksums           sha1    b7375d53dd845505196d12a7d66c3b2d8e1b0336 \
     23                    rmd160  e8b0c9b4e60334fb9f01b4cf70cdaed518c62bae
    2424
    2525worksrcdir          root
    2626
     
    4040
    4141patchfiles          patch-configure.diff
    4242
     43if {${configure.compiler} == "clang"} {
     44    configure.compiler llvm-gcc-4.2
     45}
     46
    4347post-patch {
    4448    reinplace "s|-lfreetype| \`freetype-config --libs\`|g" ${worksrcpath}/config/root-config.in
    4549    reinplace "s|\"/usr/include\"|\"${prefix}/include/\" \"/usr/include\"|g" ${worksrcpath}/configure
     
    108112
    109113universal_variant   no
    110114
    111 default_variants    +ssl +xml +opengl +gsl +minuit2 +tmva +roofit
     115default_variants    +ssl +xml +gsl +minuit2 +tmva +roofit
    112116
    113117variant fftw3 description {Builds port with fftw3 support} {
    114118    configure.args-delete   --disable-fftw3
     
    156160    depends_lib-append      port:openldap
    157161}
    158162
    159 variant roofit description { Build the libRooFit advanced fitting package} {
     163variant roofit description {Build the libRooFit advanced fitting package} {
    160164    configure.args-delete   --disable-roofit
    161165    configure.args-append   --enable-roofit
    162166}
    163167
    164 variant tmva description { Build the TMVA package} {
     168variant tmva description {Build the TMVA package} {
    165169    configure.args-delete   --disable-tmva
    166170    configure.args-append   --enable-tmva
    167171}
     
    181185    depends_lib-append      port:glew port:mesa
    182186}
    183187
    184 variant python26 conflicts python31 python27 description {Builds port with python 2.6 support} {
     188variant python26 conflicts python32 python31 python27 description {Builds port with python 2.6 support} {
    185189    set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/2.6
    186190    configure.args-delete   --disable-python
    187191    configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
     
    194198    }
    195199}
    196200
    197 variant python27 conflicts python31 python26 description {Builds port with python 2.7 support} {
     201variant python27 conflicts python32 python31 python26 description {Builds port with python 2.7 support} {
    198202    set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/2.7
    199203    configure.args-delete   --disable-python
    200204    configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
     
    207211    }
    208212}
    209213
    210 variant python31 conflicts python27 python26 description {Builds port with python 3.1 support} {
     214variant python31 conflicts python32 python27 python26 description {Builds port with python 3.1 support} {
    211215    set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/3.1
    212216    configure.args-delete   --disable-python
    213217    configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
     
    220224    }
    221225}
    222226
     227variant python32 conflicts python31 python27 python26 description {Builds port with python 3.2 support} {
     228    set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/3.2
     229    configure.args-delete   --disable-python
     230    configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
     231    depends_lib-append      port:python32
     232    post-destroot {
     233        set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/
     234        file mkdir ${mypysitedir}
     235        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${mypysitedir} }
     236        move ${destroot}${prefix}/lib/root/python/genreflex ${mypysitedir}
     237    }
     238}
     239
    223240variant ruby description {Builds port with ruby support} {
    224241    configure.args-delete   --disable-ruby
    225242    configure.args-append   --enable-ruby
     
    314331    depends_lib-append      port:pythia
    315332}
    316333
    317 variant gcc44 conflicts gcc45 description {Compile using MacPorts gcc 4.4} {
     334variant gcc44 conflicts gcc45 gcc46 description {Compile using MacPorts gcc 4.4} {
    318335    configure.compiler      macports-gcc-4.4
    319336    depends_lib-append      port:gcc44
    320337}
    321338
    322 variant gcc45 conflicts gcc44 description {Compile using MacPorts gcc 4.5} {
     339variant gcc45 conflicts gcc44 gcc46 description {Compile using MacPorts gcc 4.5} {
    323340    configure.compiler      macports-gcc-4.5
    324341    depends_lib-append      port:gcc45
    325342}
    326343
    327 # Build issues
    328 #variant gcc46 conflicts gcc44 gcc45 description {Compile using MacPorts gcc 4.6} {
    329 #    configure.compiler      macports-gcc-4.6
    330 #    depends_lib-append      port:gcc46
    331 #}
     344variant gcc46 conflicts gcc44 gcc45 description {Compile using MacPorts gcc 4.6} {
     345    configure.compiler      macports-gcc-4.6
     346    depends_lib-append      port:gcc46
     347}
    332348
    333349# Build issues.
    334350# variant kerberos5 description {Builds port with kerberos5 support} {