1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00

- Update xfce4-weather-plugin to 0.10.1

- Remove patches included upstream

PR:		244438
Submitted by:	Olivier Duchateau <duchateau.olivier@gmail.com>
This commit is contained in:
Guido Falsi 2020-02-27 17:56:24 +00:00
parent f6c93a9b31
commit 3a5e4ab613
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=527263
4 changed files with 4 additions and 48 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= xfce4-weather-plugin
PORTVERSION= 0.10.0
PORTREVISION= 1
PORTVERSION= 0.10.1
CATEGORIES= misc xfce geography
MASTER_SITES= XFCE/panel-plugins
DIST_SUBDIR= xfce4

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1565601326
SHA256 (xfce4/xfce4-weather-plugin-0.10.0.tar.bz2) = 4423a0c27830fd1f08e063aaefbf70f31d89235d75549ca841d677ab2e409572
SIZE (xfce4/xfce4-weather-plugin-0.10.0.tar.bz2) = 3032575
TIMESTAMP = 1582560801
SHA256 (xfce4/xfce4-weather-plugin-0.10.1.tar.bz2) = afb2af5f3effc2ea6181636ed0e82e6dafd556ec1b8478100802f85a5d167a89
SIZE (xfce4/xfce4-weather-plugin-0.10.1.tar.bz2) = 3026945

View File

@ -1,33 +0,0 @@
--- 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);

View File

@ -1,10 +0,0 @@
--- 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