[51703] trunk/dports/devel

blb at macports.org blb at macports.org
Sun May 31 22:41:36 PDT 2009


Revision: 51703
          http://trac.macports.org/changeset/51703
Author:   blb at macports.org
Date:     2009-05-31 22:41:36 -0700 (Sun, 31 May 2009)
Log Message:
-----------
New port - devel/cmockery, unit testing and mocking library for C; ticket #19823

Added Paths:
-----------
    trunk/dports/devel/cmockery/
    trunk/dports/devel/cmockery/Portfile
    trunk/dports/devel/cmockery/files/
    trunk/dports/devel/cmockery/files/patch-malloc_check.diff

Added: trunk/dports/devel/cmockery/Portfile
===================================================================
--- trunk/dports/devel/cmockery/Portfile	                        (rev 0)
+++ trunk/dports/devel/cmockery/Portfile	2009-06-01 05:41:36 UTC (rev 51703)
@@ -0,0 +1,22 @@
+# $Id$
+
+PortSystem          1.0
+
+name                cmockery
+version             0.1.2
+categories          devel
+maintainers         shifteleven.com:pope
+description         unit testing and mocking library for C
+long_description    A lightweight library to simplify and generalize the \
+                    process of writing unit tests for C applications.
+homepage            http://code.google.com/p/cmockery/
+platforms           darwin
+master_sites        http://cmockery.googlecode.com/files/
+
+checksums           md5 8c5622a65f2f7527c0155a41f4db389c \
+                    sha1 964ed1104a0cbbea8a9a34e88c6e79b546eff1bc \
+                    rmd160 700c155ba56075aa38cd5276cd47ab4af220dec3
+
+patchfiles          patch-malloc_check.diff
+
+# -*- 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


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

Added: trunk/dports/devel/cmockery/files/patch-malloc_check.diff
===================================================================
--- trunk/dports/devel/cmockery/files/patch-malloc_check.diff	                        (rev 0)
+++ trunk/dports/devel/cmockery/files/patch-malloc_check.diff	2009-06-01 05:41:36 UTC (rev 51703)
@@ -0,0 +1,50 @@
+diff -uNr cmockery-0.1.2.orig/src/cmockery.c cmockery-0.1.2/src/cmockery.c
+--- src/cmockery.c	2008-08-29 19:55:53.000000000 -0600
++++ src/cmockery.c	2009-05-31 15:29:25.000000000 -0600
+@@ -13,7 +13,12 @@
+  * See the License for the specific language governing permissions and
+  * limitations under the License.
+  */
++#ifdef HAVE_CONFIG_H
++#include "config.h"
++#endif
++#ifdef HAVE_MALLOC_H
+ #include <malloc.h>
++#endif
+ #include <setjmp.h>
+ #ifndef _WIN32
+ #include <signal.h>
+diff -uNr cmockery-0.1.2.orig/src/example/allocate_module.c cmockery-0.1.2/src/example/allocate_module.c
+--- src/example/allocate_module.c	2008-08-29 16:23:29.000000000 -0600
++++ src/example/allocate_module.c	2009-05-31 15:29:48.000000000 -0600
+@@ -13,7 +13,13 @@
+  * See the License for the specific language governing permissions and
+  * limitations under the License.
+  */
++#ifdef HAVE_CONFIG_H
++#include "config.h"
++#endif
++#ifdef HAVE_MALLOC_H
+ #include <malloc.h>
++#endif
++#include <sys/types.h>
+ 
+ #if UNIT_TESTING
+ extern void* _test_malloc(const size_t size, const char* file, const int line);
+diff -uNr cmockery-0.1.2.orig/src/example/calculator.c cmockery-0.1.2/src/example/calculator.c
+--- src/example/calculator.c	2008-08-29 16:23:29.000000000 -0600
++++ src/example/calculator.c	2009-05-31 15:30:08.000000000 -0600
+@@ -16,8 +16,13 @@
+ 
+ // A calculator example used to demonstrate the cmockery testing library.
+ 
++#ifdef HAVE_CONFIG_H
++#include "config.h"
++#endif
+ #include <assert.h>
++#ifdef HAVE_MALLOC_H
+ #include <malloc.h>
++#endif
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090531/cdb8bde0/attachment.html>


More information about the macports-changes mailing list