Ticket #46857: Portfile.diff

File Portfile.diff, 3.2 KB (added by howarth.at.macports@…, 10 years ago)

Portfile diff to update to rNMR 1.1.8

  • Portfile

    old new  
    11# -*- 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 $
     2# $Id: Portfile 128656 2014-11-25 00:29:06Z ryandesign@macports.org $
    33
    44PortSystem          1.0
    55PortGroup           active_variants 1.1
    66
    77name                rNMR
    8 version             1.1.7
    9 revision            1
     8version             1.1.8
    109categories          science chemistry
    1110platforms           darwin
    1211maintainers         gmail.com:howarth.at.macports
     
    3029
    3130distname            ${name}_${version}
    3231
    33 checksums           rmd160  daaa56141cb1fdd5febd33601147f6ef401ed837 \
    34                     sha256  fb9082bb098af1678c5e9b566e6f3411ee46256d47488f5dd2f1f367b3513c1f
     32checksums           rmd160  bec756b2f0de3c991af980e2c162534b19f592ee \
     33                    sha256  13eeab30d4376b759ec22bd061437aa8acad77e39db15b72d3d870661a108619
    3534
    3635depends_lib         port:R
    3736
    3837require_active_variants R tcltk
     38require_active_variants tk x11
    3939
    4040use_configure       no
    4141
    4242build {
    4343    file mkdir ${worksrcpath}/pkg
    44     system -W ${worksrcpath} "${prefix}/bin/R CMD INSTALL -l pkg --byte-compile --build ${distpath}/[lindex ${distfiles} 0]"
     44    system -W ${worksrcpath} "`which xvfb-run` ${prefix}/bin/R CMD INSTALL -l pkg --byte-compile --build ${distpath}/[lindex ${distfiles} 0]"
    4545}
    4646
    4747destroot {
    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 \
     48    xinstall -d ${destroot}${prefix}/lib/R/library/${name}/macosx/
     49    system "tar -C ${destroot}${prefix}/lib/R/library -zxf ${worksrcpath}/${distname}.tgz"
     50    xinstall -W ${destroot}${prefix}/lib/R/library/${name}/linux \
    5151        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}
     52        ${destroot}${prefix}/lib/R/library/${name}/macosx/
     53    reinplace "s|~/rNMR/linux/|./|g" ${destroot}${prefix}/lib/R/library/${name}/macosx/loadrNMR.R
     54    xinstall -m 755 ${filespath}/${name}.sh ${destroot}${prefix}/lib/R/library/${name}/macosx
     55    reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${prefix}/lib/R/library/${name}/macosx/rNMR.sh
     56    ln -s ${prefix}/lib/R/library/${name}/macosx/${name}.sh ${destroot}${prefix}/bin/${name}
    5857}
    5958
    6059livecheck.type      regex