cspice 64 (new formula)
JPL SPICE Toolkit for C
This commit is contained in:
parent
2f36fc5ab6
commit
1366b734b6
1 changed files with 24 additions and 0 deletions
24
Formula/cspice.rb
Normal file
24
Formula/cspice.rb
Normal 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
|
Loading…
Reference in a new issue