Ticket #31428: root.diff

File root.diff, 8.4 KB (added by cjones051073 (Chris Jones), 13 years ago)
  • Portfile

    old new  
    44PortSystem          1.0
    55
    66name                root
    7 version             5.30.01
     7version             5.30.02
    88revision            0
    99categories          science
    1010maintainers         gmail.com:mattiafrancescomoro hep.phy.cam.ac.uk:jonesc
     
    1919master_sites        http://root.cern.ch/download/ \
    2020                    ftp://root.cern.ch/root/
    2121
    22 checksums           sha1    d5297bbdcdb1df5a00520b82eda59577b25c53c8 \
    23                     rmd160  bc68936ac58dedd3138921d7d6fdab8097b4edb5
     22checksums           sha1    0617b9a1dc7e040cb15c7133ad9399cf1b707d93 \
     23                    rmd160  7a4f54935c986cf2335bd20ef380c3edb6266bce
    2424
    2525worksrcdir          root
    2626
     
    9595                    F77=${configure.f77}
    9696}
    9797
    98 use_parallel_build  no
    99 
    10098universal_variant   no
    10199
    102100default_variants    +ssl +builtin_ftgl +roofit +xml +opengl
     
    104102variant fftw3 description {Builds port with fftw3 support} {
    105103    configure.args-delete   --disable-fftw3
    106104    configure.args-append   --enable-fftw3 \
    107                             --with-fftw3-incdir="${prefix}/include/" \
     105                            --with-fftw3-incdir="${prefix}/include" \
    108106                            --with-fftw3-libdir="${prefix}/lib"
    109107    depends_lib-append      port:fftw-3
    110108}
    111109
    112 variant kerberos5 description {Builds port with kerberos5 support} {
    113     configure.args-delete   --disable-krb5
    114     configure.args-append   --enable-krb5 \
    115                             --with-krb5-incdir="${prefix}/include/" \
    116                             --with-krb5-libdir="${prefix}/lib"
    117     depends_lib-append      port:kerberos5
    118 }
     110# Build issues. Under discussion with ROOT team.
     111# variant kerberos5 description {Builds port with kerberos5 support} {
     112#     configure.args-delete   --disable-krb5
     113#     configure.args-append   --enable-krb5 \
     114#                             --with-krb5-incdir="${prefix}/include" \
     115#                             --with-krb5-libdir="${prefix}/lib"
     116#      depends_lib-append      port:kerberos5
     117# }
    119118
    120119variant odbc description {Builds port with odbc support} {
    121120    configure.args-delete   --disable-odbc
    122121    configure.args-append   --enable-odbc\
    123                             --with-odbc-incdir="${prefix}/include/" \
     122                            --with-odbc-incdir="${prefix}/include" \
    124123                            --with-odbc-libdir="${prefix}/lib"
    125124    depends_lib-append      port:unixODBC
    126125}
    127126
    128 variant ldap description {Builds port with lpap support} {
     127variant ldap description {Builds port with ldap support} {
    129128    configure.args-delete   --disable-ldap
    130129    configure.args-append   --enable-ldap\
    131                             --with-ldap-incdir="${prefix}/include/" \
     130                            --with-ldap-incdir="${prefix}/include" \
    132131                            --with-ldap-libdir="${prefix}/lib"
    133132    depends_lib-append      port:openldap
    134133}
     
    143142    configure.args-append   --enable-opengl \
    144143                            --with-opengl-incdir="${prefix}/include" \
    145144                            --with-opengl-libdir="${prefix}/lib" \
    146                             --with-glew-incdir="${prefix}/include/" \
     145                            --with-glew-incdir="${prefix}/include" \
    147146                            --with-glew-libdir="${prefix}/lib"
    148147    depends_lib-append      port:glew
    149148}
    150149
    151 variant python26 conflicts python27 description {Builds port with python 2.6 support} {
     150variant python26 conflicts python31 python27 description {Builds port with python 2.6 support} {
     151    set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/2.6
    152152    configure.args-delete   --disable-python
    153     configure.args-append   --enable-python \
    154                             --with-python-incdir="${prefix}/Library/Frameworks/Python.framework/Versions/2.6/Headers" \
    155                             --with-python-libdir="${prefix}/Library/Frameworks/Python.framework/Versions/2.6"
     153    configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
    156154    depends_lib-append      port:python26
    157    
    158155    post-destroot {
    159         file mkdir  ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
    160         move ${destroot}${prefix}/lib/root/ROOT.py ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
    161         move ${destroot}${prefix}/lib/root/ROOT.pyc ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
    162         move ${destroot}${prefix}/lib/root/ROOT.pyo ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
    163         move ${destroot}${prefix}/lib/root/ROOTwriter.py ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
    164         move ${destroot}${prefix}/lib/root/python/genreflex ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
    165         move ${destroot}${prefix}/lib/root/writer.py ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
     156        set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
     157        file mkdir ${mypysitedir}
     158        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${mypysitedir} }
     159        move ${destroot}${prefix}/lib/root/python/genreflex ${mypysitedir}
    166160    }
    167161}
    168162
    169 variant python27 conflicts python26 description {Builds port with python 2.7 support} {
     163variant python27 conflicts python31 python26 description {Builds port with python 2.7 support} {
     164    set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/2.7
    170165    configure.args-delete   --disable-python
    171     configure.args-append   --enable-python \
    172                             --with-python-incdir="${prefix}/Library/Frameworks/Python.framework/Versions/2.7/Headers" \
    173                             --with-python-libdir="${prefix}/Library/Frameworks/Python.framework/Versions/2.7"
     166    configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
    174167    depends_lib-append      port:python27
    175    
    176168    post-destroot {
    177         file mkdir  ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
    178         move ${destroot}${prefix}/lib/root/ROOT.py ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
    179         move ${destroot}${prefix}/lib/root/ROOT.pyc ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
    180         move ${destroot}${prefix}/lib/root/ROOT.pyo ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
    181         move ${destroot}${prefix}/lib/root/ROOTwriter.py ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
    182         move ${destroot}${prefix}/lib/root/python/genreflex ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
    183         move ${destroot}${prefix}/lib/root/writer.py ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
     169        set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
     170        file mkdir ${mypysitedir}
     171        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${mypysitedir} }
     172        move ${destroot}${prefix}/lib/root/python/genreflex ${mypysitedir}
     173    }
     174}
     175
     176variant python31 conflicts python27 python26 description {Builds port with python 3.1 support} {
     177    set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/3.1
     178    configure.args-delete   --disable-python
     179    configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
     180    depends_lib-append      port:python31
     181    post-destroot {
     182        set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/
     183        file mkdir ${mypysitedir}
     184        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${mypysitedir} }
     185        move ${destroot}${prefix}/lib/root/python/genreflex ${mypysitedir}
    184186    }
    185187}
    186188