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

astroterm 1.0.6 (new formula) #206063

Merged
merged 2 commits into from
Feb 1, 2025
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ assimp
ast-grep
astgen
astro
astroterm
astrometry-net
astyle
asuka
Expand Down
45 changes: 45 additions & 0 deletions Formula/a/astroterm.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
class Astroterm < Formula
desc "Planetarium for your terminal"
homepage "https://github.com/da-luce/astroterm"
url "https://github.com/da-luce/astroterm/archive/refs/tags/v1.0.6.tar.gz"
sha256 "144ad050a4ca3840d321bb0e454cefbfee78f2b85a2e5add154ef4c49e984d86"
license "MIT"
head "https://github.com/da-luce/astroterm.git", branch: "main"

bottle do
sha256 cellar: :any, arm64_sequoia: "036452503726262a378258524100a05b94e707cf5da53ff02cfe2f13877eb651"
sha256 cellar: :any, arm64_sonoma: "604d56382ab8b716235ffb58fc9b72c1f7698ed7a303fde3907e8885973d6639"
sha256 cellar: :any, arm64_ventura: "4fd420c68e227aa7cf752508342e103efe42ad1b9f366e1675157dc467c8a700"
sha256 cellar: :any, sonoma: "9be14e54e27d8837276013b70ee461c81d445ebee9ec6b50bc44810d0b372e12"
sha256 cellar: :any, ventura: "01a5b1c28c12ca3e6d7feb3733d0c13500d11c452928846ae57e3fa83164e299"
sha256 cellar: :any_skip_relocation, x86_64_linux: "a11eedf6721ddd00da0341ca160c8e77676d4f1ee4773cec91dbdfdeeafb8a11"
end

depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "argtable3"

uses_from_macos "vim" => :build # for xxd
uses_from_macos "ncurses"

resource "bsc5" do
url "http://tdc-www.harvard.edu/catalogs/BSC5", using: :nounzip
sha256 "e471d02eaf4eecb61c12f879a1cb6432ba9d7b68a9a8c5654a1eb42a0c8cc340"
end

def install
resource("bsc5").stage do
(buildpath/"data").install "BSC5"
mv buildpath/"data/BSC5", buildpath/"data/bsc5" if OS.linux?
end

system "meson", "setup", "build", *std_meson_args
system "meson", "compile", "-C", "build", "--verbose"
system "meson", "install", "-C", "build"
end

test do
# astroterm is a TUI application
assert_match version.to_s, shell_output("#{bin}/astroterm --version")
end
end
Loading