Ticket #21436: Portfile

File Portfile, 2.8 KB (added by howarth@…, 14 years ago)

obscure email address

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                sparky
5version             3.115
6categories          science
7maintainers         bromo.med.uc.edu:howarth
8description         NMR Assignment and Integration Software
9long_description    Sparky is a graphical NMR assignment and integration program for proteins, \
10                    nucleic acids, and other polymers.
11
12platforms           darwin
13
14homepage            http://www.cgl.ucsf.edu/home/sparky/
15
16master_sites        http://www.cgl.ucsf.edu/home/sparky/distrib-${version}/
17distfiles           sparky-source-${version}.tar.gz
18checksums           md5 cbc10f03e823b38969822353687b8aa0 \
19                    sha1 57eb3d6b9b4f406095f6b601c47339f06c73e1e0 \
20                    rmd160 59ba7c64c98f86506ae1417e9272ef3d79c8605e
21worksrcdir          sparky
22
23depends_lib         port:python26 port:tcl port:tk
24
25patchfiles          sparky-build.diff
26use_configure       no
27
28post-patch {
29    reinplace  "s|@BUILDDIR@|${worksrcpath}|g" ${worksrcpath}/Makefile
30    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
31    reinplace  "s|@DESTDIR@|${destroot}|g" ${worksrcpath}/Makefile
32    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/bin/sparky
33    reinplace  "s|@DESTDIR@|${destroot}|g" ${worksrcpath}/bin/sparky
34    reinplace  "s|@BUILDDIR@|${worksrcpath}|g" ${worksrcpath}/c++/Makefile
35    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/c++/Makefile
36    reinplace  "s|@DESTDIR@|${destroot}|g" ${worksrcpath}/c++/Makefile
37    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/lib/Makefile
38    reinplace  "s|@DESTDIR@|${destroot}|g" ${worksrcpath}/lib/Makefile
39    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/manual/Makefile
40    reinplace  "s|@DESTDIR@|${destroot}|g" ${worksrcpath}/manual/Makefile
41    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/python/Makefile
42    reinplace  "s|@DESTDIR@|${destroot}|g" ${worksrcpath}/python/Makefile
43    system "cd ${worksrcpath}; perl -ni -e 'print unless /LIBRARY_PATH/' bin/sparky"
44}       
45destroot {
46   file mkdir ${destroot}${prefix}/lib/${name}
47   system "cd ${worksrcpath}; make install"
48   ln -s ${prefix}/lib/${name}/bin/sparky ${destroot}${prefix}/bin/sparky
49   ln -s ${prefix}/lib/${name}/bin/sparky-no-python ${destroot}${prefix}/bin/sparky-no-python
50   ln -s ${prefix}/lib/${name}/bin/bruk2ucsf ${destroot}${prefix}/bin/bruk2ucsf
51   ln -s ${prefix}/lib/${name}/bin/matrix2ucsf ${destroot}${prefix}/bin/matrix2ucsf
52   ln -s ${prefix}/lib/${name}/bin/peaks2ucsf ${destroot}${prefix}/bin/peaks2ucsf
53   ln -s ${prefix}/lib/${name}/bin/pipe2ucsf ${destroot}${prefix}/bin/pipe2ucsf
54   ln -s ${prefix}/lib/${name}/bin/ucsfdata ${destroot}${prefix}/bin/ucsfdata
55   ln -s ${prefix}/lib/${name}/bin/vnmr2ucsf ${destroot}${prefix}/bin/vnmr2ucsf
56}