Bug 284690 - [new port] astro/astroterm: Explore stars, planets, constellations, and more in your terminal!
Summary: [new port] astro/astroterm: Explore stars, planets, constellations, and more ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-09 19:54 UTC by Yusuf Yaman
Modified: 2025-02-13 10:38 UTC (History)
2 users (show)

See Also:


Attachments
astro/astroterm.patch (4.36 KB, patch)
2025-02-09 19:54 UTC, Yusuf Yaman
no flags Details | Diff
astro/astroterm.patch (4.33 KB, patch)
2025-02-09 20:02 UTC, Yusuf Yaman
no flags Details | Diff
astro/astroterm.patch (4.34 KB, patch)
2025-02-09 20:09 UTC, Yusuf Yaman
no flags Details | Diff
Revised patch (1.39 KB, application/x-gzip)
2025-02-13 03:16 UTC, wen
no flags Details
astro/astroterm.patch (4.32 KB, patch)
2025-02-13 05:14 UTC, Yusuf Yaman
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuf Yaman 2025-02-09 19:54:03 UTC

    
Comment 1 Yusuf Yaman 2025-02-09 19:54:49 UTC
Created attachment 257360 [details]
astro/astroterm.patch

astroterm is a terminal-based star map written in C. It displays the real-time
positions of stars, planets, constellations, and more, all within your terminal
and no telescope required! Configure sky views by date, time, and location with
precise ASCII-rendered visuals.

WWW:	https://github.com/da-luce/astroterm

Thanks in advance!
Comment 2 Yusuf Yaman 2025-02-09 19:56:24 UTC
Poudriere tests do pass on amd64 14.2-R/latest.
Comment 3 Yusuf Yaman 2025-02-09 20:02:15 UTC
Created attachment 257361 [details]
astro/astroterm.patch

I noticed that astroterm actually does not depend on ftp/curl.

Pet port{clippy,fmt,lint}.
Comment 4 Yusuf Yaman 2025-02-09 20:09:45 UTC
Created attachment 257362 [details]
astro/astroterm.patch

Just added "New port:" to git commit message, no actual change.
Comment 5 wen 2025-02-13 03:16:16 UTC
Created attachment 257463 [details]
Revised patch

There is fetch error here, I upload a revised patch.
Comment 6 Yusuf Yaman 2025-02-13 05:14:15 UTC
Hmm, I never got fetch error in either my system or poudriere but I made the change you provided. Thanks.

By the way, astroterm checks checksum of downloaded BSC5 file so I think that we should use web.archive.org here instead of downloading it directly from the source site because source site may update it and checksum verification may fail.

FILE: work/astroterm-1.0.7/data/meson.build

# Verify bsc5 downloaded correctly
bsc5_bin_path = 'bsc5'
bsc5_bin_hash = 'e471d02eaf4eecb61c12f879a1cb6432ba9d7b68a9a8c5654a1eb42a0c8cc340'
bsc5_ascii_path = 'ybsc5'
bsc5_ascii_hash = '69797549cc1605aad7ff94e9325e29a1661f2a253917faaa056d9bf20b809afd'

computed_hash = fs.hash(bsc5_path, 'sha256')
if computed_hash != expected_hash
  error(bsc5_path + ' SHA-256 hash mismatch! Build halted.' +
        '\nExpected:\t' + expected_hash +
        '\nGot:\t\t' + computed_hash)
else
  message(bsc5_path + ' SHA-256 hash verified successfully: ' + computed_hash)
endif
Comment 7 Yusuf Yaman 2025-02-13 05:14:55 UTC
Created attachment 257465 [details]
astro/astroterm.patch
Comment 8 commit-hook freebsd_committer freebsd_triage 2025-02-13 07:28:42 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f84754e16bd3d8b03acdcae27c9f89f5e814adcf

commit f84754e16bd3d8b03acdcae27c9f89f5e814adcf
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2025-02-13 07:26:23 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2025-02-13 07:26:23 +0000

    astro/astroterm: New port

    astroterm is a terminal-based star map written in C. It displays the real-time
    positions of stars, planets, constellations, and more, all within your terminal
    and no telescope required! Configure sky views by date, time, and location with
    precise ASCII-rendered visuals.
    PR:             284690
    Reported by:    nxjoseph@protonmail.com

 astro/Makefile                                    |  1 +
 astro/astroterm/Makefile (new)                    | 30 +++++++++++++++++++++++
 astro/astroterm/distinfo (new)                    |  5 ++++
 astro/astroterm/files/patch-src_stopwatch.c (new) | 20 +++++++++++++++
 astro/astroterm/pkg-descr (new)                   |  4 +++
 5 files changed, 60 insertions(+)
Comment 9 Yusuf Yaman 2025-02-13 07:29:44 UTC
Thanks!