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 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python 1.0 |
---|
5 | PortGroup active_variants 1.1 |
---|
6 | |
---|
7 | name pymol |
---|
8 | version 1.7.1.0 |
---|
9 | categories science chemistry |
---|
10 | license GPL |
---|
11 | maintainers bromo.med.uc.edu:howarth |
---|
12 | description Molecular graphics system |
---|
13 | long_description PyMOL is a molecular graphics system with an embedded Python interpreter \ |
---|
14 | designed for real-time visualization and rapid generation of high-quality \ |
---|
15 | molecular graphics images and animations. |
---|
16 | |
---|
17 | platforms darwin |
---|
18 | |
---|
19 | homepage http://www.pymol.org/ |
---|
20 | |
---|
21 | master_sites sourceforge |
---|
22 | fetch.type svn |
---|
23 | svn.url https://svn.code.sf.net/p/pymol/code/trunk/pymol |
---|
24 | svn.revision 4073 |
---|
25 | worksrcdir pymol |
---|
26 | |
---|
27 | python.default_version 27 |
---|
28 | |
---|
29 | depends_lib-append port:freeglut \ |
---|
30 | port:freetype \ |
---|
31 | port:glew \ |
---|
32 | port:libpng \ |
---|
33 | port:mesa \ |
---|
34 | port:py${python.version}-numpy \ |
---|
35 | port:py${python.version}-pmw \ |
---|
36 | port:py${python.version}-scipy \ |
---|
37 | port:py${python.version}-tkinter |
---|
38 | depends_run port:xdpyinfo |
---|
39 | |
---|
40 | # py-scipy is not universal |
---|
41 | universal_variant no |
---|
42 | |
---|
43 | patchfiles setup_py.diff \ |
---|
44 | pymol_shell.diff \ |
---|
45 | pmg_tk_platform.patch \ |
---|
46 | apbs-psize.patch \ |
---|
47 | apbs_tkinter.patch \ |
---|
48 | pymol-clang.diff |
---|
49 | |
---|
50 | require_active_variants tcl "" corefoundation |
---|
51 | require_active_variants tk "" quartz |
---|
52 | |
---|
53 | post-patch { |
---|
54 | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/setup.py |
---|
55 | reinplace "s|@@PYTHON_PKGDIR@@|${python.pkgd}|g" ${worksrcpath}/setup/pymol_macports |
---|
56 | reinplace "s|@@PYTHON_BINARY@@|${python.bin}|g" ${worksrcpath}/setup/pymol_macports |
---|
57 | } |
---|
58 | |
---|
59 | use_parallel_build yes |
---|
60 | |
---|
61 | variant gcc43 description conflicts gcc44 gcc45 gcc46 gcc47 gcc48 gcc49 description {build using macports-gcc-4.3} { |
---|
62 | python.add_archflags no |
---|
63 | configure.compiler macports-gcc-4.3 |
---|
64 | } |
---|
65 | |
---|
66 | variant gcc44 description conflicts gcc43 gcc45 gcc46 gcc47 gcc48 gcc49 description {build using macports-gcc-4.4} { |
---|
67 | python.add_archflags no |
---|
68 | configure.compiler macports-gcc-4.4 |
---|
69 | } |
---|
70 | |
---|
71 | variant gcc45 description conflicts gcc43 gcc44 gcc46 gcc47 gcc48 gcc49 description {build using macports-gcc-4.5} { |
---|
72 | python.add_archflags no |
---|
73 | configure.compiler macports-gcc-4.5 |
---|
74 | } |
---|
75 | |
---|
76 | variant gcc46 description conflicts gcc43 gcc44 gcc45 gcc47 gcc48 gcc49 description {build using macports-gcc-4.6} { |
---|
77 | python.add_archflags no |
---|
78 | configure.compiler macports-gcc-4.6 |
---|
79 | } |
---|
80 | |
---|
81 | variant gcc47 description conflicts gcc43 gcc44 gcc45 gcc46 gcc48 gcc49 description {build using macports-gcc-4.7} { |
---|
82 | python.add_archflags no |
---|
83 | configure.compiler macports-gcc-4.7 |
---|
84 | } |
---|
85 | |
---|
86 | variant gcc48 description conflicts gcc43 gcc44 gcc45 gcc46 gcc47 gcc49 description {build using macports-gcc-4.8} { |
---|
87 | python.add_archflags no |
---|
88 | configure.compiler macports-gcc-4.8 |
---|
89 | } |
---|
90 | |
---|
91 | variant gcc49 description conflicts gcc43 gcc44 gcc45 gcc46 gcc47 gcc48 description {build using macports-gcc-4.9} { |
---|
92 | python.add_archflags no |
---|
93 | configure.compiler macports-gcc-4.9 |
---|
94 | } |
---|
95 | |
---|
96 | build {} |
---|
97 | |
---|
98 | pre-destroot { |
---|
99 | destroot.env CC="${configure.cc}" CXX="${configure.cxx}" |
---|
100 | } |
---|
101 | |
---|
102 | post-destroot { |
---|
103 | file copy ${worksrcpath}/setup/pymol_macports ${destroot}${prefix}/bin/pymol |
---|
104 | file attributes ${destroot}${prefix}/bin/pymol -permissions a+x |
---|
105 | foreach d {data modules examples test scripts} { |
---|
106 | copy ${worksrcpath}/${d} ${destroot}${python.pkgd}/pymol |
---|
107 | } |
---|
108 | } |
---|