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 | PortSystem 1.0 |
---|
3 | name rNMR |
---|
4 | version 1.1.7 |
---|
5 | categories science |
---|
6 | maintainers bromo.med.uc.edu:howarth |
---|
7 | description Open Source Software for NMR Data Analysis |
---|
8 | long_description rNMR is an open source software package for visualizing \ |
---|
9 | and interpreting one and two dimensional NMR data. In contrast to most \ |
---|
10 | existing 2D NMR software, rNMR is specifically designed for high-throughput \ |
---|
11 | assignment and quantification of small molecules. As a result, rNMR supports \ |
---|
12 | extensive batch manipulation of plotting parameters and has numerous tools \ |
---|
13 | for expediting repetitive resonance assignment and quantification tasks. |
---|
14 | homepage http://rnmr.nmrfam.wisc.edu/ |
---|
15 | platforms darwin |
---|
16 | use_parallel_build no |
---|
17 | use_configure no |
---|
18 | depends_lib port:R |
---|
19 | master_sites http://rnmr.nmrfam.wisc.edu/pages/download/files/Binaries/Mac%20and%20Linux/current/ |
---|
20 | distname ${name}_${version} |
---|
21 | checksums rmd160 daaa56141cb1fdd5febd33601147f6ef401ed837 \ |
---|
22 | sha256 fb9082bb098af1678c5e9b566e6f3411ee46256d47488f5dd2f1f367b3513c1f |
---|
23 | patch { |
---|
24 | } |
---|
25 | build { |
---|
26 | file mkdir ${worksrcpath}/pkg |
---|
27 | system "cd ${worksrcpath}; ${prefix}/bin/R CMD INSTALL -l pkg --byte-compile --build ${prefix}/var/macports/distfiles/${name}/${name}_${version}.tar.gz" |
---|
28 | } |
---|
29 | destroot { |
---|
30 | file mkdir ${destroot}${prefix}/lib/R/library |
---|
31 | system "tar -C ${destroot}${prefix}/lib/R/library -zxf ${worksrcpath}/${name}_${version}.tgz" |
---|
32 | file mkdir ${destroot}${prefix}/lib/R/library/${name}/macosx |
---|
33 | foreach f {loadrNMR.R rNMR.gif xdg-open} { |
---|
34 | copy ${destroot}${prefix}/lib/R/library/${name}/linux/${f} \ |
---|
35 | ${destroot}${prefix}/lib/R/library/${name}/macosx/${f} |
---|
36 | } |
---|
37 | reinplace "s|~/rNMR/linux/|./|g" ${destroot}${prefix}/lib/R/library/${name}/macosx/loadrNMR.R |
---|
38 | xinstall -m 755 ${filespath}/${name}.sh ${destroot}${prefix}/lib/R/library/${name}/macosx |
---|
39 | reinplace "s|MP_PREFIX|${prefix}|g" ${destroot}${prefix}/lib/R/library/${name}/macosx/rNMR.sh |
---|
40 | ln -s ${prefix}/lib/R/library/${name}/macosx/${name}.sh ${destroot}${prefix}/bin/${name} |
---|
41 | } |
---|