summaryrefslogtreecommitdiff
path: root/astro/astroterm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'astro/astroterm/Makefile')
-rw-r--r--astro/astroterm/Makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/astro/astroterm/Makefile b/astro/astroterm/Makefile
index 1b4c6959a950..43125f97d630 100644
--- a/astro/astroterm/Makefile
+++ b/astro/astroterm/Makefile
@@ -1,9 +1,11 @@
PORTNAME= astroterm
DISTVERSIONPREFIX= v
-DISTVERSION= 1.0.7
+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>