From a6bbcc15584ab1bd1a71430baa27495740c52f29 Mon Sep 17 00:00:00 2001 From: chenxu Date: Mon, 23 Dec 2024 18:15:00 +0800 Subject: [PATCH] wcstools 3.9.7 (new formula) Co-authored-by: Nanda H Krishna --- Formula/w/wcstools.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Formula/w/wcstools.rb 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