-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmoose.rb
More file actions
34 lines (30 loc) · 1022 Bytes
/
moose.rb
File metadata and controls
34 lines (30 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class Moose < Formula
desc "Multiscale Object Oriented Simulation Environment"
homepage "http://moose.ncbs.res.in"
url "https://github.com/BhallaLab/moose-core/archive/v3.1.4.tar.gz"
sha256 "5d8e56e4361723fc30598d87fecfeab67be471abc0bc017a334357fa2160cc1a"
head "https://github.com/BhallaLab/moose-core.git", :branch=>"chamcham"
depends_on "cmake" => :build
depends_on "gsl"
depends_on :python if MacOS.version <= :snow_leopard
depends_on "numpy"
def install
args = std_cmake_args
args << "-DCMAKE_SKIP_RPATH=ON"
args << "-DVERSION_MOOSE=#{version}"
mkdir "_build" do
system "cmake", "..", *args
system "make install"
end
end
def caveats; <<-EOS
Please also install the following using pip
$ pip install matplotlib networkx
Optionally, you can install the folllowing for sbml and NeuroML support.
$ pip install python-libsbml pyNeuroML
EOS
end
test do
system "python", "-c", "import moose; print( moose.__version__) "
end
end