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"
|
2015-10-17 08:29:27 +00:00
|
|
|
homepage "https://naif.jpl.nasa.gov/naif/index.html"
|
|
|
|
url "https://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
|
2015-10-12 14:02:15 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
revision 1
|
|
|
|
sha256 "d2370941fdaf3fee3ba6c18d8d44d5eb3e3fd7e2425e0c27e98c93085d410948" => :el_capitan
|
|
|
|
sha256 "dfe2f5aa94948cb07125027c5a45938abc74dd9505a198176b2c6b2817988baa" => :yosemite
|
|
|
|
sha256 "9f458788f92e48ab7a22a55b9b8bf94ac180f8f59ce7fc5910f049c734a845b5" => :mavericks
|
2014-03-26 19:45:07 +00:00
|
|
|
end
|
|
|
|
|
2015-10-12 13:42:51 +00:00
|
|
|
conflicts_with "openhmd", :because => "both install `simple` binaries"
|
|
|
|
conflicts_with "libftdi0", :because => "both install `simple` binaries"
|
|
|
|
|
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
|