Index: head/misc/ansiweather/Makefile =================================================================== --- head/misc/ansiweather/Makefile (revision 425791) +++ head/misc/ansiweather/Makefile (revision 425792) @@ -1,42 +1,43 @@ # $FreeBSD$ PORTNAME= ansiweather -PORTVERSION= 1.08 +PORTVERSION= 1.09 CATEGORIES= misc MAINTAINER= dbaio@bsd.com.br COMMENT= Shell script for displaying the current weather in your terminal LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= jq:textproc/jq \ curl:ftp/curl \ bash:shells/bash \ gprintf:sysutils/coreutils USE_GITHUB= yes GH_ACCOUNT= fcambus NO_BUILD= yes NO_ARCH= yes SUB_FILES= pkg-message OPTIONS_DEFINE= DOCS EXAMPLES 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} ${INSTALL_DATA} ${WRKSRC}/ansiweatherrc.example ${STAGEDIR}${EXAMPLESDIR} do-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/AUTHORS ${STAGEDIR}${DOCSDIR} .include Index: head/misc/ansiweather/distinfo =================================================================== --- head/misc/ansiweather/distinfo (revision 425791) +++ head/misc/ansiweather/distinfo (revision 425792) @@ -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 Index: head/misc/ansiweather/files/patch-ansiweather =================================================================== --- head/misc/ansiweather/files/patch-ansiweather (revision 425791) +++ head/misc/ansiweather/files/patch-ansiweather (revision 425792) @@ -1,59 +1,50 @@ ---- 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') - temperature=$(echo "$weather" | jq '.main.temp' | xargs printf "%.0f") + temperature=$(echo "$weather" | jq '.main.temp' | xargs gprintf "%.0f") 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" - pressure=$(echo "$pressure" | xargs printf "%.0f") + pressure=$(echo "$pressure" | xargs gprintf "%.0f") ;; imperial) scale="°F" -@@ -312,7 +312,7 @@ case $units in +@@ -293,7 +293,7 @@ case $units in pressure_unit="inHg" if [ "$forecast" = 0 ] then - pressure=$(echo "$pressure*0.0295" | bc | xargs printf "%.2f") + pressure=$(echo "$pressure*0.0295" | bc | xargs gprintf "%.2f") 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')") - low=$(echo "$day" | jq -r '.temp.min' | xargs printf "%.0f") - high=$(echo "$day" | jq -r '.temp.max' | xargs printf "%.0f") + low=$(echo "$day" | jq -r '.temp.min' | xargs gprintf "%.0f") + high=$(echo "$day" | jq -r '.temp.max' | xargs gprintf "%.0f") icon="" if [ "$symbols" = true ] -@@ -401,7 +401,7 @@ fi +@@ -397,7 +397,7 @@ fi if [ "$ansi" = true ] then - env printf "$output\033[0m\n" + env gprintf "$output\033[0m\n" else - env printf "$output\n" | sed "s/$(printf '\033')\[[0-9;]*m//g" + env gprintf "$output\n" | sed "s/$(gprintf '\033')\[[0-9;]*m//g" fi Index: head/misc/ansiweather/pkg-plist =================================================================== --- head/misc/ansiweather/pkg-plist (revision 425791) +++ head/misc/ansiweather/pkg-plist (revision 425792) @@ -1,5 +1,6 @@ bin/ansiweather +man/man1/ansiweather.1.gz %%DATADIR%%/ansiweather.plugin.zsh %%PORTDOCS%%%%DOCSDIR%%/AUTHORS %%PORTDOCS%%%%DOCSDIR%%/README.md %%PORTEXAMPLES%%%%EXAMPLESDIR%%/ansiweatherrc.example