source: trunk/dports/science/sparky/Portfile

Last change on this file was 128656, checked in by ryandesign@…, 3 years ago

update Jack Howarth's email address (#45721)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
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: Portfile 128656 2014-11-25 00:29:06Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                sparky
7version             3.115
8revision            2
9categories          science chemistry
10maintainers         gmail.com:howarth.at.macports
11description         NMR Assignment and Integration Software
12long_description    Sparky is a graphical NMR assignment and integration \
13                    program for proteins, nucleic acids, and other polymers.
14
15platforms           darwin
16
17homepage            http://www.cgl.ucsf.edu/home/sparky/
18
19master_sites        http://www.cgl.ucsf.edu/home/sparky/distrib-${version}/
20distname            ${name}-source-${version}
21checksums           md5 cbc10f03e823b38969822353687b8aa0 \
22                    sha1 57eb3d6b9b4f406095f6b601c47339f06c73e1e0 \
23                    rmd160 59ba7c64c98f86506ae1417e9272ef3d79c8605e
24worksrcdir          sparky
25
26depends_lib         port:python27 port:tcl port:tk
27
28patchfiles          sparky-build.diff
29use_configure       no
30
31build.env-append    CC=${configure.cc} CXX=${configure.cxx}
32
33post-patch {
34    reinplace  "s|@BUILDDIR@|${worksrcpath}|g" ${worksrcpath}/Makefile \
35                                               ${worksrcpath}/c++/Makefile
36    reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile \
37                                        ${worksrcpath}/bin/sparky \
38                                        ${worksrcpath}/c++/Makefile \
39                                        ${worksrcpath}/lib/Makefile \
40                                        ${worksrcpath}/manual/Makefile \
41                                        ${worksrcpath}/python/Makefile
42    reinplace  "s|@DESTDIR@|${destroot}|g" ${worksrcpath}/Makefile \
43                                           ${worksrcpath}/bin/sparky \
44                                           ${worksrcpath}/c++/Makefile \
45                                           ${worksrcpath}/lib/Makefile \
46                                           ${worksrcpath}/manual/Makefile \
47                                           ${worksrcpath}/python/Makefile
48    system "cd ${worksrcpath}; perl -ni -e 'print unless /LIBRARY_PATH/' bin/sparky"
49}
50
51post-destroot {
52    foreach f {sparky sparky-no-python bruk2ucsf matrix2ucsf peaks2ucsf pipe2ucsf ucsfdata vnmr2ucsf} {
53        ln -s ${prefix}/lib/${name}/bin/${f} ${destroot}${prefix}/bin/${f}
54    }
55}
Note: See TracBrowser for help on using the repository browser.