31 lines
1.0 KiB
Ruby
31 lines
1.0 KiB
Ruby
cask 'fenics' do
|
|
version '1.4.0'
|
|
sha256 'b0071fa25759fcef124e418c202cc81d297d12633b24385b70b9408af76c2bb5'
|
|
|
|
url "http://www.fenicsproject.org/pub/software/fenics/fenics-#{version}-osx10.9.dmg"
|
|
name 'FEniCS'
|
|
homepage 'https://fenicsproject.org/'
|
|
|
|
depends_on macos: '>= :mavericks'
|
|
|
|
app 'FEniCS.app'
|
|
|
|
caveats do
|
|
<<-EOS.undent
|
|
FEniCS is designed to work with the OS X system Python (v. 2.7.5 in OS X 10.9).
|
|
|
|
If you are using a standard bash shell and system Python, you can make FEniCS
|
|
available when you start your shell by adding the following to the .profile
|
|
file in your home directory:
|
|
|
|
source #{appdir}/FEniCS.app/Contents/Resources/share/fenics/fenics.conf
|
|
|
|
If you are using an alternate shell (e.g., zsh, csh) or a modified or brewed Python,
|
|
be sure to launch FEniCS using a clean (bash) shell.
|
|
Creating a new shell using the following command works well:
|
|
|
|
/bin/bash --rcfile #{appdir}/FEniCS.app/Contents/Resources/share/fenics/fenics.conf
|
|
EOS
|
|
end
|
|
end
|