cspice 64 (new formula)

JPL SPICE Toolkit for C
This commit is contained in:
blogabe 2014-03-17 13:40:18 -07:00 committed by Mike McQuaid
parent 2f36fc5ab6
commit 1366b734b6

24
Formula/cspice.rb Normal file
View file

@ -0,0 +1,24 @@
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"
sha1 "e5546a72a2d0c7e337850a10d208014efb57d78d"
version "64"
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
system "#{bin}/tobin", "#{prefix}/data/cook_01.tsp", "DELME"
end
end