homebrew-core/Formula/cspice.rb

32 lines
923 B
Ruby
Raw Normal View History

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"
sha256 "c009981340de17fb1d9b55e1746f32336e1a7a3ae0b4b8d68f899ecb6e96dd5d"
2014-07-28 21:49:48 +00:00
version "65"
bottle do
cellar :any
sha1 "095c1b894921f82dcfe230dc5519fa5b0d69e586" => :mavericks
sha1 "24d4dbac215fa337c642f1b5f962c83fb73ad774" => :mountain_lion
sha1 "c9c33e2601e87f6608c4b58ba51b549b6e04a0c9" => :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
2014-07-28 21:49:48 +00:00
system "#{bin}/tobin", "#{share}/cspice/data/cook_01.tsp", "DELME"
end
end