diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2022-05-15 00:37:11 +0800 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2022-05-15 00:37:11 +0800 |
commit | 71c25098179744dc38266300117f9855654d453b (patch) | |
tree | 4ff81be5555bcde745f6b5bd5b855229314ca28a /astro | |
parent | net/jotta-cli: Update to 0.14.5889 (diff) |
astro/weather: Show usage for package users
- Convert ECHO_MSG in do-install: to UCL-format pkg-message
- Bump PORTREVISION for package change
Diffstat (limited to 'astro')
-rw-r--r-- | astro/weather/Makefile | 9 | ||||
-rw-r--r-- | astro/weather/files/pkg-message.in | 10 |
2 files changed, 13 insertions, 6 deletions
diff --git a/astro/weather/Makefile b/astro/weather/Makefile index 00be5bfe2fc2..4b757b8b33e5 100644 --- a/astro/weather/Makefile +++ b/astro/weather/Makefile @@ -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> diff --git a/astro/weather/files/pkg-message.in b/astro/weather/files/pkg-message.in new file mode 100644 index 000000000000..eb5ef2e6ed37 --- /dev/null +++ b/astro/weather/files/pkg-message.in @@ -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 +} +] |