From 71c25098179744dc38266300117f9855654d453b Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Sun, 15 May 2022 00:37:11 +0800 Subject: [PATCH] astro/weather: Show usage for package users - Convert ECHO_MSG in do-install: to UCL-format pkg-message - Bump PORTREVISION for package change --- astro/weather/Makefile | 9 +++------ astro/weather/files/pkg-message.in | 10 ++++++++++ 2 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 astro/weather/files/pkg-message.in 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 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: <