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"
|
2014-07-28 21:49:48 +00:00
|
|
|
version "65"
|
2015-10-16 21:53:34 +00:00
|
|
|
sha256 "c009981340de17fb1d9b55e1746f32336e1a7a3ae0b4b8d68f899ecb6e96dd5d"
|
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
|
2015-10-24 18:35:21 +00:00
|
|
|
revision 3
|
|
|
|
sha256 "daa552c39c338739c8c435d1b7c5c77975172905ff91b5893667da6ad60f7a7e" => :el_capitan
|
|
|
|
sha256 "fda8c9832e01c3b51bf68981434501632083a0a88909f62b4248f63f248a5971" => :yosemite
|
|
|
|
sha256 "61e4b947ed7223919ae92ddfcaf1f64267ab8d27467bcfb4de51cbdd10edbaa1" => :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"
|
2015-10-16 21:53:34 +00:00
|
|
|
conflicts_with "enscript", :because => "both install `states` binaries"
|
2015-10-24 14:28:41 +00:00
|
|
|
conflicts_with "fondu", :because => "both install `tobin` binaries"
|
2015-10-12 13:42:51 +00:00
|
|
|
|
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
|