Ticket #46786: Portfile.diff

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

Portfile diff to install rNMR into ${prefix}/Library/Frameworks/R.framework/Resources/library

  • Portfile

    old new  
    55
    66name                rNMR
    77version             1.1.7
     8revision            1
    89categories          science chemistry
    910platforms           darwin
    1011maintainers         gmail.com:howarth.at.macports
     
    4142}
    4243
    4344destroot {
    44     xinstall -d ${destroot}${prefix}/lib/R/library/${name}/macosx/
    45     system "tar -C ${destroot}${prefix}/lib/R/library -zxf ${worksrcpath}/${distname}.tgz"
    46     xinstall -W ${destroot}${prefix}/lib/R/library/${name}/linux \
     45    xinstall -d ${destroot}${prefix}/Library/Frameworks/R.framework/Resources/library/${name}/macosx/
     46    system "tar -C ${destroot}${prefix}/Library/Frameworks/R.framework/Resources/library -zxf ${worksrcpath}/${distname}.tgz"
     47    xinstall -W ${destroot}${prefix}/Library/Frameworks/R.framework/Resources/library/${name}/linux \
    4748        loadrNMR.R rNMR.gif xdg-open \
    48         ${destroot}${prefix}/lib/R/library/${name}/macosx/
    49     reinplace "s|~/rNMR/linux/|./|g" ${destroot}${prefix}/lib/R/library/${name}/macosx/loadrNMR.R
    50     xinstall -m 755 ${filespath}/${name}.sh ${destroot}${prefix}/lib/R/library/${name}/macosx
    51     reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${prefix}/lib/R/library/${name}/macosx/rNMR.sh
    52     ln -s ${prefix}/lib/R/library/${name}/macosx/${name}.sh ${destroot}${prefix}/bin/${name}
     49        ${destroot}${prefix}/Library/Frameworks/R.framework/Resources/library/${name}/macosx/
     50    reinplace "s|~/rNMR/linux/|./|g" ${destroot}${prefix}/Library/Frameworks/R.framework/Resources/library/${name}/macosx/loadrNMR.R
     51    xinstall -m 755 ${filespath}/${name}.sh ${destroot}${prefix}/Library/Frameworks/R.framework/Resources/library/${name}/macosx
     52    reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${prefix}/Library/Frameworks/R.framework/Resources/library/${name}/macosx/rNMR.sh
     53    ln -s ${prefix}/Library/Frameworks/R.framework/Resources/library/${name}/macosx/${name}.sh ${destroot}${prefix}/bin/${name}
    5354}
    5455
    5556livecheck.type      regex