[151493] trunk/dports/devel/d52

larryv at macports.org larryv at macports.org
Tue Aug 16 22:14:56 PDT 2016


Revision: 151493
          https://trac.macports.org/changeset/151493
Author:   larryv at macports.org
Date:     2016-08-16 22:14:56 -0700 (Tue, 16 Aug 2016)
Log Message:
-----------
d52: Give patch an extension

Modified Paths:
--------------
    trunk/dports/devel/d52/Portfile

Added Paths:
-----------
    trunk/dports/devel/d52/files/decimal-number.patch

Removed Paths:
-------------
    trunk/dports/devel/d52/files/patch-common.c

Modified: trunk/dports/devel/d52/Portfile
===================================================================
--- trunk/dports/devel/d52/Portfile	2016-08-17 05:12:56 UTC (rev 151492)
+++ trunk/dports/devel/d52/Portfile	2016-08-17 05:14:56 UTC (rev 151493)
@@ -21,7 +21,7 @@
 use_zip             yes
 checksums           md5 55147203ba3bfe24ff7e7d2deec499e7
 
-patchfiles          patch-common.c
+patchfiles          decimal-number.patch
 
 use_configure       no
 

Copied: trunk/dports/devel/d52/files/decimal-number.patch (from rev 151492, trunk/dports/devel/d52/files/patch-common.c)
===================================================================
--- trunk/dports/devel/d52/files/decimal-number.patch	                        (rev 0)
+++ trunk/dports/devel/d52/files/decimal-number.patch	2016-08-17 05:14:56 UTC (rev 151493)
@@ -0,0 +1,58 @@
+--- common.c.sav	2007-10-19 12:45:37.000000000 -0400
++++ common.c	2007-10-19 12:47:03.000000000 -0400
+@@ -473,9 +473,43 @@
+ 	*loc = i | c;
+ }
+ 
++
++// Get decimal number from line in control file
++
++char *get_decimal(char *text, int *val)
++{
++	int	result;
++	char	c;
++
++	result = 0;
++	c = toupper(*text);
++
++	while (c)
++	{
++		if (c == ';')			// beginning of comment, ignore all else
++			break;
++
++		if (isdigit(c))
++		{
++			c -= '0';
++			result *= 10;
++			result += ((int) c & 0xf);
++			text++;
++		}
++		else
++			break;
++
++		c = toupper(*text);	// get next digit
++	}
++
++	*val = result;				// pass number back to caller
++	return(text);				// and return updated text pointer
++}
++
+ //
+ // Get hexadecimal number from line in control file.
+ // Return updated character pointer.
++// If number preceeded by '#', then evaluate as a decimal number
+ //
+ 
+ char *get_adrs(char *text, int *val)
+@@ -514,6 +548,11 @@
+ 			start++;
+ 			text++;
+ 		}
++		else if (c == '#')
++		{
++			text++;
++			return get_decimal(text, val);
++		}
+ 		else						// done if not hexadecimal character
+ 			break;
+ 

Deleted: trunk/dports/devel/d52/files/patch-common.c
===================================================================
--- trunk/dports/devel/d52/files/patch-common.c	2016-08-17 05:12:56 UTC (rev 151492)
+++ trunk/dports/devel/d52/files/patch-common.c	2016-08-17 05:14:56 UTC (rev 151493)
@@ -1,58 +0,0 @@
---- common.c.sav	2007-10-19 12:45:37.000000000 -0400
-+++ common.c	2007-10-19 12:47:03.000000000 -0400
-@@ -473,9 +473,43 @@
- 	*loc = i | c;
- }
- 
-+
-+// Get decimal number from line in control file
-+
-+char *get_decimal(char *text, int *val)
-+{
-+	int	result;
-+	char	c;
-+
-+	result = 0;
-+	c = toupper(*text);
-+
-+	while (c)
-+	{
-+		if (c == ';')			// beginning of comment, ignore all else
-+			break;
-+
-+		if (isdigit(c))
-+		{
-+			c -= '0';
-+			result *= 10;
-+			result += ((int) c & 0xf);
-+			text++;
-+		}
-+		else
-+			break;
-+
-+		c = toupper(*text);	// get next digit
-+	}
-+
-+	*val = result;				// pass number back to caller
-+	return(text);				// and return updated text pointer
-+}
-+
- //
- // Get hexadecimal number from line in control file.
- // Return updated character pointer.
-+// If number preceeded by '#', then evaluate as a decimal number
- //
- 
- char *get_adrs(char *text, int *val)
-@@ -514,6 +548,11 @@
- 			start++;
- 			text++;
- 		}
-+		else if (c == '#')
-+		{
-+			text++;
-+			return get_decimal(text, val);
-+		}
- 		else						// done if not hexadecimal character
- 			break;
- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160816/b54049e1/attachment.html>


More information about the macports-changes mailing list