-
Notifications
You must be signed in to change notification settings - Fork 0
/
splash.rb
27 lines (24 loc) · 905 Bytes
/
splash.rb
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
# splash homebrew install script
class Splash < Formula
desc "Smoothed Particle Hydrodynamics visualisation tool"
homepage "http://users.monash.edu.au/~dprice/splash"
url "https://github.com/danieljprice/splash/releases/download/v3.11.0/splash-v3.11.0.tar.gz"
version "3.11.0"
sha256 "4ba481533eda699a7d352ea564380ccfd5ad36c606791d965ff8a6940bc3e1b3"
head "https://github.com/danieljprice/splash.git"
depends_on "cfitsio"
depends_on "gcc"
depends_on "giza"
depends_on "hdf5"
def install
ENV.deparallelize
system "make", "all", "HDF5=yes", "FITS=yes", "SYSTEM=gfortran", "PREFIX=#{prefix}/", \
"GIZA_DIR=#{HOMEBREW_PREFIX}", "CC=#{ENV.cc}", "HDF5ROOT=#{HOMEBREW_PREFIX}", \
"FITS_DIR=#{HOMEBREW_PREFIX}"
mkdir_p bin.to_s # equivalent to mkdir -p #{bin}
system "make", "install", "PREFIX=#{prefix}"
end
test do
system "false"
end
end