svn commit: r541151 - in head/misc/xfce4-weather-plugin: . files
Guido Falsi
madpilot at FreeBSD.org
Fri Jul 3 22:06:53 UTC 2020
Author: madpilot
Date: Fri Jul 3 22:06:52 2020
New Revision: 541151
URL: https://svnweb.freebsd.org/changeset/ports/541151
Log:
Switch to the 2.0 API for locationforecast.
PR: 247644
Submitted by: Olivier Duchateau <duchateau.olivier at gmail.com>
Added:
head/misc/xfce4-weather-plugin/files/
head/misc/xfce4-weather-plugin/files/patch-panel-plugin_weather.c (contents, props changed)
head/misc/xfce4-weather-plugin/files/patch-panel-plugin_weather.h (contents, props changed)
Modified:
head/misc/xfce4-weather-plugin/Makefile
Modified: head/misc/xfce4-weather-plugin/Makefile
==============================================================================
--- head/misc/xfce4-weather-plugin/Makefile Fri Jul 3 21:59:25 2020 (r541150)
+++ head/misc/xfce4-weather-plugin/Makefile Fri Jul 3 22:06:52 2020 (r541151)
@@ -3,6 +3,7 @@
PORTNAME= xfce4-weather-plugin
PORTVERSION= 0.10.1
+PORTREVISION= 1
CATEGORIES= misc xfce geography
MASTER_SITES= XFCE/panel-plugins
DIST_SUBDIR= xfce4
Added: head/misc/xfce4-weather-plugin/files/patch-panel-plugin_weather.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/misc/xfce4-weather-plugin/files/patch-panel-plugin_weather.c Fri Jul 3 22:06:52 2020 (r541151)
@@ -0,0 +1,11 @@
+--- panel-plugin/weather.c.orig 2020-02-23 00:39:53 UTC
++++ panel-plugin/weather.c
+@@ -656,7 +656,7 @@ update_handler(plugin_data *data)
+ /* build url */
+ url = g_strdup_printf("https://api.met.no"
+ "/weatherapi/locationforecast/%s/"
+- "?lat=%s&lon=%s&msl=%d",
++ "classic?lat=%s&lon=%s&altitude=%d",
+ api_version,
+ data->lat, data->lon, data->msl);
+
Added: head/misc/xfce4-weather-plugin/files/patch-panel-plugin_weather.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/misc/xfce4-weather-plugin/files/patch-panel-plugin_weather.h Fri Jul 3 22:06:52 2020 (r541151)
@@ -0,0 +1,11 @@
+--- panel-plugin/weather.h.orig 2020-02-23 00:39:53 UTC
++++ panel-plugin/weather.h
+@@ -31,7 +31,7 @@
+ #define MAX_FORECAST_DAYS 10
+ #define DEFAULT_FORECAST_DAYS 5
+ #define MAX_SCROLLBOX_LINES 10
+-#define FORECAST_API "1.9"
++#define FORECAST_API "2.0"
+
+ G_BEGIN_DECLS
+
More information about the svn-ports-all
mailing list