Ticket #50370: Portfile-pymol.diff

File Portfile-pymol.diff, 3.4 KB (added by dstrubbe (David Strubbe), 9 years ago)
  • Portfile

     
    44PortSystem          1.0
    55PortGroup           python 1.0
    66PortGroup           active_variants 1.1
     7PortGroup           compilers 1.0
    78
    89name                pymol
    910version             1.7.7.2
     
    1011revision            1
    1112categories          science chemistry
    1213license             PSF
    13 maintainers         gmail.com:howarth.at.macports
     14maintainers         gmail.com:howarth.at.macports openmaintainer
    1415description         Molecular graphics system
    1516long_description    PyMOL is a molecular graphics system with an embedded Python interpreter \
    1617                    designed for real-time visualization and rapid generation of high-quality \
     
    2627svn.revision        4141
    2728worksrcdir          pymol
    2829
     30compilers.choose    cc cxx
     31compilers.setup
     32
    2933python.default_version 27
    3034python.link_binaries no
    3135
     
    3842                    port:py${python.version}-numpy \
    3943                    port:py${python.version}-pmw \
    4044                    port:py${python.version}-scipy \
    41                     port:py${python.version}-tkinter
     45                    port:py${python.version}-tkinter \
     46                    port:tcl \
     47                    port:tk
    4248depends_run         port:xdpyinfo
    4349
    4450# py-scipy is not universal
     
    6167    reinplace  "s|@@PYTHON_PKGDIR@@|${python.pkgd}|g" ${worksrcpath}/setup/pymol_macports
    6268    reinplace  "s|@@PYTHON_BINARY@@|${python.bin}|g" ${worksrcpath}/setup/pymol_macports
    6369    reinplace  "s|\"-O3\",|\"-O3\", \"-g\",|g" ${worksrcpath}/setup.py
     70    reinplace  "s|cxx + \' \' + cxxflags|\'${configure.cxx} \' + cxxflags|g" ${worksrcpath}/monkeypatch_distutils.py
    6471}
    6572
    6673use_parallel_build yes
    6774
    68 variant gcc43 description conflicts gcc44 gcc45 gcc46 gcc47 gcc48 gcc49 gcc5 description {build using macports-gcc-4.3} {
    69     python.add_archflags    no
    70     configure.compiler      macports-gcc-4.3
    71 }
    72 
    73 variant gcc44 description conflicts gcc43 gcc45 gcc46 gcc47 gcc48 gcc49 gcc5 description {build using macports-gcc-4.4} {
    74     python.add_archflags    no
    75     configure.compiler      macports-gcc-4.4
    76 }
    77 
    78 variant gcc45 description conflicts gcc43 gcc44 gcc46 gcc47 gcc48 gcc49 gcc5 description {build using macports-gcc-4.5} {
    79     python.add_archflags    no
    80     configure.compiler      macports-gcc-4.5
    81 }
    82 
    83 variant gcc46 description conflicts gcc43 gcc44 gcc45 gcc47 gcc48 gcc49 gcc5 description {build using macports-gcc-4.6} {
    84     python.add_archflags    no
    85     configure.compiler      macports-gcc-4.6
    86 }
    87 
    88 variant gcc47 description conflicts gcc43 gcc44 gcc45 gcc46 gcc48 gcc49 gcc5 description {build using macports-gcc-4.7} {
    89     python.add_archflags    no
    90     configure.compiler      macports-gcc-4.7
    91 }
    92 
    93 variant gcc48 description conflicts gcc43 gcc44 gcc45 gcc46 gcc47 gcc49 gcc5 description {build using macports-gcc-4.8} {
    94     python.add_archflags    no
    95     configure.compiler      macports-gcc-4.8
    96 }
    97 
    98 variant gcc49 description conflicts gcc43 gcc44 gcc45 gcc46 gcc47 gcc48 gcc5 description {build using macports-gcc-4.9} {
    99     python.add_archflags    no
    100     configure.compiler      macports-gcc-4.9
    101 }
    102 
    103 variant gcc5 description conflicts gcc43 gcc44 gcc45 gcc46 gcc47 gcc48 gcc49 description {build using macports-gcc-5} {
    104     python.add_archflags    no
    105     configure.compiler      macports-gcc-5
    106 }
    107 
    10875build {}
    10976
    11077pre-destroot {