Skip to content

Commit

Permalink
add static data formulae for espda, spher, visir
Browse files Browse the repository at this point in the history
  • Loading branch information
szampier committed Oct 19, 2024
1 parent 4c5a587 commit 74e6dac
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Formula/esopipe-espda.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class EsopipeEspda < Formula
desc "ESO ESPRESSO-DAS instrument pipeline (static data)"
homepage "https://www.eso.org/sci/software/pipelines/"
url "https://ftp.eso.org/pub/dfs/pipelines/instruments/espresso-das/espda-kit-1.3.8.tar.gz"
sha256 "d100d9c4318fcfd853f445413ee5a73ad8ca5f41f359ea016afae3758e7e33d6"
license "GPL-2.0-or-later"

livecheck do
url :homepage
regex(/href=.*?espda-kit-(\d+(?:[.-]\d+)+)\.t/i)
end

depends_on "esopipe-espda-recipes"

def install
version_norevision = version.to_s[/(\d+(?:[.]\d+)+)/i, 1]
system "tar", "xf", "espda-calib-#{version_norevision}.tar.gz"
(prefix/"share/esopipes/datastatic/espda-#{version_norevision}").install Dir["espda-calib-#{version_norevision}/cal/*"]
end

test do
system "true"
end
end
24 changes: 24 additions & 0 deletions Formula/esopipe-spher.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class EsopipeSpher < Formula
desc "ESO SPHERE instrument pipeline (static data)"
homepage "https://www.eso.org/sci/software/pipelines/"
url "https://ftp.eso.org/pub/dfs/pipelines/instruments/sphere/spher-kit-0.53.2.tar.gz"
sha256 "d82d513061dde8112382708f87ee5b579b2a07a48eb343f28269c9a8abd2f894"
license "GPL-2.0-or-later"

livecheck do
url :homepage
regex(/href=.*?spher-kit-(\d+(?:[.-]\d+)+)\.t/i)
end

depends_on "esopipe-spher-recipes"

def install
version_norevision = version.to_s[/(\d+(?:[.]\d+)+)/i, 1]
system "tar", "xf", "spher-calib-#{version_norevision}.tar.gz"
(prefix/"share/esopipes/datastatic/spher-#{version_norevision}").install Dir["spher-calib-#{version_norevision}/cal/*"]
end

test do
system "true"
end
end
24 changes: 24 additions & 0 deletions Formula/esopipe-visir.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class EsopipeVisir < Formula
desc "ESO VISIR instrument pipeline (static data)"
homepage "https://www.eso.org/sci/software/pipelines/"
url "https://ftp.eso.org/pub/dfs/pipelines/instruments/visir/visir-kit-4.4.5.tar.gz"
sha256 "8833896bfc1e85e60a3a7d24c015d2ec5ca81807e908a0ca5a70970347d1aaa0"
license "GPL-2.0-or-later"

livecheck do
url :homepage
regex(/href=.*?visir-kit-(\d+(?:[.-]\d+)+)\.t/i)
end

depends_on "esopipe-visir-recipes"

def install
version_norevision = version.to_s[/(\d+(?:[.]\d+)+)/i, 1]
system "tar", "xf", "visir-calib-#{version_norevision}.tar.gz"
(prefix/"share/esopipes/datastatic/visir-#{version_norevision}").install Dir["visir-calib-#{version_norevision}/cal/*"]
end

test do
system "true"
end
end

0 comments on commit 74e6dac

Please sign in to comment.