blob: 55a8d1ef015063ad56262d85020f9ad4c938d780 (
plain)
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
|
require "formula"
class Cspice < Formula
homepage "http://naif.jpl.nasa.gov/naif/index.html"
url "http://naif.jpl.nasa.gov/pub/naif/toolkit/C/MacIntel_OSX_AppleC_64bit/packages/cspice.tar.Z"
sha1 "e5546a72a2d0c7e337850a10d208014efb57d78d"
version "64"
bottle do
cellar :any
sha1 "be5a92d5a4a1e6f19ba6b03a4fe8bca227a64d9d" => :mavericks
sha1 "d2b58e8648bcd288a50bf852448a8c0a27c717b3" => :mountain_lion
sha1 "1a41bc5c47948c6b7e9288bb2c365573461df460" => :lion
end
def install
rm_f Dir["lib/*"]
rm_f Dir["exe/*"]
system "csh", "makeall.csh"
mv "exe", "bin"
(share/"cspice").install "doc", "data"
prefix.install "bin", "include", "lib"
lib.install_symlink "cspice.a" => "libcspice.a"
lib.install_symlink "csupport.a" => "libcsupport.a"
end
test do
system "#{bin}/tobin", "#{prefix}/data/cook_01.tsp", "DELME"
end
end
|