Ticket #56373: Portfile.diff

File Portfile.diff, 1.3 KB (added by jwhowarth, 7 years ago)

Portfile diff to restore -O3 optimization to pymol build on darwin

  • Portfile

    old new  
    77
    88name                pymol
    99version             2.1.0
     10revision            1
    1011categories          science chemistry
    1112license             PSF
    1213maintainers         {gmail.com:howarth.at.macports @jwhowarth} openmaintainer
     
    6768patchfiles          pymol_shell.diff \
    6869                    pmg_tk_platform.patch \
    6970                    apbs-psize.patch  \
    70                     pdb2pqr.patch
     71                    pdb2pqr.patch \
     72                    clang_opt_fix.diff
    7173
    7274require_active_variants tcl "" corefoundation
    7375require_active_variants tk "" quartz
    7476
    7577post-patch {
    76     reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/setup.py ${worksrcpath}/modules/pmg_tk/startup/apbs_tools.py
     78    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/modules/pmg_tk/startup/apbs_tools.py
     79    reinplace  "s|'/sw', '/opt/local'|'${prefix}'|g" ${worksrcpath}/setup.py
    7780    reinplace  "s|@@PYTHON_PKGDIR@@|${python.pkgd}|g" ${worksrcpath}/setup/pymol_macports
    7881    reinplace  "s|@@PYTHON_BINARY@@|${python.bin}|g" ${worksrcpath}/setup/pymol_macports
    79     reinplace  "s|\"-O3\",|\"-O3\", \"-g\",|g" ${worksrcpath}/setup.py
    8082    reinplace  "s|cxx + \' \' + cxxflags|\'${configure.cxx} \' + cxxflags|g" ${worksrcpath}/monkeypatch_distutils.py
    8183}
    8284