[30097] trunk/dports/devel
source_changes at macosforge.org
source_changes at macosforge.org
Fri Oct 19 09:44:28 PDT 2007
Revision: 30097
http://trac.macosforge.org/projects/macports/changeset/30097
Author: gwright at macports.org
Date: 2007-10-19 09:44:28 -0700 (Fri, 19 Oct 2007)
Log Message:
-----------
New port: d52, a disassembler for some common microcontrollers.
Added Paths:
-----------
trunk/dports/devel/d52/
trunk/dports/devel/d52/Portfile
trunk/dports/devel/d52/files/
trunk/dports/devel/d52/files/patch-common.c
Added: trunk/dports/devel/d52/Portfile
===================================================================
--- trunk/dports/devel/d52/Portfile (rev 0)
+++ trunk/dports/devel/d52/Portfile 2007-10-19 16:44:28 UTC (rev 30097)
@@ -0,0 +1,34 @@
+# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping at macports.org $
+
+PortSystem 1.0
+
+name d52
+version v341
+categories devel
+platforms darwin
+maintainers nomaintainer at macports.org
+description Disassembler for a variety of microprocessors
+long_description \
+ d52 is a set of disassemblers for the 8052, 8035, \
+ 8048, 8041, Z80, 8080 and 8085 microcontrollers
+
+homepage http://www.8052.com/
+master_sites ${homepage}/users/disasm/
+
+checksums md5 55147203ba3bfe24ff7e7d2deec499e7
+
+use_zip yes
+distfiles ${name}${version}${extract.suffix}
+
+patchfiles patch-common.c
+
+worksrcdir ${name}${version}
+
+use_configure no
+
+destroot { xinstall -m 755 -d ${destroot}${prefix}/bin
+ xinstall -m 755 -d ${destroot}${prefix}/share/${name}
+ xinstall -m 755 -W ${worksrcpath} d48 d52 dz80 ${destroot}${prefix}/bin/
+ xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/${name}
+ }
+
Added: trunk/dports/devel/d52/files/patch-common.c
===================================================================
--- trunk/dports/devel/d52/files/patch-common.c (rev 0)
+++ trunk/dports/devel/d52/files/patch-common.c 2007-10-19 16:44:28 UTC (rev 30097)
@@ -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;
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071019/1a9881b5/attachment.html
More information about the macports-changes
mailing list