# -*- 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 # $Id$ PortSystem 1.0 name sparky version 3.115 categories science maintainers bromo.med.uc.edu:howarth description NMR Assignment and Integration Software long_description Sparky is a graphical NMR assignment and integration program for proteins, \ nucleic acids, and other polymers. platforms darwin homepage http://www.cgl.ucsf.edu/home/sparky/ master_sites http://www.cgl.ucsf.edu/home/sparky/distrib-${version}/ distfiles sparky-source-${version}.tar.gz checksums md5 cbc10f03e823b38969822353687b8aa0 \ sha1 57eb3d6b9b4f406095f6b601c47339f06c73e1e0 \ rmd160 59ba7c64c98f86506ae1417e9272ef3d79c8605e worksrcdir sparky depends_lib port:python26 port:tcl port:tk patchfiles sparky-build.diff use_configure no post-patch { reinplace "s|@BUILDDIR@|${worksrcpath}|g" ${worksrcpath}/Makefile reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile reinplace "s|@DESTDIR@|${destroot}|g" ${worksrcpath}/Makefile reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/bin/sparky reinplace "s|@DESTDIR@|${destroot}|g" ${worksrcpath}/bin/sparky reinplace "s|@BUILDDIR@|${worksrcpath}|g" ${worksrcpath}/c++/Makefile reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/c++/Makefile reinplace "s|@DESTDIR@|${destroot}|g" ${worksrcpath}/c++/Makefile reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/lib/Makefile reinplace "s|@DESTDIR@|${destroot}|g" ${worksrcpath}/lib/Makefile reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/manual/Makefile reinplace "s|@DESTDIR@|${destroot}|g" ${worksrcpath}/manual/Makefile reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/python/Makefile reinplace "s|@DESTDIR@|${destroot}|g" ${worksrcpath}/python/Makefile system "cd ${worksrcpath}; perl -ni -e 'print unless /LIBRARY_PATH/' bin/sparky" } destroot { file mkdir ${destroot}${prefix}/lib/${name} system "cd ${worksrcpath}; make install" ln -s ${prefix}/lib/${name}/bin/sparky ${destroot}${prefix}/bin/sparky ln -s ${prefix}/lib/${name}/bin/sparky-no-python ${destroot}${prefix}/bin/sparky-no-python ln -s ${prefix}/lib/${name}/bin/bruk2ucsf ${destroot}${prefix}/bin/bruk2ucsf ln -s ${prefix}/lib/${name}/bin/matrix2ucsf ${destroot}${prefix}/bin/matrix2ucsf ln -s ${prefix}/lib/${name}/bin/peaks2ucsf ${destroot}${prefix}/bin/peaks2ucsf ln -s ${prefix}/lib/${name}/bin/pipe2ucsf ${destroot}${prefix}/bin/pipe2ucsf ln -s ${prefix}/lib/${name}/bin/ucsfdata ${destroot}${prefix}/bin/ucsfdata ln -s ${prefix}/lib/${name}/bin/vnmr2ucsf ${destroot}${prefix}/bin/vnmr2ucsf }