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$ |
---|
3 | PortSystem 1.0 |
---|
4 | name pymol |
---|
5 | version 1.2r2 |
---|
6 | revision 0 |
---|
7 | categories science |
---|
8 | maintainers howarth@bromo.med.uc.edu |
---|
9 | description Molecular graphics system |
---|
10 | long_description PyMOL is a molecular graphics system with an embedded Python interpreter \ |
---|
11 | designed for real-time visualization and rapid generation of high-quality \ |
---|
12 | molecular graphics images and animations. |
---|
13 | |
---|
14 | platforms darwin |
---|
15 | |
---|
16 | homepage http://www.pymol.org/ |
---|
17 | |
---|
18 | master_sites sourceforge |
---|
19 | fetch.type svn |
---|
20 | svn.url https://pymol.svn.sourceforge.net/svnroot/pymol/trunk/pymol |
---|
21 | svn.revision 3866 |
---|
22 | worksrcdir pymol |
---|
23 | |
---|
24 | depends_lib port:glut port:freetype port:libpng port:python26 port:py26-pmw port:py26-numeric |
---|
25 | depends_run port:xorg-apps |
---|
26 | |
---|
27 | patchfiles pymol-build.patch |
---|
28 | use_configure no |
---|
29 | |
---|
30 | post-patch { |
---|
31 | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/contrib/modules/Makefile.pre.in.src |
---|
32 | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/setup/Rules.osx-fink |
---|
33 | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/setup/pymol.com.osx-fink |
---|
34 | reinplace "s|-Wno-long-double||g" ${worksrcpath}/setup/Rules.osx-fink |
---|
35 | reinplace "s|/usr/X11R6|${prefix}|g" ${worksrcpath}/setup/Rules.osx-fink |
---|
36 | reinplace "s|/usr/X11R6|${prefix}|g" ${worksrcpath}/modules/pymol/__init__.py |
---|
37 | } |
---|
38 | |
---|
39 | build { |
---|
40 | system "find ${worksrcpath} -name .svn -print0 | xargs -0 rm -rf" |
---|
41 | system "cd ${worksrcpath}/setup; cp Rules.osx-fink ../Rules.delsci" |
---|
42 | system "cd ${worksrcpath}; make -f Makefile.delsci" |
---|
43 | } |
---|
44 | |
---|
45 | destroot { |
---|
46 | file mkdir ${destroot}${prefix}/lib/pymol/bin |
---|
47 | copy ${worksrcpath}/setup/pymol.com.osx-fink ${destroot}${prefix}/lib/pymol/bin/pymol |
---|
48 | system "cd ${worksrcpath}; cp -r data modules examples test scripts ${destroot}${prefix}/lib/pymol" |
---|
49 | file mkdir ${destroot}${prefix}/bin |
---|
50 | ln -s ${prefix}/lib/pymol/bin/pymol ${destroot}${prefix}/bin |
---|
51 | } |
---|