Index: head/misc/gkrellweather2/Makefile =================================================================== --- head/misc/gkrellweather2/Makefile (revision 422306) +++ head/misc/gkrellweather2/Makefile (revision 422307) @@ -1,32 +1,33 @@ # Created by: Jean-Yves Lefort # $FreeBSD$ PORTNAME= gkrellweather PORTVERSION= 2.0.8 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= misc geography MASTER_SITES= https://sites.google.com/site/makovick/projects/ MAINTAINER= ports@FreeBSD.org COMMENT= Weather plugin for GKrellM LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${LOCALBASE}/include/gkrellm2/gkrellm.h:sysutils/gkrellm2 RUN_DEPENDS= gkrellm:sysutils/gkrellm2 USES= gettext gmake pkgconfig tar:tgz MAKE_ENV= enable_nls=1 ALL_TARGET= gkrellweather.so do-install: (cd ${WRKSRC} && ${INSTALL_SCRIPT} GrabWeather \ ${STAGEDIR}${PREFIX}/bin) @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins (cd ${WRKSRC} && ${INSTALL_LIB} gkrellweather.so \ ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins) @${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/ru (cd ${WRKSRC}/po && ${INSTALL_DATA} ru.mo \ ${STAGEDIR}${PREFIX}/share/locale/ru/LC_MESSAGES/gkrellweather.mo) .include Index: head/misc/gkrellweather2/distinfo =================================================================== --- head/misc/gkrellweather2/distinfo (revision 422306) +++ head/misc/gkrellweather2/distinfo (revision 422307) @@ -1,2 +1,3 @@ +TIMESTAMP = 1474107595 SHA256 (gkrellweather-2.0.8.tgz) = 06236ad489151019e71bab4ba63b4b8b06d58c58890caed8b1a28fdd05cde16d SIZE (gkrellweather-2.0.8.tgz) = 20227 Index: head/misc/gkrellweather2/files/patch-Makefile =================================================================== --- head/misc/gkrellweather2/files/patch-Makefile (revision 422306) +++ head/misc/gkrellweather2/files/patch-Makefile (revision 422307) @@ -1,30 +1,30 @@ ---- Makefile.orig Sun Feb 27 14:54:47 2005 -+++ Makefile Wed Mar 2 00:22:17 2005 +--- Makefile.orig 2009-01-11 18:15:02 UTC ++++ Makefile @@ -1,9 +1,9 @@ PKGNAME = gkrellweather - VERSION = 2.0.7 + VERSION = 2.0.8 -CFLAGS = -O2 -std=gnu99 -Wall -fPIC `pkg-config gtk+-2.0 --cflags` +CFLAGS += -Wall -fPIC `pkg-config gtk+-2.0 --cflags` LIBS = `pkg-config gtk+-2.0 --libs` LFLAGS = -shared -PREFIX = /usr/local +PREFIX ?= /usr/local LOCALEDIR := $(PREFIX)/share/locale -@@ -14,13 +14,13 @@ +@@ -14,13 +14,13 @@ endif CFLAGS += -DPACKAGE="\"$(PKGNAME)\"" export PKGNAME LOCALEDIR -CC = gcc +CC ?= gcc OBJS = gkrellweather.o gkrellweather.so: $(OBJS) (cd po && ${MAKE} all ) - $(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) -lpthread + $(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) -pthread clean: (cd po && ${MAKE} clean ) Index: head/misc/gkrellweather2/files/patch-gkrellweather.c =================================================================== --- head/misc/gkrellweather2/files/patch-gkrellweather.c (revision 422306) +++ head/misc/gkrellweather2/files/patch-gkrellweather.c (revision 422307) @@ -1,19 +1,28 @@ ---- gkrellweather.c.orig Mon Mar 31 13:12:57 2003 -+++ gkrellweather.c Sun Jul 13 14:30:14 2003 -@@ -986,7 +986,7 @@ +--- gkrellweather.c.orig 2009-01-11 18:15:02 UTC ++++ gkrellweather.c +@@ -777,7 +777,7 @@ create_air_tab (GtkWidget *tab) + " switch interval - number of seconds (0 = never)" \ + " between switching display\n") + }; +- static gchar url[] = "http://www.nws.noaa.gov/tg/siteloc.shtml"; ++ static gchar url[] = "http://www.nws.noaa.gov/tg/siteloc.php"; + laptop = gtk_notebook_new(); + gtk_notebook_set_tab_pos(GTK_NOTEBOOK(laptop), GTK_POS_TOP); + gtk_box_pack_start(GTK_BOX(tab), laptop, TRUE, TRUE, 0); +@@ -986,7 +986,7 @@ read_default(void) options.windspeed_unit = 1; options.pressure_unit = 1; strcpy(options.station, DEFAULT_STATION_ID); - snprintf(options.command, 512, "/usr/share/gkrellm/GrabWeather %s", options.station); + snprintf(options.command, 512, "GrabWeather %s", options.station); options.command[511] = 0; snprintf(options.filename, 512, "%s/.wmWeatherReports/%s.dat", getenv("HOME"), options.station); -@@ -998,6 +998,7 @@ +@@ -998,6 +998,7 @@ GkrellmMonitor * gkrellm_init_plugin(void) { #ifdef ENABLE_NLS + bindtextdomain(PACKAGE, LOCALEDIR); bind_textdomain_codeset(PACKAGE, "UTF-8"); #endif /* ENABLE_NLS */ style_id = gkrellm_add_meter_style(&air_mon, STYLE_NAME); Index: head/misc/gkrellweather2/pkg-descr =================================================================== --- head/misc/gkrellweather2/pkg-descr (revision 422306) +++ head/misc/gkrellweather2/pkg-descr (revision 422307) @@ -1,16 +1,16 @@ GKrellM plugin which shows weather info from the US National Weather Service Features - Choose the location nearest to you by 4-letter METAR station - identifier code. (http://www.nws.noaa.gov/oso/siteloc.shtml) + identifier code.(http://www.nws.noaa.gov/tg/siteloc.php) - Monitor temperature, dew point, pressure, relative humidity, sky condition, wind direction and speed - Display using imperial units (degrees Fareheight, inches of Mercury, miles per hour) - Display using metric units (degrees Celsius, millimeters of Mercury, kilometers per hour) - Display pressure in kPa, hPa and mmHg - Display wind speeds in kmph, mps and Beaufort scale WWW: https://sites.google.com/site/makovick/gkrellm-plugins