Ticket #39701: root.diff

File root.diff, 3.2 KB (added by cjones051073 (Chris Jones), 11 years ago)
  • science/root/Portfile

    old new  
    55
    66name                root
    77version             5.34.09
     8revision            1
    89categories          science
    910maintainers         gmail.com:mattiafrancescomoro hep.phy.cam.ac.uk:jonesc
    1011license             LGPL-2.1+
     
    113114
    114115default_variants    +ssl +xml +gsl +minuit2 +tmva +roofit +graphviz +opengl +soversion
    115116
     117post-destroot {
     118    reinplace "s|lib/python/genreflex|lib/root/python/genreflex|g" ${destroot}${prefix}/bin/genreflex
     119}
     120
    116121variant xrootd description {Build with XRootD support} {
    117122    configure.args-delete   --disable-xrootd
    118123    configure.args-append   --enable-xrootd \
     
    213218        set mypysitedir ${mypylibdir}/site-packages/
    214219        file mkdir ${destroot}${mypysitedir}
    215220        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${destroot}${mypysitedir} }
    216         move ${destroot}${prefix}/lib/root/python/genreflex ${destroot}${mypysitedir}
    217         reinplace "s|/opt/local/lib/root|${mypysitedir}|g" ${destroot}${prefix}/bin/genreflex
    218         reinplace "s|python/genreflex/genreflex.py|genreflex/genreflex.py|g" ${destroot}${prefix}/bin/genreflex
    219221        ln -sf ${prefix}/lib/root/libPyROOT.so ${destroot}${mypylibdir}/
    220222    }
    221223}
     
    232234        set mypysitedir ${mypylibdir}/site-packages/
    233235        file mkdir ${destroot}${mypysitedir}
    234236        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${destroot}${mypysitedir} }
    235         move ${destroot}${prefix}/lib/root/python/genreflex ${destroot}${mypysitedir}
    236         reinplace "s|/opt/local/lib/root|${mypysitedir}|g" ${destroot}${prefix}/bin/genreflex
    237         reinplace "s|python/genreflex/genreflex.py|genreflex/genreflex.py|g" ${destroot}${prefix}/bin/genreflex
    238237        ln -sf ${prefix}/lib/root/libPyROOT.so ${destroot}${mypylibdir}/
    239238    }
    240239}
     
    249248        set mypysitedir ${mypylibdir}/site-packages/
    250249        file mkdir ${destroot}${mypysitedir}
    251250        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${destroot}${mypysitedir} }
    252         move ${destroot}${prefix}/lib/root/python/genreflex ${destroot}${mypysitedir}
    253         reinplace "s|/opt/local/lib/root|${mypysitedir}|g" ${destroot}${prefix}/bin/genreflex
    254         reinplace "s|python/genreflex/genreflex.py|genreflex/genreflex.py|g" ${destroot}${prefix}/bin/genreflex
    255251        ln -sf ${prefix}/lib/root/libPyROOT.so ${destroot}${mypylibdir}/
    256252    }
    257253}
     
    268264        set mypysitedir ${mypylibdir}/site-packages/
    269265        file mkdir ${destroot}${mypysitedir}
    270266        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${destroot}${mypysitedir} }
    271         move ${destroot}${prefix}/lib/root/python/genreflex ${destroot}${mypysitedir}
    272         reinplace "s|/opt/local/lib/root|${mypysitedir}|g" ${destroot}${prefix}/bin/genreflex
    273         reinplace "s|python/genreflex/genreflex.py|genreflex/genreflex.py|g" ${destroot}${prefix}/bin/genreflex
    274267        ln -sf ${prefix}/lib/root/libPyROOT.so ${destroot}${mypylibdir}/
    275268    }
    276269}