Ticket #29242: Portfile.diff

File Portfile.diff, 3.6 KB (added by howarth@…, 14 years ago)

Portfile diff bumped to svn revision 3945

  • Portfile

    old new  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    2 # $Id: Portfile 77860 2011-04-15 06:08:53Z ryandesign@macports.org $
     2# $Id: Portfile 75159 2011-01-17 02:00:53Z rmstonecipher@macports.org $
    33
    44PortSystem          1.0
     5PortGroup           python26 1.0
    56
    67name                pymol
    7 version             1.3
    8 revision            3
     8version             1.4
    99categories          science
    1010maintainers         bromo.med.uc.edu:howarth
    1111description         Molecular graphics system
     
    2020master_sites        sourceforge
    2121fetch.type          svn
    2222svn.url             https://pymol.svn.sourceforge.net/svnroot/pymol/trunk/pymol
    23 svn.revision        3930
     23svn.revision        3945
    2424worksrcdir          pymol
    2525
    26 depends_lib         port:freetype port:libpng port:python26 port:py26-pmw port:py26-numeric port:mesa port:py26-tkinter
     26depends_lib         port:freetype port:libpng port:python26 port:py26-pmw port:py26-numeric port:mesa port:glew port:py26-tkinter
    2727depends_run         port:xdpyinfo
    2828
    29 patchfiles          pymol-build.patch pymol-build.patch2
    30 use_configure       no
     29patchfiles         setup_py.diff pymol_shell.diff
    3130
    3231post-patch {
    33     reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/contrib/modules/Makefile.pre.in.src
    34     reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/setup/Rules.osx-fink
    35     reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/setup/pymol.com.osx-fink
    36     reinplace  "s|-Wno-long-double||g" ${worksrcpath}/setup/Rules.osx-fink
    37     reinplace  "s|/usr/X11R6|${prefix}|g" ${worksrcpath}/setup/Rules.osx-fink
    38     reinplace  "s|/usr/X11R6|${prefix}|g" ${worksrcpath}/modules/pymol/__init__.py
    39 }
    40 
    41 post-configure {
    42     copy ${worksrcpath}/setup/Rules.osx-fink ${worksrcpath}/Rules.delsci
    43     if { [variant_isset gcc43] || [variant_isset gcc44] || [variant_isset gcc45] } {
    44         reinplace  "s| -no-cpp-precomp||g"          ${worksrcpath}/Rules.delsci
    45         reinplace  "s|^BUILD = |BUILD = -lstdc++ |" ${worksrcpath}/Rules.delsci
    46     }
     32    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/setup.py
     33    reinplace  "s|@@PYTHON_PKGDIR@@|${python.pkgd}|g" ${worksrcpath}/setup/pymol_macports
     34    reinplace  "s|@@PYTHON_BINARY@@|${python.bin}|g" ${worksrcpath}/setup/pymol_macports
    4735}
    4836
    4937use_parallel_build  no
    50 pre-build {
    51     build.args  -f Makefile.delsci \
    52                 CC="${configure.cc}" CXX="${configure.cxx}"
    53 }
    5438
    5539variant gcc43 description conflicts gcc44 gcc45 description {build using macports-gcc-4.3} {
    5640    depends_lib-append  port:gcc43
     
    7660    configure.compiler  macports-gcc-4.5
    7761}
    7862
    79 destroot {
    80     file mkdir ${destroot}${prefix}/lib/pymol/bin
    81     copy  ${worksrcpath}/setup/pymol.com.osx-fink ${destroot}${prefix}/lib/pymol/bin/pymol
    82     ln -s ${prefix}/lib/pymol/bin/pymol ${destroot}${prefix}/bin
    83     foreach d {data modules examples test scripts} {
    84         copy ${worksrcpath}/${d} ${destroot}${prefix}/lib/pymol
    85     }
    86 }
    87 
    8863post-destroot {
    89     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"
     64     file copy ${worksrcpath}/setup/pymol_macports ${destroot}${prefix}/bin/pymol
     65     file attributes ${destroot}${prefix}/bin/pymol -permissions a+x
     66     foreach d {data modules examples test scripts} {
     67        copy ${worksrcpath}/${d} ${destroot}${python.pkgd}/pymol
     68    }
    9069}