FreeBSD Bugzilla – Attachment 257465 Details for
Bug 284690
[new port] astro/astroterm: Explore stars, planets, constellations, and more in your terminal!
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
astro/astroterm.patch
astroterm.patch (text/plain), 4.32 KB, created by
Yusuf Yaman
on 2025-02-13 05:14:55 UTC
(
hide
)
Description:
astro/astroterm.patch
Filename:
MIME Type:
Creator:
Yusuf Yaman
Created:
2025-02-13 05:14:55 UTC
Size:
4.32 KB
patch
obsolete
>From cfc730a2242ef51cf0ff8d6445a44a2e5a5bdc55 Mon Sep 17 00:00:00 2001 >From: Yusuf Yaman <nxjoseph@protonmail.com> >Date: Sun, 9 Feb 2025 22:53:23 +0300 >Subject: [PATCH] astro/astroterm: New port: Explore stars, planets, > constellations, and more in your terminal! > >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 > >PR: 284690 >--- > astro/Makefile | 1 + > astro/astroterm/Makefile | 30 +++++++++++++++++++++ > astro/astroterm/distinfo | 5 ++++ > astro/astroterm/files/patch-src_stopwatch.c | 20 ++++++++++++++ > astro/astroterm/pkg-descr | 4 +++ > 5 files changed, 60 insertions(+) > create mode 100644 astro/astroterm/Makefile > create mode 100644 astro/astroterm/distinfo > create mode 100644 astro/astroterm/files/patch-src_stopwatch.c > create mode 100644 astro/astroterm/pkg-descr > >diff --git a/astro/Makefile b/astro/Makefile >index ccf65dd97..19d7971cd 100644 >--- a/astro/Makefile >+++ b/astro/Makefile >@@ -3,6 +3,7 @@ > SUBDIR += R-cran-maptools > SUBDIR += accrete > SUBDIR += astrometry >+ SUBDIR += astroterm > SUBDIR += calcmysky > SUBDIR += celestia > SUBDIR += celestia-gtk >diff --git a/astro/astroterm/Makefile b/astro/astroterm/Makefile >new file mode 100644 >index 000000000..1b4c6959a >--- /dev/null >+++ b/astro/astroterm/Makefile >@@ -0,0 +1,30 @@ >+PORTNAME= astroterm >+DISTVERSIONPREFIX= v >+DISTVERSION= 1.0.7 >+CATEGORIES= astro >+MASTER_SITES= https://web.archive.org/web/20231007085824if_/http://tdc-www.harvard.edu/catalogs/:DATA >+DISTFILES= BSC5:DATA >+DIST_SUBDIR= ${PORTNAME}-${DISTVERSION} >+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} >+ >+MAINTAINER= nxjoseph@protonmail.com >+COMMENT= Explore stars, planets, constellations, and more in your terminal! >+WWW= https://github.com/da-luce/astroterm >+ >+LICENSE= MIT >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+BUILD_DEPENDS= xxd:sysutils/xxd >+LIB_DEPENDS= libargtable2.so:devel/argtable >+ >+USES= compiler meson ncurses ninja pkgconfig >+USE_GITHUB= yes >+GH_ACCOUNT= da-luce >+ >+PLIST_FILES= bin/${PORTNAME} >+ >+post-extract: >+ ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/BSC5 \ >+ ${WRKSRC}/data/bsc5 >+ >+.include <bsd.port.mk> >diff --git a/astro/astroterm/distinfo b/astro/astroterm/distinfo >new file mode 100644 >index 000000000..74df761ac >--- /dev/null >+++ b/astro/astroterm/distinfo >@@ -0,0 +1,5 @@ >+TIMESTAMP = 1739128040 >+SHA256 (astroterm-1.0.7/BSC5) = e471d02eaf4eecb61c12f879a1cb6432ba9d7b68a9a8c5654a1eb42a0c8cc340 >+SIZE (astroterm-1.0.7/BSC5) = 291548 >+SHA256 (astroterm-1.0.7/da-luce-astroterm-v1.0.7_GH0.tar.gz) = 3b8b1597afb31d1cb8ad54030b5766652b4d3f42f0a3d510bbc3191c0c6a4aa5 >+SIZE (astroterm-1.0.7/da-luce-astroterm-v1.0.7_GH0.tar.gz) = 20463291 >diff --git a/astro/astroterm/files/patch-src_stopwatch.c b/astro/astroterm/files/patch-src_stopwatch.c >new file mode 100644 >index 000000000..3097f52da >--- /dev/null >+++ b/astro/astroterm/files/patch-src_stopwatch.c >@@ -0,0 +1,20 @@ >+--- src/stopwatch.c.orig 2025-02-09 19:38:25 UTC >++++ src/stopwatch.c >+@@ -34,7 +34,7 @@ int sw_gettime(struct SwTimestamp *stamp) >+ #elif defined(__APPLE__) && defined(__MACH__) >+ // Apple OSX and iOS (Darwin) >+ >+- unsigned long long tick = clock_gettime_nsec_np(CLOCK_MONOTONIC_RAW); >++ unsigned long long tick = clock_gettime_nsec_np(CLOCK_MONOTONIC); >+ if (tick == 0) >+ { >+ return -1; >+@@ -47,7 +47,7 @@ int sw_gettime(struct SwTimestamp *stamp) >+ // Available on some POSIX systems (preferable to gettimeofday() below) >+ >+ struct timespec tick; >+- int check = clock_gettime(CLOCK_MONOTONIC_RAW, &tick); >++ int check = clock_gettime(CLOCK_MONOTONIC, &tick); >+ if (check == -1) >+ { >+ return -1; >diff --git a/astro/astroterm/pkg-descr b/astro/astroterm/pkg-descr >new file mode 100644 >index 000000000..5cfc98268 >--- /dev/null >+++ b/astro/astroterm/pkg-descr >@@ -0,0 +1,4 @@ >+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. >-- >2.48.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 284690
:
257360
|
257361
|
257362
|
257463
| 257465