Ticket #29242: Portfile.diff
File Portfile.diff, 3.6 KB (added by howarth@…, 14 years ago) |
---|
-
Portfile
old new 1 1 # -*- 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 7 7860 2011-04-15 06:08:53Z ryandesign@macports.org $2 # $Id: Portfile 75159 2011-01-17 02:00:53Z rmstonecipher@macports.org $ 3 3 4 4 PortSystem 1.0 5 PortGroup python26 1.0 5 6 6 7 name pymol 7 version 1.3 8 revision 3 8 version 1.4 9 9 categories science 10 10 maintainers bromo.med.uc.edu:howarth 11 11 description Molecular graphics system … … 20 20 master_sites sourceforge 21 21 fetch.type svn 22 22 svn.url https://pymol.svn.sourceforge.net/svnroot/pymol/trunk/pymol 23 svn.revision 39 3023 svn.revision 3945 24 24 worksrcdir pymol 25 25 26 depends_lib port:freetype port:libpng port:python26 port:py26-pmw port:py26-numeric port:mesa port: py26-tkinter26 depends_lib port:freetype port:libpng port:python26 port:py26-pmw port:py26-numeric port:mesa port:glew port:py26-tkinter 27 27 depends_run port:xdpyinfo 28 28 29 patchfiles pymol-build.patch pymol-build.patch2 30 use_configure no 29 patchfiles setup_py.diff pymol_shell.diff 31 30 32 31 post-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 47 35 } 48 36 49 37 use_parallel_build no 50 pre-build {51 build.args -f Makefile.delsci \52 CC="${configure.cc}" CXX="${configure.cxx}"53 }54 38 55 39 variant gcc43 description conflicts gcc44 gcc45 description {build using macports-gcc-4.3} { 56 40 depends_lib-append port:gcc43 … … 76 60 configure.compiler macports-gcc-4.5 77 61 } 78 62 79 destroot {80 file mkdir ${destroot}${prefix}/lib/pymol/bin81 copy ${worksrcpath}/setup/pymol.com.osx-fink ${destroot}${prefix}/lib/pymol/bin/pymol82 ln -s ${prefix}/lib/pymol/bin/pymol ${destroot}${prefix}/bin83 foreach d {data modules examples test scripts} {84 copy ${worksrcpath}/${d} ${destroot}${prefix}/lib/pymol85 }86 }87 88 63 post-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 } 90 69 }