summaryrefslogtreecommitdiff
path: root/homebrew/cmockery/.beer
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/cmockery/.beer')
-rw-r--r--homebrew/cmockery/.beer73
1 files changed, 73 insertions, 0 deletions
diff --git a/homebrew/cmockery/.beer b/homebrew/cmockery/.beer
new file mode 100644
index 000000000..2b0ccf6e9
--- /dev/null
+++ b/homebrew/cmockery/.beer
@@ -0,0 +1,73 @@
+{
+ "name": "Cmockery",
+ "description": "Unit testing and mocking library for C",
+ "url": "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/cmockery/cmockery-0.1.2.tar.gz",
+ "mirror": null,
+ "homepage": "https://github.com/google/cmockery",
+ "depends": [],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "diff -uNr cmockery-0.1.2.orig/src/cmockery.c cmockery-0.1.2/src/cmockery.c\n",
+ "--- cmockery-0.1.2.orig/src/cmockery.c\t2008-08-29 19:55:53.000000000 -0600\n",
+ "+++ cmockery-0.1.2/src/cmockery.c\t2009-05-31 15:29:25.000000000 -0600\n",
+ "@@ -13,7 +13,12 @@\n",
+ " * See the License for the specific language governing permissions and\n",
+ " * limitations under the License.\n",
+ " */\n",
+ "+#ifdef HAVE_CONFIG_H\n",
+ "+#include \"config.h\"\n",
+ "+#endif\n",
+ "+#ifdef HAVE_MALLOC_H\n",
+ " #include <malloc.h>\n",
+ "+#endif\n",
+ " #include <setjmp.h>\n",
+ " #ifndef _WIN32\n",
+ " #include <signal.h>\n",
+ "diff -uNr cmockery-0.1.2.orig/src/example/allocate_module.c cmockery-0.1.2/src/example/allocate_module.c\n",
+ "--- cmockery-0.1.2.orig/src/example/allocate_module.c\t2008-08-29 16:23:29.000000000 -0600\n",
+ "+++ cmockery-0.1.2/src/example/allocate_module.c\t2009-05-31 15:29:48.000000000 -0600\n",
+ "@@ -13,7 +13,13 @@\n",
+ " * See the License for the specific language governing permissions and\n",
+ " * limitations under the License.\n",
+ " */\n",
+ "+#ifdef HAVE_CONFIG_H\n",
+ "+#include \"config.h\"\n",
+ "+#endif\n",
+ "+#ifdef HAVE_MALLOC_H\n",
+ " #include <malloc.h>\n",
+ "+#endif\n",
+ "+#include <sys/types.h>\n",
+ " \n",
+ " #if UNIT_TESTING\n",
+ " extern void* _test_malloc(const size_t size, const char* file, const int line);\n",
+ "diff -uNr cmockery-0.1.2.orig/src/example/calculator.c cmockery-0.1.2/src/example/calculator.c\n",
+ "--- cmockery-0.1.2.orig/src/example/calculator.c\t2008-08-29 16:23:29.000000000 -0600\n",
+ "+++ cmockery-0.1.2/src/example/calculator.c\t2009-05-31 15:30:08.000000000 -0600\n",
+ "@@ -16,8 +16,13 @@\n",
+ " \n",
+ " // A calculator example used to demonstrate the cmockery testing library.\n",
+ " \n",
+ "+#ifdef HAVE_CONFIG_H\n",
+ "+#include \"config.h\"\n",
+ "+#endif\n",
+ " #include <assert.h>\n",
+ "+#ifdef HAVE_MALLOC_H\n",
+ " #include <malloc.h>\n",
+ "+#endif\n",
+ " #include <stdio.h>\n",
+ " #include <stdlib.h>\n",
+ " #include <string.h>\n"
+ ]
+ }
+ ],
+ "install": [
+ "system \"./configure\", \"--prefix=#{prefix}\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "0.1.2",
+ "file": "cmockery.rb"
+} \ No newline at end of file