Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wcstools 3.9.7 (new formula) #202219

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
cxwx marked this conversation as resolved.
Show resolved Hide resolved
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
Loading