homebrew-cask/Casks/ncar-ncl.rb

44 lines
1.5 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'ncar-ncl' do
version '6.4.0'
if MacOS.version == :el_capitan
sha256 '2e1a2957dacd14835716f0f7309117a35e1f6255fa8569d0dc3038c42df9cbfd'
url 'https://www.earthsystemgrid.org/download/fileDownload.html?logicalFileId=1139ad88-fa02-11e6-a976-00c0f03d5b7c'
2015-12-20 09:18:09 +08:00
else
sha256 '3db9396a6b33eff1a5d31b8e4d41eeac17f459a2740b614131fbbe943bc76a3c'
url 'https://www.earthsystemgrid.org/download/fileDownload.html?logicalFileId=0a459666-fa02-11e6-a976-00c0f03d5b7c'
2015-06-03 22:40:51 +08:00
end
appcast 'https://www.ncl.ucar.edu/current_release.shtml',
2017-05-14 21:11:44 +08:00
checkpoint: '634aeb20f5c52736d0d800cf2a77abaa6c16685550a46e817590ef3dbd482d6b'
2015-06-03 22:40:51 +08:00
name 'NCAR Command Language'
name 'ncl'
2015-06-29 14:32:18 +08:00
homepage 'https://www.ncl.ucar.edu/'
2015-06-03 22:40:51 +08:00
depends_on cask: 'xquartz'
depends_on formula: 'gcc'
depends_on macos: '>= :el_capitan'
artifact 'include', target: '/usr/local/ncl-6.3.0/include'
artifact 'bin', target: '/usr/local/ncl-6.3.0/bin'
artifact 'lib', target: '/usr/local/ncl-6.3.0/lib'
2015-06-03 22:40:51 +08:00
caveats <<-EOS.undent
2015-06-03 22:40:51 +08:00
To use ncar-ncl, you must add the $NCARG_ROOT/bin directory
to your PATH environment variable.
For bash shell, add these lines to ~/.bash_profile:
export NCARG_ROOT=/usr/local/ncl-6.4.0
2015-06-03 22:40:51 +08:00
export PATH=$NCARG_ROOT/bin:"$PATH"
You may also need to modify your DYLD_FALLBACK_LIBRARY_PATH
environment variable:
export DYLD_FALLBACK_LIBRARY_PATH=$(dirname $(gfortran --print-file-name libgfortran.3.dylib)):$DYLD_FALLBACK_LIBRARY_PATH
For other information, please see:
2015-06-29 14:32:18 +08:00
https://www.ncl.ucar.edu/Download/macosx.shtml
EOS
2015-06-03 22:40:51 +08:00
end