diff --git a/Formula/w/wcstools.rb b/Formula/w/wcstools.rb new file mode 100644 index 0000000000000..41b90af83211e --- /dev/null +++ b/Formula/w/wcstools.rb @@ -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