[124149] trunk/dports/sysutils/sunwait

khindenburg at macports.org khindenburg at macports.org
Tue Aug 19 16:39:12 PDT 2014


Revision: 124149
          https://trac.macports.org/changeset/124149
Author:   khindenburg at macports.org
Date:     2014-08-19 16:39:12 -0700 (Tue, 19 Aug 2014)
Log Message:
-----------
sunwait: add patch to allow eastern longitude to work #27936

Modified Paths:
--------------
    trunk/dports/sysutils/sunwait/Portfile

Added Paths:
-----------
    trunk/dports/sysutils/sunwait/files/
    trunk/dports/sysutils/sunwait/files/patch-main.c.diff

Modified: trunk/dports/sysutils/sunwait/Portfile
===================================================================
--- trunk/dports/sysutils/sunwait/Portfile	2014-08-19 23:23:57 UTC (rev 124148)
+++ trunk/dports/sysutils/sunwait/Portfile	2014-08-19 23:39:12 UTC (rev 124149)
@@ -4,6 +4,7 @@
 
 name			sunwait
 version			20041208
+revision		1
 categories		sysutils
 license			GPL-2
 platforms		darwin
@@ -19,6 +20,8 @@
 master_sites	${homepage}
 checksums		md5 957dbcb6d16cb8f3b1ead0687397b495
 
+patchfiles      patch-main.c.diff
+
 use_configure	no
 
 build.target	sunwait

Added: trunk/dports/sysutils/sunwait/files/patch-main.c.diff
===================================================================
--- trunk/dports/sysutils/sunwait/files/patch-main.c.diff	                        (rev 0)
+++ trunk/dports/sysutils/sunwait/files/patch-main.c.diff	2014-08-19 23:39:12 UTC (rev 124149)
@@ -0,0 +1,11 @@
+--- main.c.org	2004-12-09 02:48:49.000000000 +0100
++++ main.c	2011-02-12 21:50:31.000000000 +0100
+@@ -151,7 +151,7 @@
+     }
+     /* this looks different from the others because 77E 
+        parses as scientific notation */
+-    if (1 == sscanf(argv[i], "%lf%", &temp, &hemisphere)
++    if (2 == sscanf(argv[i], "%lf%1[Ee]", &temp, &hemisphere)
+ 	&& (argv[i][strlen(argv[i])-1] == 'E' ||
+ 	    argv[i][strlen(argv[i])-1] == 'e')) {
+       lon = temp;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140819/1b83c6fd/attachment.html>


More information about the macports-changes mailing list