24 | | master_sites sourceforge |
25 | | fetch.type svn |
26 | | svn.url https://svn.code.sf.net/p/pymol/code/trunk/pymol |
27 | | svn.revision 4141 |
28 | | worksrcdir pymol |
29 | | |
30 | | compilers.choose cc cxx |
31 | | compilers.setup |
32 | | |
33 | | python.default_version 27 |
34 | | python.link_binaries no |
35 | | |
36 | | depends_lib-append port:freeglut \ |
37 | | port:freetype \ |
38 | | port:glew \ |
39 | | port:libpng \ |
40 | | port:libGLU \ |
41 | | port:mesa \ |
42 | | port:py${python.version}-numpy \ |
43 | | port:py${python.version}-pmw \ |
44 | | port:py${python.version}-scipy \ |
45 | | port:py${python.version}-tkinter \ |
46 | | port:tcl \ |
47 | | port:tk |
48 | | depends_run port:xdpyinfo |
49 | | |
50 | | # py-scipy is not universal |
51 | | universal_variant no |
52 | | |
53 | | patchfiles setup_py.diff \ |
54 | | pymol_shell.diff \ |
55 | | pmg_tk_platform.patch \ |
56 | | apbs-psize.patch |
57 | | |
58 | | if {${os.platform} eq "darwin" && ${os.major} >= 12} { |
59 | | patchfiles-append pymol-use-glkit.diff |
| 23 | # No distfiles for a stub port. |
| 24 | master_sites |
| 25 | distfiles |
| 26 | extract.only |
| 27 | checksums |
| 28 | |
| 29 | # Clear dependencies. |
| 30 | depends_build |
| 31 | |
| 32 | pre-configure { |
| 33 | ui_error "Please do not install this port since it has been replaced by 'py27-pymol'." |
| 34 | return -code error |
62 | | require_active_variants tcl "" corefoundation |
63 | | require_active_variants tk "" quartz |
64 | | |
65 | | post-patch { |
66 | | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/setup.py |
67 | | reinplace "s|@@PYTHON_PKGDIR@@|${python.pkgd}|g" ${worksrcpath}/setup/pymol_macports |
68 | | reinplace "s|@@PYTHON_BINARY@@|${python.bin}|g" ${worksrcpath}/setup/pymol_macports |
69 | | reinplace "s|\"-O3\",|\"-O3\", \"-g\",|g" ${worksrcpath}/setup.py |
70 | | reinplace "s|cxx + \' \' + cxxflags|\'${configure.cxx} \' + cxxflags|g" ${worksrcpath}/monkeypatch_distutils.py |
71 | | } |
72 | | |
73 | | use_parallel_build yes |
74 | | |
75 | | build {} |
76 | | |
77 | | pre-destroot { |
78 | | destroot.env CC="${configure.cc}" CXX="${configure.cxx}" |
79 | | } |
80 | | |
81 | | post-destroot { |
82 | | file copy ${worksrcpath}/setup/pymol_macports ${destroot}${prefix}/bin/pymol |
83 | | file attributes ${destroot}${prefix}/bin/pymol -permissions a+x |
84 | | foreach d {data modules examples test scripts} { |
85 | | copy ${worksrcpath}/${d} ${destroot}${python.pkgd}/pymol |
86 | | } |
87 | | } |
| 37 | livecheck.type none |