Ticket #34049: Portfile

File Portfile, 2.2 KB (added by howarth@…, 13 years ago)

Portfile for rNMR 1.1.7

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