Index: head/misc/xfce4-weather-plugin/Makefile =================================================================== --- head/misc/xfce4-weather-plugin/Makefile (revision 520945) +++ head/misc/xfce4-weather-plugin/Makefile (revision 520946) @@ -1,39 +1,40 @@ # Created by: Filippo Natali # $FreeBSD$ PORTNAME= xfce4-weather-plugin PORTVERSION= 0.10.0 +PORTREVISION= 1 CATEGORIES= misc xfce geography MASTER_SITES= XFCE/panel-plugins DIST_SUBDIR= xfce4 MAINTAINER= xfce@FreeBSD.org COMMENT= Weather plugin for the Xfce panel LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libsoup-2.4.so:devel/libsoup USES= compiler:c11 gettext-tools gmake gnome libtool pkgconfig \ tar:bzip2 xfce USE_GNOME= cairo glib20 gtk30 intltool libxml2 USE_XFCE= panel USE_LDCONFIG= yes GNU_CONFIGURE= yes INSTALLS_ICONS= yes INSTALL_TARGET= install-strip OPTIONS_DEFINE= NLS UPOWER OPTIONS_SUB= yes UPOWER_DESC= Power management tasks NLS_CONFIGURE_ENABLE= nls NLS_USES= gettext-runtime UPOWER_LIB_DEPENDS= libupower-glib.so:sysutils/upower UPOWER_CONFIGURE_ENABLE=upower .include Index: head/misc/xfce4-weather-plugin/files/patch-panel-plugin_weather.c =================================================================== --- head/misc/xfce4-weather-plugin/files/patch-panel-plugin_weather.c (nonexistent) +++ head/misc/xfce4-weather-plugin/files/patch-panel-plugin_weather.c (revision 520946) @@ -0,0 +1,33 @@ +--- panel-plugin/weather.c.orig 2019-08-11 19:23:40 UTC ++++ panel-plugin/weather.c +@@ -588,6 +588,7 @@ cb_weather_update(SoupSession *session, + static gboolean + update_handler(plugin_data *data) + { ++ gchar *api_version = FORECAST_API; + gchar *url; + gboolean night_time; + time_t now_t; +@@ -653,9 +654,10 @@ update_handler(plugin_data *data) + data->weather_update->started = TRUE; + + /* build url */ +- url = g_strdup_printf("https://api.met.no/weatherapi" +- "/locationforecastlts/1.3/?lat=%s&lon=%s&" +- "msl=%d", ++ url = g_strdup_printf("https://api.met.no" ++ "/weatherapi/locationforecast/%s/" ++ "?lat=%s&lon=%s&msl=%d", ++ api_version, + data->lat, data->lon, data->msl); + + /* start receive thread */ +@@ -1928,7 +1930,7 @@ xfceweather_create_control(XfcePanelPlugin *plugin) + data->labels = g_array_new(FALSE, TRUE, sizeof(data_types)); + + /* create panel toggle button which will contain all other widgets */ +- data->button = xfce_create_panel_toggle_button(); ++ data->button = xfce_panel_create_toggle_button(); + gtk_container_add(GTK_CONTAINER(plugin), data->button); + xfce_panel_plugin_add_action_widget(plugin, data->button); + gtk_widget_show(data->button); Property changes on: head/misc/xfce4-weather-plugin/files/patch-panel-plugin_weather.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/misc/xfce4-weather-plugin/files/patch-panel-plugin_weather.h =================================================================== --- head/misc/xfce4-weather-plugin/files/patch-panel-plugin_weather.h (nonexistent) +++ head/misc/xfce4-weather-plugin/files/patch-panel-plugin_weather.h (revision 520946) @@ -0,0 +1,10 @@ +--- panel-plugin/weather.h.orig 2019-08-11 19:23:40 UTC ++++ panel-plugin/weather.h +@@ -31,6 +31,7 @@ + #define MAX_FORECAST_DAYS 10 + #define DEFAULT_FORECAST_DAYS 5 + #define MAX_SCROLLBOX_LINES 10 ++#define FORECAST_API "1.9" + + G_BEGIN_DECLS + Property changes on: head/misc/xfce4-weather-plugin/files/patch-panel-plugin_weather.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property