From owner-svn-ports-all@freebsd.org Wed Jul 27 20:01:48 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4BBC8BA6B0F; Wed, 27 Jul 2016 20:01:48 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0DCBD1F66; Wed, 27 Jul 2016 20:01:47 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u6RK1lIK076113; Wed, 27 Jul 2016 20:01:47 GMT (envelope-from pawel@FreeBSD.org) Received: (from pawel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u6RK1lV6076110; Wed, 27 Jul 2016 20:01:47 GMT (envelope-from pawel@FreeBSD.org) Message-Id: <201607272001.u6RK1lV6076110@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pawel set sender to pawel@FreeBSD.org using -f From: Pawel Pekala Date: Wed, 27 Jul 2016 20:01:47 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r419195 - in head/misc/ansiweather: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2016 20:01:48 -0000 Author: pawel Date: Wed Jul 27 20:01:46 2016 New Revision: 419195 URL: https://svnweb.freebsd.org/changeset/ports/419195 Log: - Update to version 1.08 [1] - Update LICENSE and set LICENSE_FILE [1] - Port is architecture neutral - Split install target to conditional installation of files depending on options set Changelog: - Use env printf instead of hardcoding printf path - Added a $forecast_text variable allowing to customize forecast text - Relicensed under the BSD 2-Clause license PR: 211384 [1] Submitted by: Danilo G. Baio (maintainer) [1] Modified: head/misc/ansiweather/Makefile head/misc/ansiweather/distinfo head/misc/ansiweather/files/patch-ansiweather Modified: head/misc/ansiweather/Makefile ============================================================================== --- head/misc/ansiweather/Makefile Wed Jul 27 19:36:42 2016 (r419194) +++ head/misc/ansiweather/Makefile Wed Jul 27 20:01:46 2016 (r419195) @@ -1,13 +1,14 @@ # $FreeBSD$ PORTNAME= ansiweather -PORTVERSION= 1.07 +PORTVERSION= 1.08 CATEGORIES= misc MAINTAINER= dbaio@bsd.com.br COMMENT= Shell script for displaying the current weather in your terminal -LICENSE= BSD3CLAUSE +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= jq:textproc/jq \ curl:ftp/curl \ @@ -18,6 +19,7 @@ USE_GITHUB= yes GH_ACCOUNT= fcambus NO_BUILD= yes +NO_ARCH= yes SUB_FILES= pkg-message @@ -25,12 +27,15 @@ OPTIONS_DEFINE= DOCS EXAMPLES do-install: ${MKDIR} ${STAGEDIR}${DATADIR} - ${MKDIR} ${STAGEDIR}${DOCSDIR} - ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - - ${INSTALL_SCRIPT} ${WRKSRC}/ansiweather ${STAGEDIR}${PREFIX}/bin/ansiweather + ${INSTALL_SCRIPT} ${WRKSRC}/ansiweather ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/ansiweather.plugin.zsh ${STAGEDIR}${DATADIR} + +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} Modified: head/misc/ansiweather/distinfo ============================================================================== --- head/misc/ansiweather/distinfo Wed Jul 27 19:36:42 2016 (r419194) +++ head/misc/ansiweather/distinfo Wed Jul 27 20:01:46 2016 (r419195) @@ -1,2 +1,3 @@ -SHA256 (fcambus-ansiweather-1.07_GH0.tar.gz) = f9b377b23ecc9c2d3567424b300b8e370eb0959c9b1cd0828ba07ce38f2ef0a0 -SIZE (fcambus-ansiweather-1.07_GH0.tar.gz) = 17041 +TIMESTAMP = 1469537228 +SHA256 (fcambus-ansiweather-1.08_GH0.tar.gz) = 22dd814ef158df13b3fdbe72ca39e820874e710a4d341d1a2367aa771609665d +SIZE (fcambus-ansiweather-1.08_GH0.tar.gz) = 16991 Modified: head/misc/ansiweather/files/patch-ansiweather ============================================================================== --- head/misc/ansiweather/files/patch-ansiweather Wed Jul 27 19:36:42 2016 (r419194) +++ head/misc/ansiweather/files/patch-ansiweather Wed Jul 27 20:01:46 2016 (r419195) @@ -1,4 +1,4 @@ ---- ansiweather.orig 2016-01-19 22:01:25 UTC +--- ansiweather.orig 2016-07-26 11:16:31 UTC +++ ansiweather @@ -66,7 +66,7 @@ done @@ -7,9 +7,9 @@ - printf "%s\n" \ + gprintf "%s\n" \ "" \ - "AnsiWeather 1.07" \ + "AnsiWeather 1.08" \ "Copyright (c) 2013-2016, Frederic Cambus" \ -@@ -223,7 +223,7 @@ then +@@ -224,7 +224,7 @@ then forecast=$([ "$forecast" -gt "$flength" ] && echo "$flength" || echo "$forecast") else city=$(echo "$weather" | jq -r '.name') @@ -18,7 +18,7 @@ humidity=$(echo "$weather" | jq '.main.humidity') pressure=$(echo "$weather" | jq '.main.pressure') sky=$(echo "$weather" | jq -r '.weather[0].main') -@@ -303,7 +303,7 @@ case $units in +@@ -304,7 +304,7 @@ case $units in scale="°C" speed_unit="m/s" pressure_unit="hPa" @@ -27,7 +27,7 @@ ;; imperial) scale="°F" -@@ -311,7 +311,7 @@ case $units in +@@ -312,7 +312,7 @@ case $units in pressure_unit="inHg" if [ "$forecast" = 0 ] then @@ -36,7 +36,7 @@ fi ;; esac -@@ -367,8 +367,8 @@ then +@@ -368,8 +368,8 @@ then do day=$(echo "$weather" | jq ".list[$i]") date=$(epoch_to_date "$(echo "$day" | jq -r '.dt')") @@ -47,13 +47,13 @@ icon="" if [ "$symbols" = true ] -@@ -400,7 +400,7 @@ fi +@@ -401,7 +401,7 @@ fi if [ "$ansi" = true ] then -- /usr/bin/printf "$output\033[0m\n" -+ /usr/local/bin/gprintf "$output\033[0m\n" +- env printf "$output\033[0m\n" ++ env gprintf "$output\033[0m\n" else -- /usr/bin/printf "$output\n" | sed "s/$(printf '\033')\[[0-9;]*m//g" -+ /usr/local/bin/gprintf "$output\n" | sed "s/$(gprintf '\033')\[[0-9;]*m//g" +- 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