Ticket #22096: Portfile.diff

File Portfile.diff, 632 bytes (added by howarth@…, 15 years ago)

compile pymol's python scripts as optimized byte code

  • Portfile

    old new  
    55
    66name                pymol
    77version             1.2r2
     8revision            1
    89categories          science
    910maintainers         bromo.med.uc.edu:howarth
    1011description         Molecular graphics system
     
    5455        copy ${worksrcpath}/${d} ${destroot}${prefix}/lib/pymol
    5556    }
    5657}
     58
     59post-destroot {
     60    system "${prefix}/bin/python2.6 -O ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/compileall.py -d ${prefix}/lib/pymol/modules ${destroot}${prefix}/lib/pymol/modules"
     61}