source: trunk/dports/science/rNMR/Portfile

Last change on this file was 132913, checked in by ryandesign@…, 2 years ago

rNMR: use active_variants portgroup to inform user to use R's +tcltk variant (#46841)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 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 132913 2015-02-13 00:51:37Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           active_variants 1.1
6
7name                rNMR
8version             1.1.7
9revision            1
10categories          science chemistry
11platforms           darwin
12maintainers         gmail.com:howarth.at.macports
13supported_archs     noarch
14license             GPL-3
15
16description         Open Source Software for NMR Data Analysis
17
18long_description    rNMR is an open source software package for visualizing \
19                    and interpreting one and two dimensional NMR data. In \
20                    contrast to most existing 2D NMR software, rNMR is \
21                    specifically designed for high-throughput assignment and \
22                    quantification of small molecules. As a result, rNMR \
23                    supports extensive batch manipulation of plotting \
24                    parameters and has numerous tools for expediting \
25                    repetitive resonance assignment and quantification tasks.
26
27homepage            http://rnmr.nmrfam.wisc.edu/
28master_sites        ${homepage}pages/download/files/Binaries/Mac%20and%20Linux/current/ \
29                    ${homepage}pages/download/files/Binaries/Mac%20and%20Linux/${version}/
30
31distname            ${name}_${version}
32
33checksums           rmd160  daaa56141cb1fdd5febd33601147f6ef401ed837 \
34                    sha256  fb9082bb098af1678c5e9b566e6f3411ee46256d47488f5dd2f1f367b3513c1f
35
36depends_lib         port:R
37
38require_active_variants R tcltk
39
40use_configure       no
41
42build {
43    file mkdir ${worksrcpath}/pkg
44    system -W ${worksrcpath} "${prefix}/bin/R CMD INSTALL -l pkg --byte-compile --build ${distpath}/[lindex ${distfiles} 0]"
45}
46
47destroot {
48    xinstall -d ${destroot}${frameworks_dir}/R.framework/Resources/library/${name}/macosx/
49    system "tar -C ${destroot}${frameworks_dir}/R.framework/Resources/library -zxf ${worksrcpath}/${distname}.tgz"
50    xinstall -W ${destroot}${frameworks_dir}/R.framework/Resources/library/${name}/linux \
51        loadrNMR.R rNMR.gif xdg-open \
52        ${destroot}${frameworks_dir}/R.framework/Resources/library/${name}/macosx/
53    reinplace "s|~/rNMR/linux/|./|g" ${destroot}${frameworks_dir}/R.framework/Resources/library/${name}/macosx/loadrNMR.R
54    xinstall -m 755 ${filespath}/${name}.sh ${destroot}${frameworks_dir}/R.framework/Resources/library/${name}/macosx
55    reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${frameworks_dir}/R.framework/Resources/library/${name}/macosx/rNMR.sh
56    reinplace "s|@FRAMEWORKS_DIR@|${frameworks_dir}|g" ${destroot}${frameworks_dir}/R.framework/Resources/library/${name}/macosx/rNMR.sh
57    ln -s ${frameworks_dir}/R.framework/Resources/library/${name}/macosx/${name}.sh ${destroot}${prefix}/bin/${name}
58}
59
60livecheck.type      regex
61livecheck.url       [lindex ${master_sites} 0]
62livecheck.regex     ${name}_(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.