astro/weather: Show usage for package users

- Convert ECHO_MSG in do-install: to UCL-format pkg-message
- Bump PORTREVISION for package change
This commit is contained in:
Po-Chuan Hsieh 2022-05-15 00:37:11 +08:00
parent faf87f75f0
commit 71c2509817
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
2 changed files with 13 additions and 6 deletions

View file

@ -2,6 +2,7 @@
PORTNAME= weather
PORTVERSION= 2.4.2
PORTREVISION= 1
CATEGORIES= astro python
MASTER_SITES= http://fungi.yuggoth.org/weather/src/ \
LOCAL/sunpoet
@ -17,6 +18,8 @@ USES= python shebangfix tar:xz
NO_ARCH= yes
NO_BUILD= yes
SUB_FILES= pkg-message
SHEBANG_FILES= weather
do-install:
@ -29,11 +32,5 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/weatherrc.5 ${STAGEDIR}${PREFIX}/share/man/man5/weatherrc.5
${MKDIR} ${STAGEDIR}${DATADIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} airports places stations zctas zones ${STAGEDIR}${DATADIR}/
@${ECHO_MSG} ""
@${ECHO_MSG} "Please add the following to your .weatherrc in order to use installed data files:"
@${ECHO_MSG} ""
@${ECHO_MSG} "[default]"
@${ECHO_MSG} "setpath = ${DATADIR}"
@${ECHO_MSG} ""
.include <bsd.port.mk>

View file

@ -0,0 +1,10 @@
[
{ type: install
message: <<EOM
Please add the following to your .weatherrc in order to use installed data files:
[default]
setpath = %%DATADIR%%
EOM
}
]