homebrew-core/Formula/cspice.rb

38 lines
1.4 KiB
Ruby
Raw Normal View History

class Cspice < Formula
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"
sha256 "c009981340de17fb1d9b55e1746f32336e1a7a3ae0b4b8d68f899ecb6e96dd5d"
bottle do
2015-10-12 14:02:15 +00:00
cellar :any_skip_relocation
2016-09-28 22:32:49 +00:00
rebuild 3
sha256 "c450800dfa0e61ec4a1d8ed5aa2f7bd2c2f5541272fd145af1673e7235b49c75" => :sierra
2015-10-24 18:35:21 +00:00
sha256 "daa552c39c338739c8c435d1b7c5c77975172905ff91b5893667da6ad60f7a7e" => :el_capitan
sha256 "fda8c9832e01c3b51bf68981434501632083a0a88909f62b4248f63f248a5971" => :yosemite
sha256 "61e4b947ed7223919ae92ddfcaf1f64267ab8d27467bcfb4de51cbdd10edbaa1" => :mavericks
end
conflicts_with "openhmd", :because => "both install `simple` binaries"
conflicts_with "libftdi0", :because => "both install `simple` binaries"
conflicts_with "enscript", :because => "both install `states` binaries"
conflicts_with "fondu", :because => "both install `tobin` binaries"
2015-10-12 13:42:51 +00:00
def install
rm_f Dir["lib/*"]
rm_f Dir["exe/*"]
system "csh", "makeall.csh"
mv "exe", "bin"
pkgshare.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", "#{pkgshare}/data/cook_01.tsp", "DELME"
end
end