2014-03-17 20:40:18 +00:00
|
|
|
class Cspice < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Observation geometry system for robotic space science missions"
|
2014-03-17 20:40:18 +00:00
|
|
|
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"
|
2015-03-12 15:07:33 +00:00
|
|
|
sha256 "c009981340de17fb1d9b55e1746f32336e1a7a3ae0b4b8d68f899ecb6e96dd5d"
|
2014-07-28 21:49:48 +00:00
|
|
|
version "65"
|
2014-03-17 20:40:18 +00:00
|
|
|
|
2014-03-26 19:45:07 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-07-29 00:13:19 +00:00
|
|
|
sha1 "095c1b894921f82dcfe230dc5519fa5b0d69e586" => :mavericks
|
|
|
|
sha1 "24d4dbac215fa337c642f1b5f962c83fb73ad774" => :mountain_lion
|
|
|
|
sha1 "c9c33e2601e87f6608c4b58ba51b549b6e04a0c9" => :lion
|
2014-03-26 19:45:07 +00:00
|
|
|
end
|
|
|
|
|
2014-03-17 20:40:18 +00:00
|
|
|
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
|
2014-07-28 21:49:48 +00:00
|
|
|
system "#{bin}/tobin", "#{share}/cspice/data/cook_01.tsp", "DELME"
|
2014-03-17 20:40:18 +00:00
|
|
|
end
|
|
|
|
end
|