1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

misc/ansiweather: update 1.08 -> 1.09

PR:		213629
Submitted by:	Danilo G. Baio <dbaio@bsd.com.br> (maintainer)
This commit is contained in:
Bartek Rutkowski 2016-11-09 11:19:20 +00:00
parent 569c658384
commit 156a6ec0fc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=425792
4 changed files with 12 additions and 19 deletions

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= ansiweather
PORTVERSION= 1.08
PORTVERSION= 1.09
CATEGORIES= misc
MAINTAINER= dbaio@bsd.com.br
@ -29,6 +29,7 @@ do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/ansiweather ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/ansiweather.plugin.zsh ${STAGEDIR}${DATADIR}
${INSTALL_MAN} ${WRKSRC}/ansiweather.1 ${STAGEDIR}${MANPREFIX}/man/man1
do-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1469537228
SHA256 (fcambus-ansiweather-1.08_GH0.tar.gz) = 22dd814ef158df13b3fdbe72ca39e820874e710a4d341d1a2367aa771609665d
SIZE (fcambus-ansiweather-1.08_GH0.tar.gz) = 16991
TIMESTAMP = 1476884144
SHA256 (fcambus-ansiweather-1.09_GH0.tar.gz) = 75f705263c8ca1eea74039c478b6c760632f26e3b503ac9d04cd1ab188d1ca77
SIZE (fcambus-ansiweather-1.09_GH0.tar.gz) = 17360

View File

@ -1,15 +1,6 @@
--- ansiweather.orig 2016-07-26 11:16:31 UTC
--- ansiweather.orig 2016-10-18 17:14:59 UTC
+++ ansiweather
@@ -66,7 +66,7 @@ done
if [ "$usage" = true ]
then
- printf "%s\n" \
+ gprintf "%s\n" \
"" \
"AnsiWeather 1.08" \
"Copyright (c) 2013-2016, Frederic Cambus" \
@@ -224,7 +224,7 @@ then
@@ -205,7 +205,7 @@ then
forecast=$([ "$forecast" -gt "$flength" ] && echo "$flength" || echo "$forecast")
else
city=$(echo "$weather" | jq -r '.name')
@ -18,7 +9,7 @@
humidity=$(echo "$weather" | jq '.main.humidity')
pressure=$(echo "$weather" | jq '.main.pressure')
sky=$(echo "$weather" | jq -r '.weather[0].main')
@@ -304,7 +304,7 @@ case $units in
@@ -285,7 +285,7 @@ case $units in
scale="°C"
speed_unit="m/s"
pressure_unit="hPa"
@ -27,7 +18,7 @@
;;
imperial)
scale="°F"
@@ -312,7 +312,7 @@ case $units in
@@ -293,7 +293,7 @@ case $units in
pressure_unit="inHg"
if [ "$forecast" = 0 ]
then
@ -36,7 +27,7 @@
fi
;;
esac
@@ -368,8 +368,8 @@ then
@@ -349,8 +349,8 @@ then
do
day=$(echo "$weather" | jq ".list[$i]")
date=$(epoch_to_date "$(echo "$day" | jq -r '.dt')")
@ -47,7 +38,7 @@
icon=""
if [ "$symbols" = true ]
@@ -401,7 +401,7 @@ fi
@@ -397,7 +397,7 @@ fi
if [ "$ansi" = true ]
then

View File

@ -1,4 +1,5 @@
bin/ansiweather
man/man1/ansiweather.1.gz
%%DATADIR%%/ansiweather.plugin.zsh
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/README.md