[73758] trunk/dports/science

and.damore at macports.org and.damore at macports.org
Wed Nov 24 02:26:58 PST 2010


Revision: 73758
          http://trac.macports.org/changeset/73758
Author:   and.damore at macports.org
Date:     2010-11-24 02:26:54 -0800 (Wed, 24 Nov 2010)
Log Message:
-----------
new port Dinero IV, memory traces cache simulator for monoprocessor architectures

Added Paths:
-----------
    trunk/dports/science/dineroIV/
    trunk/dports/science/dineroIV/Portfile
    trunk/dports/science/dineroIV/files/
    trunk/dports/science/dineroIV/files/patch-misc_c.diff

Added: trunk/dports/science/dineroIV/Portfile
===================================================================
--- trunk/dports/science/dineroIV/Portfile	                        (rev 0)
+++ trunk/dports/science/dineroIV/Portfile	2010-11-24 10:26:54 UTC (rev 73758)
@@ -0,0 +1,56 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem      1.0
+
+name            dineroIV
+version         7
+categories      science
+maintainers     and.damore openmaintainer
+platforms       darwin
+description     cache simulator for memory reference traces
+long_description \
+                "Dinero IV is a cache simulator for memory reference traces. It \
+                includes the following major changes over Dinero III: \
+                subroutine-callable interface in addition to trace-reading \
+                program; \
+                simulation of multi-level caches; \
+                simulation of dissimilar I and D caches; \
+                better performance, especially for highly associative caches; \
+                classification of compulsory, capacity, and conflict misses; \
+                support for multiple input formats; \
+                cleaned up and modernized code, improved portability."
+
+homepage        http://pages.cs.wisc.edu/~markhill/DineroIV/
+master_sites    ftp://ftp.cs.wisc.edu/markhill/DineroIV
+
+distname        d4-${version}
+
+checksums           md5     69284e64ff7b4040fb898d93401606a8 \
+                    sha1    5d332f2b9f8251cd6ed6b4966e640f7001f99354 \
+                    rmd160  8b78d08e274cf0da7c434d53f87e0c0fe21589cb
+
+patchfiles      patch-misc_c.diff
+
+post-build      {
+    system "cd ${worksrcpath}/testing && ${build.cmd} ${build.pre_args} ${build.target}"
+}
+
+destroot {
+    xinstall -m 755 -d ${destroot}${prefix}/bin
+    xinstall -m 755 ${worksrcpath}/dineroIV ${destroot}${prefix}/bin
+    
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 ${worksrcpath}/COPYRIGHT ${destroot}${prefix}/share/doc/${name}
+
+    xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
+    eval xinstall -m 755 [glob \
+        ${worksrcpath}/testing/p2? \
+        ${worksrcpath}/testing/testscript] ${destroot}${prefix}/share/examples/${name}
+    eval xinstall -m 644 [glob \
+        ${worksrcpath}/testing/README \
+        ${worksrcpath}/testing/p2.* \
+        ${worksrcpath}/testing/test-* \
+        ${worksrcpath}/testing/mm.*] ${destroot}${prefix}/share/examples/${name}
+}
+


Property changes on: trunk/dports/science/dineroIV/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/science/dineroIV/files/patch-misc_c.diff
===================================================================
--- trunk/dports/science/dineroIV/files/patch-misc_c.diff	                        (rev 0)
+++ trunk/dports/science/dineroIV/files/patch-misc_c.diff	2010-11-24 10:26:54 UTC (rev 73758)
@@ -0,0 +1,20 @@
+--- ../d4-7copy/d4-7/misc.c	Thu Dec 11 03:08:30 1997
++++ misc.c	Fri Sep 12 18:41:50 2003
+@@ -272,10 +272,13 @@
+ 
+ 	for (cc = d4_allcaches;  cc != c;  cc = cc->link) {
+ 		/* don't bother trying to deallocate c->name */
+-		free (c->stack[0].top);
+-		free (c->stack);
+-		c->stack = NULL;
+-		c->numsets = 0;
++	  if(cc->stack)
++	  {
++	      free (cc->stack[0].top);
++	      free (cc->stack);
++	      cc->stack = NULL;
++	      cc->numsets = 0;
++	  }
+ 	}
+ 	d4nnodes = 0;
+ 	return r;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101124/cf3ae133/attachment.html>


More information about the macports-changes mailing list