Ticket #46857: Portfile.diff
File Portfile.diff, 3.2 KB (added by howarth.at.macports@…, 10 years ago) |
---|
-
Portfile
old new 1 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 1 32913 2015-02-13 00:51:37Z ryandesign@macports.org $2 # $Id: Portfile 128656 2014-11-25 00:29:06Z ryandesign@macports.org $ 3 3 4 4 PortSystem 1.0 5 5 PortGroup active_variants 1.1 6 6 7 7 name rNMR 8 version 1.1.7 9 revision 1 8 version 1.1.8 10 9 categories science chemistry 11 10 platforms darwin 12 11 maintainers gmail.com:howarth.at.macports … … 30 29 31 30 distname ${name}_${version} 32 31 33 checksums rmd160 daaa56141cb1fdd5febd33601147f6ef401ed837\34 sha256 fb9082bb098af1678c5e9b566e6f3411ee46256d47488f5dd2f1f367b3513c1f32 checksums rmd160 bec756b2f0de3c991af980e2c162534b19f592ee \ 33 sha256 13eeab30d4376b759ec22bd061437aa8acad77e39db15b72d3d870661a108619 35 34 36 35 depends_lib port:R 37 36 38 37 require_active_variants R tcltk 38 require_active_variants tk x11 39 39 40 40 use_configure no 41 41 42 42 build { 43 43 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]" 45 45 } 46 46 47 47 destroot { 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 \ 51 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} 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} 58 57 } 59 58 60 59 livecheck.type regex