ports/69523: misc/wmweather+ Update to version 2.9
Wille Harald
harald.wille at students.jku.at
Sat Jul 24 09:30:29 UTC 2004
>Number: 69523
>Category: ports
>Synopsis: misc/wmweather+ Update to version 2.9
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat Jul 24 09:30:28 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Wille Harald
>Release: FreeBSD 5.2.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD oasis.wipe.at 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #5: Thu Jul 22 11:36:40 CEST 2004 root at oasis.wipe.at:/usr/obj/usr/src/sys/HYPERDRIVE i386
>Description:
Upgrade port to version 2.9
>How-To-Repeat:
>Fix:
--- patch.diff begins here ---
diff -ruN wmweather+.orig/Makefile wmweather+/Makefile
--- wmweather+.orig/Makefile Wed Feb 4 06:07:46 2004
+++ wmweather+/Makefile Thu Jul 22 19:20:27 2004
@@ -5,8 +5,7 @@
# $FreeBSD: ports/misc/wmweather+/Makefile,v 1.3 2004/02/04 05:07:46 marcus Exp $
PORTNAME= wmweather+
-PORTVERSION= 2.4
-PORTREVISION= 2
+PORTVERSION= 2.9
CATEGORIES= misc windowmaker
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= wmweatherplus
diff -ruN wmweather+.orig/distinfo wmweather+/distinfo
--- wmweather+.orig/distinfo Thu Mar 25 00:14:11 2004
+++ wmweather+/distinfo Thu Jul 22 19:20:27 2004
@@ -1,2 +1,2 @@
-MD5 (wmweather+-2.4.tar.gz) = f09d1b31da5fd171b27715121e2d9662
-SIZE (wmweather+-2.4.tar.gz) = 216938
+MD5 (wmweather+-2.9.tar.gz) = ede58d7ed589d5c41b9b68a2703a8f7d
+SIZE (wmweather+-2.9.tar.gz) = 292955
diff -ruN wmweather+.orig/files/patch-convert.c wmweather+/files/patch-convert.c
--- wmweather+.orig/files/patch-convert.c Fri Apr 11 22:37:09 2003
+++ wmweather+/files/patch-convert.c Thu Jul 22 19:20:27 2004
@@ -1,6 +1,16 @@
--- convert.c.orig Sun Sep 22 22:00:53 2002
-+++ convert.c Fri Apr 11 02:07:44 2003
-@@ -52,7 +52,7 @@
++++ convert.c Thu Jul 22 19:04:18 2004
+@@ -18,6 +18,9 @@
+ */
+
+ #include <math.h>
++#ifndef NAN
++#define NAN (0.0/0.0)
++#endif
+ #if TM_IN_SYS_TIME
+ # if TIME_WITH_SYS_TIME
+ # include <sys/time.h>
+@@ -52,7 +55,7 @@
if(temp_C==999 || dewpt_C==999) return 999;
f=1782.75*(dewpt_C-temp_C)/((237.7+dewpt_C)*(237.7+temp_C));
@@ -9,7 +19,7 @@
}
int rh_F(int temp_F, int dewpt_F){
-@@ -61,7 +61,7 @@
+@@ -61,7 +64,7 @@
if(temp_F==999 || dewpt_F==999) return 999;
f=3208.95*(dewpt_F-temp_F)/((395.86+dewpt_F)*(395.86+temp_F));
@@ -18,7 +28,7 @@
}
int heatindex_C(int temp_C, int rh){
-@@ -75,7 +75,7 @@
+@@ -75,7 +78,7 @@
temp2=temp_C*temp_C;
rh2=rh*rh;
@@ -27,7 +37,7 @@
#endif
}
-@@ -88,9 +88,9 @@
+@@ -88,9 +91,9 @@
temp3=temp2*temp_F;
rh2=rh*rh;
rh3=rh2*rh;
@@ -39,7 +49,7 @@
#endif
}
-@@ -106,14 +106,14 @@
+@@ -106,14 +109,14 @@
ret=35.74 + 0.6215*temp_F + (-35.75 + 0.4275*temp_F)*pow(windspeed*50292/57875.0, 0.16);
if(ret>temp_F) return temp_F;
@@ -56,7 +66,7 @@
}
float m2mi(int meters){
-@@ -125,27 +125,27 @@
+@@ -125,27 +128,27 @@
int knots2mph(int knots){
if(knots<0) return knots;
@@ -89,7 +99,7 @@
}
int knots2beaufort(int knots){
-@@ -170,12 +170,12 @@
+@@ -170,12 +173,12 @@
int temp_C2F(int temp_C){
if(temp_C==999) return 999;
diff -ruN wmweather+.orig/files/patch-convert.h wmweather+/files/patch-convert.h
--- wmweather+.orig/files/patch-convert.h Fri Apr 11 22:37:09 2003
+++ wmweather+/files/patch-convert.h Thu Jan 1 01:00:00 1970
@@ -1,11 +0,0 @@
---- convert.h.orig Fri Sep 6 04:04:06 2002
-+++ convert.h Fri Apr 11 02:07:44 2003
-@@ -12,6 +12,8 @@
- * x<0 is used for rh, pressure, and windspeed
- */
-
-+#define NAN 0/0
-+
- /* Calculations */
- int rh_C(int temp_C, int dewpt_C);
- int rh_F(int temp_F, int dewpt_F);
diff -ruN wmweather+.orig/files/patch-moon.c wmweather+/files/patch-moon.c
--- wmweather+.orig/files/patch-moon.c Fri Apr 11 22:37:09 2003
+++ wmweather+/files/patch-moon.c Thu Jul 22 19:20:46 2004
@@ -1,5 +1,5 @@
---- moon.c.orig Sun Sep 22 22:00:53 2002
-+++ moon.c Fri Apr 11 02:07:44 2003
+--- moon.c.old Fri May 14 04:55:39 2004
++++ moon.c Thu Jul 22 17:26:25 2004
@@ -44,7 +44,7 @@
#include "wmgeneral/wmgeneral-x11.h"
diff -ruN wmweather+.orig/files/patch-subst.c wmweather+/files/patch-subst.c
--- wmweather+.orig/files/patch-subst.c Fri Apr 11 22:37:09 2003
+++ wmweather+/files/patch-subst.c Thu Jan 1 01:00:00 1970
@@ -1,11 +0,0 @@
---- subst.c.orig Sun Sep 22 22:00:53 2002
-+++ subst.c Fri Apr 11 02:07:44 2003
-@@ -48,7 +48,7 @@
- char *format=NULL;
- size_t formatlen=0;
- int flags;
-- ssize_t str_start;
-+ size_t str_start;
-
- for(i=j=0; s[i]!='\0'; i++){
- if(s[i]!='%'){
diff -ruN wmweather+.orig/files/patch-wmweather+.c wmweather+/files/patch-wmweather+.c
--- wmweather+.orig/files/patch-wmweather+.c Fri Apr 11 22:37:09 2003
+++ wmweather+/files/patch-wmweather+.c Thu Jul 22 19:20:49 2004
@@ -1,6 +1,6 @@
---- wmweather+.c.orig Sun Mar 23 01:04:41 2003
-+++ wmweather+.c Fri Apr 11 02:07:45 2003
-@@ -103,7 +103,7 @@
+--- wmweather+.c.old Tue Mar 30 05:17:20 2004
++++ wmweather+.c Thu Jul 22 17:26:54 2004
+@@ -104,7 +104,7 @@
/**********************************
* Prototypes
**********************************/
@@ -9,20 +9,3 @@
void printversion(void);
int readconf(char *file);
int parse_option(char *option, char *value);
-@@ -671,12 +671,12 @@
- F("Please specify a METAR station.\n See http://www.nws.noaa.gov/tg/siteloc.shtml\n");
- }
- if(latitude==999){{
-- time_t t=0;
- int flag=0;
--
-- localtime(&t);
-+ time_t t=time(NULL);
-+ struct tm *tm;
-+ tm=gmtime(&t);
- latitude=0;
-- longitude=timezone/240;
-+ longitude=tm->tm_gmtoff/240;
- if(longitude<0){
- flag=1;
- longitude=-longitude;
diff -ruN wmweather+.orig/pkg-descr wmweather+/pkg-descr
--- wmweather+.orig/pkg-descr Fri Apr 11 22:37:09 2003
+++ wmweather+/pkg-descr Thu Jul 22 19:20:49 2004
@@ -5,4 +5,4 @@
You will need to look up the METAR code for your city (a standard code
used in aviation)
-WWW: http://www.nws.noaa.gov/tg/siteloc.shtml
+WWW: http://sourceforge.net/projects/wmweatherplus/
--- patch.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list