Ticket #42541: patch.ncarg-download.diff

File patch.ncarg-download.diff, 2.0 KB (added by petrrr, 10 years ago)

patch to switch to automatic download

  • Portfile

     
    1313version                     6.2.1
    1414revision                    3
    1515categories                  science
     16platforms                   darwin
    1617maintainers                 takeshi openmaintainers
    1718license                     {UCAR-Unidata public-domain BSD LGPL-3 GPL-3}
     19
    1820description                 language for scientific data processing and visualization
    1921long_description \
    2022    The NCAR Command Language (NCL), a product of           \
     
    2426    is a free interpreted language designed specifically    \
    2527    for scientific data processing and visualization.
    2628
    27 homepage                    http://www.ncl.ucar.edu/
    28 platforms                   darwin
    29 master_sites                http://www.earthsystemgrid.org/:ncl \
    30                             http://www.ncl.ucar.edu/Download/files/:g2clib
     29homepage            http://www.ncl.ucar.edu/
    3130
    32 distname                    ncl_${name}-${version}
     31distname            ncl_${name}-${version}
     32master_sites        http://www.ncl.ucar.edu/Download/files/:g2clib \
     33                    "https://www.earthsystemgrid.org/download/fileDownload.htm?logicalFileId=5995adf7-351e-11e4-a4b4-00c0f03d5b7c&dummy=:ncl"
     34
    3335set ncl_src             ${distname}${extract.suffix}
     36
    3437set g2clib_version      1.5.0
    3538set g2clib_src          g2clib-${g2clib_version}-patch${extract.suffix}
    3639set g2clib_worksrcdir   g2clib-${g2clib_version}-patch
     40
    3741distfiles           ${ncl_src}:ncl \
    3842                    ${g2clib_src}:g2clib
    3943
     
    6872    default_variants +${v}
    6973}
    7074
    71 pre-fetch {
    72     if {![file exists ${distpath}/${distname}${extract.suffix}]} {
    73         xinstall -d ${distpath}
    74         ui_error "Download ${distname}${extract.suffix} manually and place it in ${distpath}.\n \
    75             See instructions on ${homepage}/Download/index.shtml"
    76     }
    77 }
    78 
    7975set usedap y
    8076
    8177if {$build_arch eq "x86_64"} {