Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 May 2022 16:37:17 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 71c250981797 - main - astro/weather: Show usage for package users
Message-ID:  <202205141637.24EGbHM9008529@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=71c25098179744dc38266300117f9855654d453b

commit 71c25098179744dc38266300117f9855654d453b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-05-14 16:37:11 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-05-14 16:37:11 +0000

    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(-)

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
+}
+]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205141637.24EGbHM9008529>