pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Update misc/ansiweather to 1.06



Module Name:	pkgsrc-wip
Committed By:	coypu <coypu%sdf.org@localhost>
Pushed By:	coypu
Date:		Fri Jan 1 23:27:36 2016 +0000
Changeset:	16caa98367f68272077ef1a45ef33f863e768cdb

Added Files:
	ansiweather/DESCR
	ansiweather/Makefile
	ansiweather/PLIST
	ansiweather/distinfo

Log Message:
Update misc/ansiweather to 1.06

- Added support for OpenWeatherMap API keys
- Changed curl options from '-s' to '-sf' to fail silently on server errors
- Removing auto location helper, user location must now be explicitly set
- Changed default city to Rzeszow, Poland
- Changing rain and thunderstorm icons default colors to white and yellow
- Documentation updates

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=16caa98367f68272077ef1a45ef33f863e768cdb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 ansiweather/DESCR    | 11 +++++++++++
 ansiweather/Makefile | 44 ++++++++++++++++++++++++++++++++++++++++++++
 ansiweather/PLIST    |  7 +++++++
 ansiweather/distinfo |  6 ++++++
 4 files changed, 68 insertions(+)

diffs:
diff --git a/ansiweather/DESCR b/ansiweather/DESCR
new file mode 100644
index 0000000..97d2a43
--- /dev/null
+++ b/ansiweather/DESCR
@@ -0,0 +1,11 @@
+AnsiWeather is a Shell script for displaying the current weather conditions in
+your terminal, with support for ANSI colors and Unicode symbols.
+
+Weather data comes from the `OpenWeatherMap` free weather API.
+
+The default location of a configuration file can be overriden by the global
+environment variable ANSIWEATHERRC.
+
+Beware, if configuration file doesn't exists, the script queries a GeoIP API to
+try to approximate user location, this service may be overloaded at time so the
+application might appear stalled.
diff --git a/ansiweather/Makefile b/ansiweather/Makefile
new file mode 100644
index 0000000..e7b6bb9
--- /dev/null
+++ b/ansiweather/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.2 2015/09/27 21:03:48 kamil Exp $
+
+DISTNAME=	ansiweather-1.06
+CATEGORIES=	misc
+MASTER_SITES=	${MASTER_SITE_GITHUB:=fcambus/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	${MASTER_SITE_GITHUB:=fcambus/ansiweather/}
+COMMENT=	Display current weather conditions in your terminal
+LICENSE=	modified-bsd
+
+USE_LANGUAGES=	# none
+
+USE_TOOLS+=	awk:run date:run grep:run
+
+DEPENDS+=	curl-[0-9]*:../../www/curl
+DEPENDS+=	jq-[0-9]*:../../devel/jq
+
+NO_CONFIGURE=	yes
+NO_BUILD=	yes
+
+INSTALL_UNSTRIPPED=	yes
+
+DOCDIR=		share/doc/ansiweather
+EGDIR=		share/examples/ansiweather
+
+CONF_FILES+=	${EGDIR}/ansiweatherrc.example ${PKG_SYSCONFDIR}/ansiweatherrc
+
+SUBST_CLASSES+=		config shebang
+SUBST_FILES.config=	ansiweather
+SUBST_SED.config=	-e 's,~/.ansiweatherrc,${PKG_SYSCONFDIR}/ansiweatherrc,'
+SUBST_STAGE.config=	post-patch
+
+AUTO_MKDIRS=	yes
+
+do-install:
+	${RUN}${INSTALL_PROGRAM} ${WRKSRC}/ansiweather ${DESTDIR}${PREFIX}/bin
+.for f in AUTHORS ChangeLog README.md ansiweather.plugin.zsh
+	${RUN}${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${DOCDIR}
+.endfor
+	${RUN}${INSTALL_DATA} ${WRKSRC}/ansiweatherrc.example \
+	                      ${DESTDIR}${PREFIX}/${EGDIR}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/ansiweather/PLIST b/ansiweather/PLIST
new file mode 100644
index 0000000..8448a0a
--- /dev/null
+++ b/ansiweather/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2015/09/08 21:50:28 kamil Exp $
+bin/ansiweather
+share/doc/ansiweather/AUTHORS
+share/doc/ansiweather/ChangeLog
+share/doc/ansiweather/README.md
+share/doc/ansiweather/ansiweather.plugin.zsh
+share/examples/ansiweather/ansiweatherrc.example
diff --git a/ansiweather/distinfo b/ansiweather/distinfo
new file mode 100644
index 0000000..ebc8bab
--- /dev/null
+++ b/ansiweather/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.3 2015/11/03 23:49:31 agc Exp $
+
+SHA1 (ansiweather-1.06.tar.gz) = 9ad3e5ad7b59533c20a8a223613f154f431a0b19
+RMD160 (ansiweather-1.06.tar.gz) = da897154b4eaf834b9d60947ec3e1e7e512a3f58
+SHA512 (ansiweather-1.06.tar.gz) = 55abfaa72d03cacee9e096218efd8dcafdb804ec4ec5080e9a9768b7a6ee8df7cb96d8e9fb2c57f8c3f46b8a7c2d7655009591d6dcfebe0c80d1dc16fb71ff0c
+Size (ansiweather-1.06.tar.gz) = 7025 bytes


Home | Main Index | Thread Index | Old Index