Skip to content

Commit

Permalink
cfitsio 4.5.0
Browse files Browse the repository at this point in the history
Co-authored-by: Rui Chen <[email protected]>
Co-authored-by: Sean Molenaar <[email protected]>
  • Loading branch information
chenrui333 and SMillerDev committed Dec 11, 2024
1 parent c8e3478 commit 21a8553
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Formula/c/cfitsio.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Cfitsio < Formula
desc "C access to FITS data files with optional Fortran wrappers"
homepage "https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html"
url "https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-4.4.1.tar.gz"
sha256 "66a1dc3f21800f9eeabd9eac577b91fcdd9aabba678fbba3b8527319110d1d25"
url "https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-4.5.0.tar.gz"
sha256 "e4854fc3365c1462e493aa586bfaa2f3d0bb8c20b75a524955db64c27427ce09"
license "CFITSIO"

livecheck do
Expand All @@ -21,14 +21,14 @@ class Cfitsio < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "7aa412137e37b4faac67cfe2f30ebc3ad52a97b5658bc64a476131d461d14c8b"
end

depends_on "cmake" => :build
uses_from_macos "zlib"

def install
system "./configure", "--prefix=#{prefix}", "--enable-reentrant"
system "make", "shared"
system "make", "fpack"
system "make", "funpack"
system "make", "install"
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"

(pkgshare/"testprog").install Dir["testprog*", "utilities/testprog.c"]
end

Expand Down

0 comments on commit 21a8553

Please sign in to comment.