Ticket #56139: Portfile.diff
File Portfile.diff, 3.5 KB (added by jwhowarth, 7 years ago) |
---|
-
Portfile
old new 6 6 PortGroup compilers 1.0 7 7 8 8 name pymol 9 version 1.8.7.09 version 2.1.0 10 10 categories science chemistry 11 11 license PSF 12 12 maintainers {gmail.com:howarth.at.macports @jwhowarth} openmaintainer … … 22 22 master_sites sourceforge 23 23 fetch.type svn 24 24 svn.url http://svn.code.sf.net/p/pymol/code/trunk/pymol 25 svn.revision 41 7625 svn.revision 4187 26 26 worksrcdir pymol 27 27 28 28 compilers.choose cc cxx 29 29 compilers.setup 30 30 31 variant python27 conflicts python34 python35 description {Use Python 2.7} {} 32 variant python34 conflicts python27 python35 description {Use Python 3.4} {} 33 variant python35 conflicts python27 python34 description {Use Python 3.5} {} 31 variant python27 conflicts python34 python35 python36 description {Use Python 2.7} {} 32 variant python34 conflicts python27 python35 python36 description {Use Python 3.4} {} 33 variant python35 conflicts python27 python34 python36 description {Use Python 3.5} {} 34 variant python36 conflicts python27 python34 python35 description {Use Python 3.5} {} 35 34 36 if {[variant_isset python34]} { 35 37 python.default_version 34 36 38 } elseif {[variant_isset python35]} { 37 39 python.default_version 35 40 } elseif {[variant_isset python36]} { 41 python.default_version 36 38 42 } else { 39 43 default_variants +python27 40 44 python.default_version 27 … … 50 54 port:msgpack1 \ 51 55 port:py${python.version}-numpy \ 52 56 port:py${python.version}-pmw \ 57 port:py${python.version}-pyqt5 \ 53 58 port:py${python.version}-scipy \ 54 59 port:py${python.version}-tkinter \ 55 60 port:tcl \ … … 61 66 62 67 patchfiles pymol_shell.diff \ 63 68 pmg_tk_platform.patch \ 64 apbs-psize.patch 65 66 if {${os.platform} eq "darwin" && ${os.major} >= 12} { 67 patchfiles-append pymol-use-glkit.diff 68 } 69 apbs-psize.patch \ 70 pdb2pqr.patch 69 71 70 72 require_active_variants tcl "" corefoundation 71 73 require_active_variants tk "" quartz 72 74 73 75 post-patch { 74 reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/setup.py 76 reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/setup.py ${worksrcpath}/modules/pmg_tk/startup/apbs_tools.py 75 77 reinplace "s|@@PYTHON_PKGDIR@@|${python.pkgd}|g" ${worksrcpath}/setup/pymol_macports 76 78 reinplace "s|@@PYTHON_BINARY@@|${python.bin}|g" ${worksrcpath}/setup/pymol_macports 77 79 reinplace "s|\"-O3\",|\"-O3\", \"-g\",|g" ${worksrcpath}/setup.py … … 82 84 83 85 build {} 84 86 87 destroot.cmd ${python.bin} setup.py --no-user-cfg --osx-frameworks 88 85 89 pre-destroot { 86 90 destroot.env CC="${configure.cc}" CXX="${configure.cxx}" PREFIX_PATH="${prefix}" 87 91 } … … 89 93 post-destroot { 90 94 file copy ${worksrcpath}/setup/pymol_macports ${destroot}${prefix}/bin/pymol 91 95 file attributes ${destroot}${prefix}/bin/pymol -permissions a+x 92 foreach d {data modules examples test scripts} {93 copy ${worksrcpath}/${d} ${destroot}${python.pkgd}/pymol94 }95 96 } 97 98 test.run yes 99 test.cmd cd test && ${python.bin} 100 test.target run 101 102 notes "Pymol can be started with the classic Tk GUI by appending the '-N pmg_tk' runtime option." 103 104 livecheck.type regex 105 livecheck.url ${svn.url} 106 livecheck.version ${svn.revision} 107 livecheck.regex {Revision (\d+):}