blob: 43125f97d630f717dd90ef819cdf1806882e4f49 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
PORTNAME= astroterm
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.9
CATEGORIES= astro
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}
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}
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>
|