Skip to content

Commit

Permalink
wcstools 3.9.7 (new formula)
Browse files Browse the repository at this point in the history
Co-authored-by: Nanda H Krishna <[email protected]>
  • Loading branch information
cxwx and nandahkrishna committed Dec 26, 2024
1 parent a7dba5f commit a6bbcc1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Formula/w/wcstools.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
class Wcstools < Formula
desc "Tools for using World Coordinate Systems (WCS) in astronomical images"
homepage "http://tdc-www.harvard.edu/wcstools/"
url "http://tdc-www.harvard.edu/software/wcstools/wcstools-3.9.7.tar.gz"
sha256 "525f6970eb818f822db75c1526b3122b1af078affa572dce303de37df5c7b088"
license "GPL-2.0-or-later"

def install
system "make", "all"
rm_r(Dir.glob("bin/*.dSYM")) if OS.mac?

prefix.install "bin"
bin.install "wcstools"
include.install Dir["libwcs/*.h"]
man1.install Dir["man/man1/*.1"]
end

test do
assert_match "IMHEAD", shell_output("#{bin}/imhead 2>&1", 1)
end
end

0 comments on commit a6bbcc1

Please sign in to comment.