Ticket #21376: Portfile

File Portfile, 2.1 KB (added by howarth@…, 15 years ago)

Change depends_run to port:xdpyinfo

Line 
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$
3PortSystem          1.0
4name                pymol
5version             1.2r2
6revision            0
7categories          science
8maintainers         howarth@bromo.med.uc.edu
9description         Molecular graphics system
10long_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
14platforms           darwin
15
16homepage            http://www.pymol.org/
17
18master_sites        sourceforge
19fetch.type          svn
20svn.url             https://pymol.svn.sourceforge.net/svnroot/pymol/trunk/pymol
21svn.revision        3866
22worksrcdir          pymol
23
24depends_lib         port:glut port:freetype port:libpng port:python26 port:py26-pmw port:py26-numeric
25depends_run         port:xdpyinfo
26
27patchfiles          pymol-build.patch
28use_configure       no
29
30post-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
39build {
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
45destroot {
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}