forked from editeodoro/Bbarolo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bbarolo.rb
44 lines (37 loc) · 1.14 KB
/
bbarolo.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
class Bbarolo < Formula
desc "3D fitting tool to derive the kinematics of galaxies"
homepage "https://editeodoro.github.io/Bbarolo/"
# Default is v1.6 stable
stable do
url "https://github.com/editeodoro/Bbarolo/archive/1.6.tar.gz"
sha256 "f9ad7d7a32b9141e76d21867ebe17fde777e40a998e08290785d8a284bc3973d"
end
# To install instead latest non-stable version, use --devel option
head do
url "https://github.com/editeodoro/Bbarolo/archive/master.tar.gz"
#sha256 "fb91ff62a33dbda6fb2c9da04e0746017d4e905e981929b8ca7d1336fff0810a"
version "1.6dev"
end
# Dependencies
depends_on "cfitsio"
depends_on "fftw"
depends_on "wcslib"
depends_on "gnuplot" => :optional
def install
# BBarolo requires a c++11 compiler
ENV.cxx11
# Configure script arguments
args = %W[
--prefix=#{prefix}
--with-cfitsio=#{Formula["cfitsio"].opt_prefix}
--with-fftw3=#{Formula["fftw"].opt_prefix}
--with-wcslib=#{Formula["wcslib"].opt_prefix}
]
system "./configure", *args
system "make"
system "make", "install"
end
test do
assert_match "This is BBarolo", `#{bin}/BBarolo -v`
end
end