Ticket #38687: ncarg.diff

File ncarg.diff, 2.0 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)

proposed patch

  • Portfile

     
    2525                            http://www.ncl.ucar.edu/Download/files/:g2clib
    2626
    2727distname                    ncl_${name}-${version}
    28 worksrcdir                  ncl_${name}-${version}
    2928set ncl_src             ${distname}${extract.suffix}
    3029set g2clib_version      1.2.3
    3130set g2clib_src          g2clib-${g2clib_version}-patch${extract.suffix}
     
    3231set g2clib_worksrcdir   g2clib-${g2clib_version}-patch
    3332distfiles           ${ncl_src}:ncl \
    3433                    ${g2clib_src}:g2clib
    35 checksums           ncl_ncarg-6.1.0.tar.gz \
    36                     g2clib-1.2.3-patch.tar.gz \
    3734
    3835checksums   ${ncl_src} \
    3936                    md5     a13d4a97d1d580a24fe144d127e4ce31 \
     
    154151}
    155152
    156153pre-configure {
    157     system "cd ${workpath}/${g2clib_worksrcdir}; make all"
     154    system -W ${workpath}/${g2clib_worksrcdir} "make all"
    158155    file copy ${workpath}/${g2clib_worksrcdir}/libgrib2c.a ${worksrcpath}
    159     system "cd ${worksrcpath}/config; \
    160         CC=${configure.cc} \
     156    system -W ${worksrcpath}/config \
     157        "CC=${configure.cc} \
    161158        CFLAGS=${configure.cflags} \
    162159        make -f Makefile.ini; \
    163160        ./ymake -config `pwd`"
     
    166163    }
    167164}
    168165configure {
    169     system "cd ${worksrcpath}; ./Configure -v << EOF
     166    system -W ${worksrcpath} "./Configure -v << EOF
    170167
    171168
    172169y
     
    195192post-configure {
    196193#    reinplace "s| -lsz||g" ${worksrcpath}/makefile
    197194#    reinplace "s| -lsz||g" ${worksrcpath}/config/Site.local
    198     system "cd ${worksrcpath}; make Info"
     195    system -W ${worksrcpath} "make Info"
    199196    system "cat ${worksrcpath}/config/Site.local"
    200197}
    201198
     
    216213# Check if ncl is built here.
    217214post-build {
    218215    if {![file exists ${worksrcpath}/ni/src/ncl/ncl]} {
    219         ui_error "ncl did not built"
     216        return -code error "ncl did not get built"
    220217    }
    221218}
    222219