git: f8d3e056cc69 - main - astro/astroterm: Update 1.0.8 => 1.0.9

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Sun, 31 Aug 2025 02:12:58 UTC
The branch main has been updated by tagattie:

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

commit f8d3e056cc692d13b7cc947063f6134ba42e23f8
Author:     Yusuf Yaman <nxjoseph@protonmail.com>
AuthorDate: 2025-08-30 11:06:47 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-08-31 02:11:08 +0000

    astro/astroterm: Update 1.0.8 => 1.0.9
    
    While here, create options to be able to decide
    to download the data source as Binary or in ASCII format.
    
    Changelog:
    - https://github.com/da-luce/astroterm/releases/tag/v1.0.9
    
    PR:             289182
    Reported by:    Yusuf Yaman <nxjoseph@protonmail.com> (maintainer)
---
 astro/astroterm/Makefile | 22 +++++++++++++++++++---
 astro/astroterm/distinfo | 12 +++++++-----
 2 files changed, 26 insertions(+), 8 deletions(-)

diff --git a/astro/astroterm/Makefile b/astro/astroterm/Makefile
index 5b5cd1cbc684..43125f97d630 100644
--- a/astro/astroterm/Makefile
+++ b/astro/astroterm/Makefile
@@ -1,9 +1,11 @@
 PORTNAME=	astroterm
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.0.8
+DISTVERSION=	1.0.9
 CATEGORIES=	astro
-MASTER_SITES=	https://web.archive.org/web/20231007085824if_/http://tdc-www.harvard.edu/catalogs/:DATA
-DISTFILES=	BSC5:DATA
+MASTER_SITES=	https://web.archive.org/web/20231007085824if_/http://tdc-www.harvard.edu/catalogs/:DATA \
+		https://web.archive.org/web/20250114171002if_/http://tdc-www.harvard.edu/catalogs/:ASCIIDATA
+DISTFILES=	BSC5:DATA \
+		ybsc5.gz:ASCIIDATA
 DIST_SUBDIR=	${PORTNAME}-${DISTVERSION}
 EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
 
@@ -23,8 +25,22 @@ GH_ACCOUNT=	da-luce
 
 PLIST_FILES=	bin/${PORTNAME}
 
+OPTIONS_DEFAULT=	BINARY
+OPTIONS_SINGLE=		DATA
+OPTIONS_SINGLE_DATA=	ASCII BINARY
+
+ASCII_DESC=	Download the data source in ASCII format
+BINARY_DESC=	Download the data source in binary format
+
+.include <bsd.port.options.mk>
+
 post-extract:
+.if ${PORT_OPTIONS:MBINARY}
 	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/BSC5 \
 		${WRKSRC}/data/bsc5
+.endif
+.if ${PORT_OPTIONS:MASCII}
+	${GZIP_CMD} -dc ${DISTDIR}/${DIST_SUBDIR}/ybsc5.gz > ${WRKSRC}/data/ybsc5
+.endif
 
 .include <bsd.port.mk>
diff --git a/astro/astroterm/distinfo b/astro/astroterm/distinfo
index 8988a49e67cb..98d795d1b5e8 100644
--- a/astro/astroterm/distinfo
+++ b/astro/astroterm/distinfo
@@ -1,5 +1,7 @@
-TIMESTAMP = 1752484050
-SHA256 (astroterm-1.0.8/BSC5) = e471d02eaf4eecb61c12f879a1cb6432ba9d7b68a9a8c5654a1eb42a0c8cc340
-SIZE (astroterm-1.0.8/BSC5) = 291548
-SHA256 (astroterm-1.0.8/da-luce-astroterm-v1.0.8_GH0.tar.gz) = d7205aeca4a8de372938b103c4ed787a8430150f7d4254151e2148434e9d4430
-SIZE (astroterm-1.0.8/da-luce-astroterm-v1.0.8_GH0.tar.gz) = 20465560
+TIMESTAMP = 1756549522
+SHA256 (astroterm-1.0.9/BSC5) = e471d02eaf4eecb61c12f879a1cb6432ba9d7b68a9a8c5654a1eb42a0c8cc340
+SIZE (astroterm-1.0.9/BSC5) = 291548
+SHA256 (astroterm-1.0.9/ybsc5.gz) = 3dc44b1e90be8fbe5bcc7656032560f51275f985c7e3f783c9028e1838ec7bed
+SIZE (astroterm-1.0.9/ybsc5.gz) = 573921
+SHA256 (astroterm-1.0.9/da-luce-astroterm-v1.0.9_GH0.tar.gz) = d96d70c644b258ed0adc3a700e6af122659ecabf3eed60d7cfb6810b5068f3eb
+SIZE (astroterm-1.0.9/da-luce-astroterm-v1.0.9_GH0.tar.gz) = 20467780