forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgalfit.rb
35 lines (29 loc) · 1.03 KB
/
galfit.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
class Galfit < Formula
homepage "https://users.obs.carnegiescience.edu/peng/work/galfit/galfit.html"
version "3.0.5"
depends_on :macos => :leopard
if MacOS.version == :mavericks
url "https://users.obs.carnegiescience.edu/peng/work/galfit/galfit3-mavericks.tar.gz"
sha256 "8829cafd3c0d34a6697c389fcf50f5eff267dc81c450f1e60865d456bff93f7f"
else
url "https://users.obs.carnegiescience.edu/peng/work/galfit/galfit3-leopard+.tar.gz"
sha256 "97dae1d6500d42fa9cb27faca15286350b69e703eaecfdb6bf89c33f85a03d5d"
end
resource "example" do
url "https://users.obs.carnegiescience.edu/peng/work/galfit/galfit-ex.tar.gz"
sha256 "3761cf4247b076a4aa2842c4c8d1f4d99871ec4ef31f39145c28102aaadc0d9a"
end
def install
bin.install "galfit"
pkgshare.install resource("example")
end
def caveats; <<-EOS.undent
The documentation and examples are installed to
#{HOMEBREW_PREFIX}/share/galfit
EOS
end
test do
cp Dir[share/"galfit/EXAMPLE/*"], testpath
system "galfit", "galfit.feedme"
end
end