aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblogabe2014-03-17 13:40:18 -0700
committerMike McQuaid2014-03-31 10:51:34 -0500
commit54a25c0d4ad0c8e159d084ec9f9251445fb6c717 (patch)
tree45657846e0424d6fec58775f91b4dba7b74c3d17
parent19f59cfd8843ca2ae39e6adc7688c6d0c0c940c5 (diff)
downloadhomebrew-54a25c0d4ad0c8e159d084ec9f9251445fb6c717.tar.bz2
cspice 64 (new formula)
JPL SPICE Toolkit for C
-rw-r--r--Library/Formula/cspice.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/cspice.rb b/Library/Formula/cspice.rb
new file mode 100644
index 000000000..f8122671b
--- /dev/null
+++ b/Library/Formula/cspice.rb
@@ -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