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:
parent
faf87f75f0
commit
71c2509817
2 changed files with 13 additions and 6 deletions
|
@ -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>
|
||||
|
|
10
astro/weather/files/pkg-message.in
Normal file
10
astro/weather/files/pkg-message.in
Normal 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
|
||||
}
|
||||
]
|
Loading…
Reference in a new issue