summaryrefslogtreecommitdiff
path: root/misc/gkrellweather2
diff options
context:
space:
mode:
Diffstat (limited to 'misc/gkrellweather2')
-rw-r--r--misc/gkrellweather2/Makefile37
-rw-r--r--misc/gkrellweather2/distinfo3
-rw-r--r--misc/gkrellweather2/files/patch-GrabWeather27
-rw-r--r--misc/gkrellweather2/files/patch-Makefile30
-rw-r--r--misc/gkrellweather2/files/patch-gkrellweather.c28
-rw-r--r--misc/gkrellweather2/pkg-descr16
-rw-r--r--misc/gkrellweather2/pkg-plist3
7 files changed, 0 insertions, 144 deletions
diff --git a/misc/gkrellweather2/Makefile b/misc/gkrellweather2/Makefile
deleted file mode 100644
index c48789dd48dc..000000000000
--- a/misc/gkrellweather2/Makefile
+++ /dev/null
@@ -1,37 +0,0 @@
-# Created by: Jean-Yves Lefort <jylefort@brutele.be>
-# $FreeBSD$
-
-PORTNAME= gkrellweather
-PORTVERSION= 2.0.8
-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
-
-BROKEN= unfetchable
-DEPRECATED= Unfetchable, unmaintained
-EXPIRATION_DATE= 2019-10-16
-
-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 <bsd.port.mk>
diff --git a/misc/gkrellweather2/distinfo b/misc/gkrellweather2/distinfo
deleted file mode 100644
index bea95986f149..000000000000
--- a/misc/gkrellweather2/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1474107595
-SHA256 (gkrellweather-2.0.8.tgz) = 06236ad489151019e71bab4ba63b4b8b06d58c58890caed8b1a28fdd05cde16d
-SIZE (gkrellweather-2.0.8.tgz) = 20227
diff --git a/misc/gkrellweather2/files/patch-GrabWeather b/misc/gkrellweather2/files/patch-GrabWeather
deleted file mode 100644
index 9c1411eae493..000000000000
--- a/misc/gkrellweather2/files/patch-GrabWeather
+++ /dev/null
@@ -1,27 +0,0 @@
---- GrabWeather.orig 2009-01-11 18:15:02 UTC
-+++ GrabWeather
-@@ -1,4 +1,4 @@
--#!/usr/bin/perl
-+#!/usr/bin/env perl
-
- #
- # Grabs the latest local weather conditions from the
-@@ -12,7 +12,7 @@
-
- $ReportDir = '.wmWeatherReports';
- #$WeatherSrc = 'ftp://weather.noaa.gov/data/observations/metar/decoded';
--$WeatherSrc = 'http://weather.noaa.gov/pub/data/observations/metar/decoded';
-+$WeatherSrc = 'http://tgftp.nws.noaa.gov/data/observations/metar/decoded';
-
- use strict;
- use vars qw( $ReportDir $WeatherSrc );
-@@ -40,8 +40,7 @@ my $DataFileName = "$StationID.dat";
- # Is LWP installed?
- eval { require LWP::UserAgent };
- if ($@) {
-- my $cmd = qq{wget --proxy=off --passive-ftp --tries=0 --quiet } .
-- qq{--output-document=$home/$ReportDir/$HTMLFileName $URL};
-+ my $cmd = qq{fetch -d -p -1 -q -o $home/$ReportDir/$HTMLFileName $URL};
- `$cmd` == 0 or die "unable to fetch weather: $?";
- } else {
- $ENV{FTP_PASSIVE} = 1; # LWP uses Net::FTP internally.
diff --git a/misc/gkrellweather2/files/patch-Makefile b/misc/gkrellweather2/files/patch-Makefile
deleted file mode 100644
index 0104529dce95..000000000000
--- a/misc/gkrellweather2/files/patch-Makefile
+++ /dev/null
@@ -1,30 +0,0 @@
---- Makefile.orig 2009-01-11 18:15:02 UTC
-+++ Makefile
-@@ -1,9 +1,9 @@
- PKGNAME = gkrellweather
- 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 @@ 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 )
diff --git a/misc/gkrellweather2/files/patch-gkrellweather.c b/misc/gkrellweather2/files/patch-gkrellweather.c
deleted file mode 100644
index a455f386a75b..000000000000
--- a/misc/gkrellweather2/files/patch-gkrellweather.c
+++ /dev/null
@@ -1,28 +0,0 @@
---- 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 @@ 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);
diff --git a/misc/gkrellweather2/pkg-descr b/misc/gkrellweather2/pkg-descr
deleted file mode 100644
index 54dc8a1f17ff..000000000000
--- a/misc/gkrellweather2/pkg-descr
+++ /dev/null
@@ -1,16 +0,0 @@
-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/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
diff --git a/misc/gkrellweather2/pkg-plist b/misc/gkrellweather2/pkg-plist
deleted file mode 100644
index d6dbbf46b638..000000000000
--- a/misc/gkrellweather2/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-bin/GrabWeather
-libexec/gkrellm2/plugins/gkrellweather.so
-share/locale/ru/LC_MESSAGES/gkrellweather.mo