diff --git a/Formula/w/wcstools.rb b/Formula/w/wcstools.rb new file mode 100644 index 0000000000000..2abf2703489fd --- /dev/null +++ b/Formula/w/wcstools.rb @@ -0,0 +1,17 @@ +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" + + prefix.install "bin" + end + + test do + assert_match "IMHEAD", shell_output("#{bin}/imhead 2>&1", 1) + end +end